public class TranslationManager
extends java.lang.Object
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 and Description |
---|
TranslationManager(ArchiveUnpacker archiveUnpacker,
ResourceLoader resourceLoader) |
Modifier and Type | Method and Description |
---|---|
com.sk89q.worldedit.util.formatting.text.Component |
convertText(com.sk89q.worldedit.util.formatting.text.Component component,
java.util.Locale locale) |
static java.lang.String |
makeTranslationKey(java.lang.String type,
java.lang.String id) |
void |
reload() |
void |
setDefaultLocale(java.util.Locale defaultLocale) |
public TranslationManager(ArchiveUnpacker archiveUnpacker, ResourceLoader resourceLoader) throws java.io.IOException
java.io.IOException
public static java.lang.String makeTranslationKey(java.lang.String type, java.lang.String id)
public void reload()
public com.sk89q.worldedit.util.formatting.text.Component convertText(com.sk89q.worldedit.util.formatting.text.Component component, java.util.Locale locale)
public void setDefaultLocale(java.util.Locale defaultLocale)