|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.robokind.api.common.localization.Localizer
public class Localizer
Static methods for language localization.
Constructor Summary | |
---|---|
Localizer()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Localizer()
Method Detail |
---|
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 localize
public static String $(String key)
key
- the key of the String to lookup
public static String $_(String key)
key
- the key of the String to lookup
public static String _$(String key)
key
- the key of the String to lookup
public static String _$_(String key)
key
- the key of the String to lookup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |