@Named public class Translation extends Properties implements I8n
| Modifier and Type | Field and Description |
|---|---|
static Namespace |
DIALOG_NAMESPACE |
defaults| Constructor and Description |
|---|
Translation() |
| Modifier and Type | Method and Description |
|---|---|
String |
getTranslation(I8nText key) |
void |
setLanguage(Locale.LanguageRange newLanguage) |
void |
tearDown() |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, valuespublic static final Namespace DIALOG_NAMESPACE
public String getTranslation(I8nText key)
getTranslation in interface I8npublic void setLanguage(Locale.LanguageRange newLanguage)
setLanguage in interface I8n@PreDestroy public void tearDown() throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionCopyright © 2017. All rights reserved.