public class Localizer extends Object
| Constructor and Description |
|---|
Localizer() |
| Modifier and Type | Method and Description |
|---|---|
static String |
_$_(String key)
Return the String associated with the given key surrounded with spaces: ' '.
|
static String |
_$(String key)
Return the String associated with the given key proceeded with a space: ' '.
|
static String |
$_(String key)
Return the String associated with the given key followed by a space: ' '.
|
static String |
$(String key)
Return the String associated with the given key for the set LanguageLocale
|
static LanguageLocale |
getLocale()
Returns the LanguageLocale being used.
|
static String |
getLocaleName()
Returns the name of the current LanguageLocale.
|
static String |
localize(String key)
Returns the localized value for the given key.
|
static void |
setLocale(LanguageLocale locale)
Sets the LanguageLocale to use for localization.
|
public static void setLocale(LanguageLocale locale)
locale - new LanguageLocalpublic static LanguageLocale getLocale()
public static String getLocaleName()
public static String localize(String key)
key - String to localizepublic static String $(String key)
key - the key of the String to lookuppublic static String $_(String key)
key - the key of the String to lookuppublic static String _$(String key)
key - the key of the String to lookupCopyright © 2011-2014. All Rights Reserved.