public final class LanguageManager extends Object
| Constructor and Description |
|---|
LanguageManager() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultLocale()
The locale used in console and as a fallback
|
String |
getLogString(String key,
Object... values)
Get a formatted language string with the default locale for Floodgate
|
String |
getString(String key,
String locale,
Object... values)
Get a formatted language string with the given locale for Floodgate
|
boolean |
loadLocale(String locale)
Loads a Floodgate locale from resources; if the file doesn't exist it just logs a warning
|
public boolean loadLocale(String locale)
locale - locale to loadpublic String getLogString(String key, Object... values)
key - language string to translatevalues - values to put into the stringpublic String getString(String key, String locale, Object... values)
key - language string to translatelocale - locale to translate tovalues - values to put into the stringpublic String getDefaultLocale()