Package org.eclipse.net4j.util.om
Schnittstelle OMBundle.TranslationSupport
- Umschließende Schnittstelle:
OMBundle
public static interface OMBundle.TranslationSupport
A facility for accessing
resource bundles.- Autor:
- Eike Stepper
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns 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.
-
Methodendetails
-
shouldTranslate
boolean shouldTranslate()Indicates whether strings should be translated by default.- Gibt zurück:
trueif strings should be translated by default;falseotherwise.
-
setShouldTranslate
void setShouldTranslate(boolean shouldTranslate) Sets whether strings should be translated by default.- Parameter:
shouldTranslate- whether strings should be translated by default.
-
getString
Returns the string resource associated with the key.- Parameter:
key- the key of the string resource.- Gibt zurück:
- the string resource associated with the key.
-
getString
Returns the string resource associated with the key.- Parameter:
key- the key of the string resource.translate- whether the result is to be translated to the current locale.- Gibt zurück:
- the string resource associated with the key.
-
getString
Returns a string resource associated with the key, and performs substitutions.- Parameter:
key- the key of the string.args- the message substitutions.- Gibt zurück:
- a string resource associated with the key.
- Siehe auch:
-
getString
Returns a string resource associated with the key, and performs substitutions.- Parameter:
key- the key of the string.translate- whether the result is to be translated to the current locale.args- the message substitutions.- Gibt zurück:
- a string resource associated with the key.
- Siehe auch:
-