public class REpiceaTranslator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
REpiceaTranslator.Language |
static interface |
REpiceaTranslator.TextableEnum |
Constructor and Description |
---|
REpiceaTranslator() |
Modifier and Type | Method and Description |
---|---|
static REpiceaTranslator.Language |
getCurrentLanguage()
This method returns the current language of the UIControlManager.
|
static java.lang.String |
getString(REpiceaTranslator.TextableEnum messageID)
This method returns the message associated to this messageID Enum instance.
|
static java.lang.String |
getTranslation(REpiceaTranslator.TextableEnum textableEnum,
REpiceaTranslator.Language language)
This method returns the translation of a particular TextableEnum instance.
|
static void |
setCurrentLanguage(REpiceaTranslator.Language language)
This method sets the current language of the UIControlManager.
|
static void |
setString(REpiceaTranslator.TextableEnum element,
java.lang.String englishText,
java.lang.String frenchText)
This method sets the different strings for an element, i.e.
|
public static void setString(REpiceaTranslator.TextableEnum element, java.lang.String englishText, java.lang.String frenchText)
element
- the TextableEnum that represents the control, label or messageenglishText
- a StringfrenchText
- a Stringpublic static java.lang.String getString(REpiceaTranslator.TextableEnum messageID)
messageID
- an TextableEnum instancepublic static void setCurrentLanguage(REpiceaTranslator.Language language)
language
- a Language enum variablepublic static REpiceaTranslator.Language getCurrentLanguage()
public static java.lang.String getTranslation(REpiceaTranslator.TextableEnum textableEnum, REpiceaTranslator.Language language)
textableEnum
- a TextableEnum instancelanguage
- a Language instance