public class LanguageUtils
extends java.lang.Object
| Constructor and Description |
|---|
LanguageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
gatherKeys(Dictionary dictionary)
Returns all dictionary keys.
|
static java.lang.String |
getInitialText(java.lang.String text,
java.lang.Object... data)
Returns proper initial component text.
|
static void |
mergeDictionary(Dictionary dictionary,
Dictionary mergeInto)
Merges specified dictionary with the global dictionary.
|
static void |
registerInitialLanguage(LanguageMethods component,
java.lang.String text,
java.lang.Object... data)
Registers proper initial component language key.
|
public static java.lang.String getInitialText(java.lang.String text,
java.lang.Object... data)
text - text provided into component constructordata - language data, may not be passedpublic static void registerInitialLanguage(LanguageMethods component, java.lang.String text, java.lang.Object... data)
component - translated componenttext - text provided into component constructordata - language data, may not be passedpublic static java.util.List<java.lang.String> gatherKeys(Dictionary dictionary)
dictionary - dictionary to gather keys forpublic static void mergeDictionary(Dictionary dictionary, Dictionary mergeInto)
dictionary - dictionary to mergemergeInto - dictionary to merge into