Class TranslationManager

java.lang.Object
com.sk89q.worldedit.util.translation.TranslationManager

public class TranslationManager extends Object
Handles translations for the plugin.

These should be in the following format: plugin.component.message[.meta]*

Where, plugin = worldedit component = The part of the plugin, eg expand message = A descriptor for which message, eg, expanded meta = Any extra information such as plural/singular (Can have none to infinite)

  • Constructor Details

  • Method Details

    • makeTranslationKey

      public static String makeTranslationKey(String type, String id)
    • reload

      public void reload()
    • convertText

      public com.sk89q.worldedit.util.formatting.text.Component convertText(com.sk89q.worldedit.util.formatting.text.Component component, Locale locale)
    • setDefaultLocale

      public void setDefaultLocale(Locale defaultLocale)