|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttranslator.AnimalTranslator
public class AnimalTranslator
| Constructor Summary | |
|---|---|
AnimalTranslator()
|
|
| Method Summary | |
|---|---|
static void |
addResource(java.lang.String filename)
|
static TranslatableGUIElement |
getGUIBuilder()
|
static ExtendedResourceManagement |
getResourceBundle()
Return the current ExtendedResourceBundle for translation purposes |
static Translator |
getTranslator()
|
static void |
setTranslatorLocale(java.util.Locale targetLocale)
|
static java.lang.String |
translateMessage(java.lang.String messageKey)
Convenience wrapper the translated message of key messageKey. |
static java.lang.String |
translateMessage(java.lang.String messageKey,
java.lang.Object o)
Convenience wrapper the translated message of key messageKey. |
static java.lang.String |
translateMessage(java.lang.String messageKey,
java.lang.Object[] messageParams)
Return the translated message of key messageKey using the message params Internally invokes generateMessage(messageKey, null); |
static java.lang.String |
translateMessage(java.lang.String messageKey,
java.lang.Object[] messageParams,
boolean warnOnError)
Return the translated message of key messageKey using the message params |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnimalTranslator()
| Method Detail |
|---|
public static void setTranslatorLocale(java.util.Locale targetLocale)
public static Translator getTranslator()
public static ExtendedResourceManagement getResourceBundle()
public static java.lang.String translateMessage(java.lang.String messageKey)
messageKey - the key of the message to be displayed
translateMessage(String, Object[], boolean)
public static java.lang.String translateMessage(java.lang.String messageKey,
java.lang.Object o)
messageKey - the key of the message to be displayed
translateMessage(String, Object[], boolean)
public static java.lang.String translateMessage(java.lang.String messageKey,
java.lang.Object[] messageParams)
messageKey - the key of the message to be displayedmessageParams - the values to be substituted into the message.
translateMessage(String, Object[], boolean)
public static java.lang.String translateMessage(java.lang.String messageKey,
java.lang.Object[] messageParams,
boolean warnOnError)
messageKey - the key of the message to be displayedmessageParams - the values to be substituted into the message.warnOnError - if true, log warnings due to invalid accesses or
unavailable keys.
public static TranslatableGUIElement getGUIBuilder()
public static void addResource(java.lang.String filename)
throws java.io.FileNotFoundException
java.io.FileNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||