public class TranslationManager
extends java.lang.Object
Constructor and Description |
---|
TranslationManager()
Constructor
|
TranslationManager(TranslationObject[] translationObjects)
Constructor
|
public TranslationManager()
public TranslationManager(TranslationObject[] translationObjects)
translationObjects
- pre-initpublic TranslationManager instance()
public java.util.List<TranslationObject> translations()
public TranslationManager addTranslationObject(TranslationObject t)
t
- objectpublic TranslationManager removeTranslationObject(TranslationObject t)
t
- objectpublic java.lang.String getDescription(java.lang.String key)
public TranslationManager addTranslation(TranslationObject t, TranslationAsset a)
public TranslationManager addTranslation(java.lang.String key, TranslationAsset a)
public TranslationAsset getTranslated(java.lang.String key, java.lang.String language)
public TranslationAsset getTranslated(java.lang.String key, TranslationLanguage language)
public TranslationAsset getTranslated(TranslationObject t, TranslationLanguage l)
public java.lang.String getTranslation(java.lang.String key, TranslationLanguage l)
public TranslationObject getDefault(java.lang.String key)
public TranslationManager saveAll(TranslationFile file)
public static java.util.List<TranslationObject> transformEnum(java.lang.Object[] os)
public static void scan(java.lang.Class c, TranslationManager manager) throws java.lang.IllegalAccessException
java.lang.IllegalAccessException
public TranslationManager debug(java.io.PrintStream out)
public TranslationManager saveFile(TranslationFile file)