|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.retek.commons.gui.util.TranslatorManager
com.retek.commons.gui.util.LanguageTranslator
This class provides translation for labels and other short language translations.
Retek Inc. Copyright (c) 2002
Field Summary |
Fields inherited from class com.retek.commons.gui.util.TranslatorManager |
EMPTY |
Constructor Summary | |
LanguageTranslator()
Returns new LanguageManager object. |
|
LanguageTranslator(java.util.Locale locale,
java.lang.String filename)
Returns new LanguageManager object. |
|
LanguageTranslator(java.lang.String filename)
Returns new LanguageManager object. |
Method Summary | |
java.lang.String |
getText(java.lang.String text)
Retrieves the translation for a specific label of screen text. |
Methods inherited from class com.retek.commons.gui.util.TranslatorManager |
getBundle, getLocale, setBundle, setLocale, setLocale |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LanguageTranslator()
public LanguageTranslator(java.lang.String filename) throws UiBundleException
filename
- The filename of the properties file to load.
UiBundleException
- Thrown if the method fails to load the properties file.public LanguageTranslator(java.util.Locale locale, java.lang.String filename) throws UiBundleException
locale
- The Locale to load the label translations for.filename
- The filename of the properties file to load.
UiBundleException
- Thrown if the method fails to load the properties file.Method Detail |
public java.lang.String getText(java.lang.String text)
text
- The text to translate.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |