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)
-
Method Summary
Modifier and TypeMethodDescriptioncom.sk89q.worldedit.util.formatting.text.Component
convertText(com.sk89q.worldedit.util.formatting.text.Component component, Locale locale)
static String
makeTranslationKey(String type, String id)
void
reload()
void
setDefaultLocale(Locale defaultLocale)
-
Constructor Details
-
TranslationManager
public TranslationManager(ArchiveUnpacker archiveUnpacker, ResourceLoader resourceLoader) throws IOException- Throws:
IOException
-
-
Method Details
-
makeTranslationKey
-
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
-