|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttico.configuration.TLanguage
public class TLanguage
Static class that manages the application language files placed in the lang directory. All the language files must have the .lang extension and must be encoded in "UTF-8" charset.
Constructor Summary | |
---|---|
TLanguage()
|
Method Summary | |
---|---|
static java.util.Map |
getLanguages()
Generates a map that contains all the language files of
lang directory and its corresponding language names. |
static java.lang.String |
getString(java.lang.String key)
Returns the string of the specified key in the current
language resource bundle. |
static java.lang.String |
getString(java.lang.String language,
java.lang.String key)
|
static void |
initLanguage(java.lang.String language)
Inits the language file loading the file of the specified language
to the LANGUAGE_BUNDLE . |
static boolean |
languageExists(java.lang.String language)
Determines if exists the language file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TLanguage()
Method Detail |
---|
public static void initLanguage(java.lang.String language) throws java.io.IOException
language
to the LANGUAGE_BUNDLE
.
language
- The current language
java.io.IOException
public static boolean languageExists(java.lang.String language)
language
file.
language
- The language
file to check
language
file existspublic static java.util.Map getLanguages()
map
that contains all the language files of
lang directory and its corresponding language names.
map
public static java.lang.String getString(java.lang.String key)
key
in the current
language resource bundle.
key
- The specified key
key
public static java.lang.String getString(java.lang.String language, java.lang.String key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |