Interface OMBundle.TranslationSupport
- Enclosing interface:
OMBundle
public static interface OMBundle.TranslationSupport
A facility for accessing
resource bundles.- Author:
- Eike Stepper
-
Method Summary
Modifier and TypeMethodDescriptionReturns the string resource associated with the key.Returns the string resource associated with the key.Returns a string resource associated with the key, and performs substitutions.Returns a string resource associated with the key, and performs substitutions.voidsetShouldTranslate(boolean shouldTranslate) Sets whether strings should be translated by default.booleanIndicates whether strings should be translated by default.
-
Method Details
-
shouldTranslate
boolean shouldTranslate()Indicates whether strings should be translated by default.- Returns:
trueif strings should be translated by default;falseotherwise.
-
setShouldTranslate
void setShouldTranslate(boolean shouldTranslate) Sets whether strings should be translated by default.- Parameters:
shouldTranslate- whether strings should be translated by default.
-
getString
-
getString
-
getString
-
getString
Returns a string resource associated with the key, and performs substitutions.- Parameters:
key- the key of the string.translate- whether the result is to be translated to the current locale.args- the message substitutions.- Returns:
- a string resource associated with the key.
- See Also:
-