public class BukkitLocales extends Locales
AFRIKAANS, ARABIC, BULGARIAN, CHINESE, CZECH, DANISH, DUTCH, ENGLISH, FINNISH, FRENCH, GERMAN, GREEK, HEBREW, HINDI, HUNGARIAN, ITALIAN, JAPANESE, KOREAN, LATIN, NORWEGIAN_BOKMAAL, NORWEGIAN_NYNORSK, POLISH, PORTUGUESE, ROMANIAN, RUSSIAN, SIMPLIFIED_CHINESE, SPANISH, SWEDISH, THAI, TRADITIONAL_CHINESE, TURKISH, UKRANIAN, VIETNAMESE, WELSH| Constructor and Description |
|---|
BukkitLocales(BukkitCommandManager manager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
loadLanguage(org.bukkit.configuration.file.FileConfiguration config,
Locale locale)
Loads every message from the Configuration object.
|
void |
loadLanguages() |
boolean |
loadYamlLanguageFile(File file,
Locale locale)
Loads the given file
|
boolean |
loadYamlLanguageFile(String file,
Locale locale)
Loads a file out of the plugins data folder by the given name
|
addBundleClassLoader, addMessage, addMessageBundle, addMessageBundle, addMessageBundles, addMessages, addMessageStrings, getDefaultLocale, getMessage, getOptionalMessage, loadMissingBundles, replaceI18NStrings, setDefaultLocalepublic BukkitLocales(BukkitCommandManager manager)
public void loadLanguages()
loadLanguages in class Localespublic boolean loadYamlLanguageFile(File file, Locale locale) throws IOException, org.bukkit.configuration.InvalidConfigurationException
file - locale - IOExceptionorg.bukkit.configuration.InvalidConfigurationExceptionpublic boolean loadYamlLanguageFile(String file, Locale locale) throws IOException, org.bukkit.configuration.InvalidConfigurationException
file - locale - IOExceptionorg.bukkit.configuration.InvalidConfigurationExceptionpublic boolean loadLanguage(org.bukkit.configuration.file.FileConfiguration config,
Locale locale)
config - locale - Copyright © 2015–2021 Global Minecraft Ban Manager. All rights reserved.