public class Localization extends java.lang.Object implements Locales, LocalizationKeys
ENGLISH, FRENCH, GERMAN, ITALIAN, RUSSIAN, SPANISHANCHORS, ARTICLES, FULLTEXTSEARCH_TEXT, HINT_TEXT, TITLES| Constructor and Description |
|---|
Localization() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLanguage()
Return the Locale language.
|
java.util.Locale |
getLocale()
Return the locale.
|
java.lang.String |
getName(java.lang.String key)
Return the name for a key.
|
boolean |
hasKey(java.lang.String key)
Return true if a key is supported.
|
boolean |
isDefaultLocale()
Return true if the locale is the default locale.
|
void |
setLocale(java.util.Locale locale)
Set the Locale to use for the GUI.
|
void |
setLocale(java.lang.String lang)
Set the Locale to use for the GUI.
|
public void setLocale(java.util.Locale locale)
locale - the Localepublic void setLocale(java.lang.String lang)
lang - the Locale languagepublic boolean isDefaultLocale()
public java.util.Locale getLocale()
public java.lang.String getLanguage()
public boolean hasKey(java.lang.String key)
key - the keypublic java.lang.String getName(java.lang.String key)
LocalizationKeys.TITLES key in "en-us", or "Titres" in "fr".key - the keyCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence