|
Kafenio.editor 0.8.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.xeinfach.kafenio.util.Translatrix
Description: This class translates string-ids into language specific messages.
| Constructor Summary | |
Translatrix()
private constructor for utility classes |
|
Translatrix(java.lang.String newBundleName)
private constructor for utility classes |
|
| Method Summary | |
java.util.Locale |
getLocale()
|
java.lang.String |
getTranslationString(java.lang.String originalText)
returns the translated string for the given originalText |
void |
setBundleName(java.lang.String bundle)
sets the resourcebundle name for this class and tries to load it. |
void |
setLocale(java.util.Locale newLocale)
sets the current locale, loads the default language file if locale-version could not be found. |
void |
setLocale(java.lang.String language,
java.lang.String country)
sets the locale using language and country information provided as string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Translatrix()
public Translatrix(java.lang.String newBundleName)
newBundleName - name of the resourcebundle to use| Method Detail |
public void setBundleName(java.lang.String bundle)
bundle - name of the resourcebundle to load.public void setLocale(java.util.Locale newLocale)
newLocale - locale string.public java.util.Locale getLocale()
public void setLocale(java.lang.String language,
java.lang.String country)
language - language as stringcountry - country-code as stringpublic java.lang.String getTranslationString(java.lang.String originalText)
originalText - the property name to return the translated string for.
|
Kafenio.editor 0.8.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||