public class LocaleSupport extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
LocaleSupport.Localizer
Deprecated.
Translates the keys to the localized strings.
|
Constructor and Description |
---|
LocaleSupport()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
addLocalizer(LocaleSupport.Localizer localizer)
Deprecated.
Add a new localizer to the localizer array.
|
static char |
getChar(String key,
char defaultValue)
Deprecated.
Get the localized character or the default value if no translation
for the given key exists.
|
static String |
getString(String key)
Deprecated.
Get the localized string for the given key using the registered
localizers.
|
static String |
getString(String key,
String defaultValue)
Deprecated.
Get the localized string or the default value if no translation
for the given key exists.
|
static void |
removeLocalizer(LocaleSupport.Localizer localizer)
Deprecated.
Remove the existing localizer from the localizer array.
|
public static void addLocalizer(LocaleSupport.Localizer localizer)
localizer
- localizer to add to the localizer array.public static void removeLocalizer(LocaleSupport.Localizer localizer)
localizer
- localizer to remove.public static String getString(String key)
key
- key to translate to localized string.public static String getString(String key, String defaultValue)
key
- key to translate to localized string.defaultValue
- default value to be returned in case no localized
string is found for the given key.public static char getChar(String key, char defaultValue)
key
- key to translate to localized character.defaultValue
- default value to be returned in case no localized
character is found for the given key.