Class PluginLocales

java.lang.Object
co.aikar.commands.Locales
co.aikar.commands.BukkitLocales
org.mvplugins.multiverse.core.locale.PluginLocales

@Service public final class PluginLocales extends co.aikar.commands.BukkitLocales
Locale manager with additional methods for loading locales from plugin's locales folder.
  • 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

    Constructors
    Constructor
    Description
    Creates a new instance of PluginLocales.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addFileResClassLoader(@NotNull org.bukkit.plugin.Plugin plugin)
    Adds a FileResClassLoader to the list of class loaders to load locales data from.
    boolean
    addFileResClassLoader(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull String localesFolderPath)
    Adds a FileResClassLoader to the list of class loaders to load locales data from.

    Methods inherited from class co.aikar.commands.BukkitLocales

    loadLanguage, loadLanguages, loadYamlLanguageFile, loadYamlLanguageFile

    Methods inherited from class co.aikar.commands.Locales

    addBundleClassLoader, addMessage, addMessageBundle, addMessageBundle, addMessageBundles, addMessages, addMessageStrings, getDefaultLocale, getMessage, getOptionalMessage, loadMissingBundles, replaceI18NStrings, setDefaultLocale

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PluginLocales

      @Inject public PluginLocales(MVCommandManager manager)
      Creates a new instance of PluginLocales.
      Parameters:
      manager - The command manager.
  • Method Details

    • addFileResClassLoader

      public boolean addFileResClassLoader(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
      Adds a FileResClassLoader to the list of class loaders to load locales data from.
      Parameters:
      plugin - The plugin.
      Returns:
      True if the class loader was added successfully.
    • addFileResClassLoader

      public boolean addFileResClassLoader(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull String localesFolderPath)
      Adds a FileResClassLoader to the list of class loaders to load locales data from.
      Parameters:
      plugin - The plugin.
      localesFolderPath - The path to the folder containing the locales.
      Returns:
      True if the class loader was added successfully.