java.lang.Object
org.pdfsam.i18n.I18nContext
Context to deal with translations. It contains information about the mutable current locale and allow to translate strings to the current locale through static methods.
- Author:
- Andrea Vacondio
-
Method Summary
-
Method Details
-
setLocale
-
i18n
- Returns:
- the default
I18nContextinstance
-
locale
- Returns:
- an
ObservableValueLocalerepresenting the current locale
-
tr
-
tr
- Parameters:
text- text to be translatedreplace- replacements for the placeholders- Returns:
- the translated string where {0} and {1} (etc) placeholders are replaced by the replace[0], replace[1] etc
-
getSupported
-