public class LocalizationHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
HashMap<String,HashMap<String,String>> |
langs |
String |
SECOND_PERSON_STRING
This denotes wether or not to use second person versions of strings, such
as stat_secondpersonlevelup.
|
| Constructor and Description |
|---|
LocalizationHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLang(String key,
HashMap<String,String> lang) |
void |
addString(String key,
String string) |
void |
changLang(String langKey) |
String |
getLocalizedString_surpressed(String key)
Same as getLocalizedString, but does not print an error.
|
String |
getLocalizedString(LangKeys key) |
String |
getLocalizedString(String key) |
void |
init()
Initializes this handler, also creates the en_us language (the default
language)
|
public final String SECOND_PERSON_STRING
public void init()
public void changLang(String langKey)
public void addString(String key, String string) throws StringAlreadyDefinedException
StringAlreadyDefinedExceptionCopyright © 2022. All rights reserved.