Package co.aikar.commands
Class Locales
java.lang.Object
co.aikar.commands.Locales
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
static final Locale
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addBundleClassLoader
(ClassLoader classLoader) addMessage
(Locale locale, co.aikar.locales.MessageKeyProvider key, String message) boolean
addMessageBundle
(ClassLoader classLoader, String bundleName, Locale locale) boolean
addMessageBundle
(String bundleName, Locale locale) void
addMessageBundles
(String... bundleNames) void
addMessages
(Locale locale, @NotNull Map<? extends co.aikar.locales.MessageKeyProvider, String> messages) void
addMessageStrings
(Locale locale, @NotNull Map<String, String> messages) getMessage
(CommandIssuer issuer, co.aikar.locales.MessageKeyProvider key) getOptionalMessage
(CommandIssuer issuer, co.aikar.locales.MessageKey key) void
void
Looks 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
-