@Component public class I18nLoader extends Object implements II18nCallback, II18nAccess
| Constructor and Description |
|---|
I18nLoader() |
| Modifier and Type | Method and Description |
|---|---|
void |
addText(Map<String,Map<String,String>> elements) |
void |
addText(String label,
String locale,
String value) |
String |
getString(Enum<?> identifier) |
String |
getString(Locale locale,
Enum<?> identifier) |
String |
getString(Locale locale,
String identifier) |
String |
getString(Locale locale,
String identifier,
String... arguments) |
String |
getString(String identifier) |
String |
getString(String identifier,
String... arguments) |
public void addText(String label, String locale, String value)
addText in interface II18nCallbacklabel - text keylocale - localevalue - valuepublic void addText(Map<String,Map<String,String>> elements)
addText in interface II18nCallbackelements - the i18n elements : key = language; value.key = label; value.value = translation for the languagepublic String getString(String identifier)
getString in interface II18nAccessidentifier - the resource identifierpublic String getString(Locale locale, String identifier)
getString in interface II18nAccesslocale - the localeidentifier - the resource identifierpublic String getString(String identifier, String... arguments)
getString in interface II18nAccessidentifier - the resource identifierarguments - arguments which will be inserted into the stringpublic String getString(Locale locale, String identifier, String... arguments)
getString in interface II18nAccesslocale - the localeidentifier - the resource identifierarguments - arguments which will be inserted into the stringpublic String getString(Enum<?> identifier)
getString in interface II18nAccessidentifier - the resource identifier by enumpublic String getString(Locale locale, Enum<?> identifier)
getString in interface II18nAccesslocale - the localeidentifier - the resource identifier by enumCopyright © 2018–2019 Taimos GmbH. All rights reserved.