|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TranslationService
The TranslationService is responsible for getting translated text corresponding to the given Locale, basename and keys.
Different implementations will use different mechanisms for retrieving the translated text.
As a rule of thumb, one should probably not use TranslationService directly. Use I18nizer
or SimpleTranslator
instead.
I18nizer
,
SimpleTranslator
Method Summary | |
---|---|
void |
reloadMessageBundles()
Allows to reload all the message bundles - useful in development. |
String |
translate(LocaleProvider localeProvider,
String[] keys)
|
String |
translate(LocaleProvider localeProvider,
String basename,
String[] keys)
Deprecated. should not be using a basename. Currently in use for backwards compatibility. |
Method Detail |
---|
String translate(LocaleProvider localeProvider, String[] keys)
String translate(LocaleProvider localeProvider, String basename, String[] keys)
basename
- Usage of a basename is deprecated since 5.1. This method is here to allow backwards compatibility.void reloadMessageBundles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |