Class TranslationManager
java.lang.Object
com.sk89q.worldedit.util.translation.TranslationManager
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 Summary
ConstructorsConstructorDescriptionTranslationManager(ArchiveUnpacker archiveUnpacker, ResourceLoader resourceLoader) TranslationManager(ResourceLoader resourceLoader) -
Method Summary
Modifier and TypeMethodDescriptioncom.sk89q.worldedit.util.formatting.text.ComponentconvertText(com.sk89q.worldedit.util.formatting.text.Component component, Locale locale) getTranslationMap(Locale locale) static StringmakeTranslationKey(String type, String id) voidsetDefaultLocale(Locale defaultLocale)
-
Constructor Details
-
TranslationManager
-
TranslationManager
-
-
Method Details
-
makeTranslationKey
-
setDefaultLocale
-
getTranslationMap
-
convertText
public com.sk89q.worldedit.util.formatting.text.Component convertText(com.sk89q.worldedit.util.formatting.text.Component component, Locale locale) -
getDefaultLocale
-