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
ConstructorDescriptionTranslationManager
(ArchiveUnpacker archiveUnpacker, ResourceLoader resourceLoader) TranslationManager
(ResourceLoader resourceLoader) -
Method Summary
Modifier and TypeMethodDescriptioncom.sk89q.worldedit.util.formatting.text.Component
convertText
(com.sk89q.worldedit.util.formatting.text.Component component, Locale locale) getTranslationMap
(Locale locale) static String
makeTranslationKey
(String type, String id) void
setDefaultLocale
(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
-