Package net.adoptopenjdk.icedteaweb.i18n
Class Translator
java.lang.Object
net.adoptopenjdk.icedteaweb.i18n.Translator
Utility class to provide simple methods to help localize messages.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidaddBundle(ResourceBundle bundle) static Translatorstatic StringReturn a translated (localized) version of the messagestatic String
-
Method Details
-
getInstance
-
addBundle
-
addBundle
-
R
Return a translated (localized) version of the message- Parameters:
message- the message to translate- Returns:
- a string representing the localized message
-
R
- Parameters:
message- key to be found in propertiesparams- params to be expanded to message- Returns:
- the localized string for the message
-
translate
- Parameters:
key- key to be found in propertiesargs- params to be expanded to message- Returns:
- the localized resource string using the specified arguments.
-