public static interface OMBundle.TranslationSupport
resource bundles
.Modifier and Type | Method and Description |
---|---|
String |
getString(String key)
Returns the string resource associated with the key.
|
String |
getString(String key,
boolean translate)
Returns the string resource associated with the key.
|
String |
getString(String key,
boolean translate,
Object... args)
Returns a string resource associated with the key, and performs substitutions.
|
String |
getString(String key,
Object... args)
Returns a string resource associated with the key, and performs substitutions.
|
void |
setShouldTranslate(boolean shouldTranslate)
Sets whether strings should be translated by default.
|
boolean |
shouldTranslate()
Indicates whether strings should be translated by default.
|
boolean shouldTranslate()
true
if strings should be translated by default; false
otherwise.void setShouldTranslate(boolean shouldTranslate)
shouldTranslate
- whether strings should be translated by default.String getString(String key)
key
- the key of the string resource.String getString(String key, boolean translate)
key
- the key of the string resource.translate
- whether the result is to be translated to the current locale.String getString(String key, Object... args)
key
- the key of the string.args
- the message substitutions.getString(String)
,
MessageFormat.format(String, Object...)
String getString(String key, boolean translate, Object... args)
key
- the key of the string.translate
- whether the result is to be translated to the current locale.args
- the message substitutions.getString(String)
,
MessageFormat.format(String, Object[])
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.