Package co.aikar.commands
Class Locales
java.lang.Object
co.aikar.commands.Locales
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Localestatic final Locale -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddBundleClassLoader(ClassLoader classLoader) addMessage(Locale locale, co.aikar.locales.MessageKeyProvider key, String message) booleanaddMessageBundle(ClassLoader classLoader, String bundleName, Locale locale) booleanaddMessageBundle(String bundleName, Locale locale) voidaddMessageBundles(String... bundleNames) voidaddMessages(Locale locale, @NotNull Map<? extends co.aikar.locales.MessageKeyProvider, String> messages) voidaddMessageStrings(Locale locale, @NotNull Map<String, String> messages) getMessage(CommandIssuer issuer, co.aikar.locales.MessageKeyProvider key) getOptionalMessage(CommandIssuer issuer, co.aikar.locales.MessageKey key) voidvoidLooks for all previously loaded bundles, and if any new Supported Languages have been added, load them.replaceI18NStrings(String message) setDefaultLocale(Locale locale)
-
Field Details
-
ENGLISH
-
GERMAN
-
FRENCH
-
JAPANESE
-
ITALIAN
-
KOREAN
-
CHINESE
-
SIMPLIFIED_CHINESE
-
TRADITIONAL_CHINESE
-
SPANISH
-
DUTCH
-
DANISH
-
CZECH
-
GREEK
-
LATIN
-
BULGARIAN
-
AFRIKAANS
-
HINDI
-
HEBREW
-
POLISH
-
PORTUGUESE
-
FINNISH
-
SWEDISH
-
RUSSIAN
-
ROMANIAN
-
VIETNAMESE
-
THAI
-
TURKISH
-
UKRANIAN
-
ARABIC
-
WELSH
-
NORWEGIAN_BOKMAAL
-
NORWEGIAN_NYNORSK
-
HUNGARIAN
-
-
Constructor Details
-
Locales
-
-
Method Details
-
loadLanguages
-
getDefaultLocale
-
setDefaultLocale
-
loadMissingBundles
Looks for all previously loaded bundles, and if any new Supported Languages have been added, load them. -
addMessageBundles
-
addMessageBundle
-
addMessageBundle
-
addMessageStrings
-
addMessages
public void addMessages(Locale locale, @NotNull @NotNull Map<? extends co.aikar.locales.MessageKeyProvider, String> messages) -
addMessage
-
getMessage
-
getOptionalMessage
-
replaceI18NStrings
-
addBundleClassLoader
-