Package co.aikar.commands
Class BungeeLocales
java.lang.Object
co.aikar.commands.Locales
co.aikar.commands.BungeeLocales
-
Field Summary
Fields inherited from class co.aikar.commands.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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
loadLanguage
(net.md_5.bungee.config.Configuration config, Locale locale) Loads every message from the Configuration object.void
boolean
loadYamlLanguageFile
(File file, Locale locale) Loads the given fileboolean
loadYamlLanguageFile
(String file, Locale locale) Loads a file out of the plugin's data folder by the given nameMethods inherited from class co.aikar.commands.Locales
addBundleClassLoader, addMessage, addMessageBundle, addMessageBundle, addMessageBundles, addMessages, addMessageStrings, getDefaultLocale, getMessage, getOptionalMessage, loadMissingBundles, replaceI18NStrings, setDefaultLocale
-
Constructor Details
-
BungeeLocales
-
-
Method Details
-
loadLanguages
- Overrides:
loadLanguages
in classco.aikar.commands.Locales
-
loadYamlLanguageFile
Loads the given file- Parameters:
file
-locale
-- Returns:
- If any language keys were added
- Throws:
IOException
-
loadYamlLanguageFile
Loads a file out of the plugin's data folder by the given name- Parameters:
file
-locale
-- Returns:
- If any language keys were added
- Throws:
IOException
-
loadLanguage
Loads every message from the Configuration object. Any nested values will be treated as namespace so acf-core:\n\tfoo: bar will be acf-core.foo = bar- Parameters:
config
-locale
-- Returns:
- If any language keys were added
-