Class Translator
java.lang.Object
net.adoptopenjdk.icedteaweb.i18n.Translator
Utility class to provide simple methods to help localize messages.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String(package private) static final Stringprivate final Translator.ChainedResourceBundle -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate(package private)Translator(String fullyQualifiedBundleBaseName, Locale locale) (package private)Translator(ResourceBundle resources, Locale locale) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidaddBundle(ResourceBundle bundle) (package private) voidaddBundleImpl(ResourceBundle bundle) private static ResourceBundlestatic Translatorstatic StringReturn a translated (localized) version of the messagestatic Stringprivate StringReturns the localized resource string identified by the specified key.
-
Field Details
-
DEFAULT_RESOURCE_BUNDLE_BASE_NAME
- See Also:
-
MISSING_RESOURCE_PLACEHOLDER
- See Also:
-
resources
-
-
Constructor Details
-
Translator
private Translator() -
Translator
-
Translator
Translator(ResourceBundle resources, Locale locale)
-
-
Method Details
-
getBundle
-
getInstance
-
addBundle
-
addBundle
-
addBundleImpl
-
R
-
R
-
translate
-
translate
-