|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.bloof.util.intl.Messages
This class manages the externalization of strings that will possiby be presented to the user. On default it loads the English text resources. It also can load language specific property files.
Field Summary | |
static java.lang.String |
NL
Newline constant |
static java.lang.String |
WS
Whitespace constant |
Constructor Summary | |
Messages()
|
Method Summary | |
static Language[] |
getAvailableLanguages()
Returns the currenty available Languages |
static java.util.Locale |
getCurrentLocale()
Returns the current Locale |
static java.lang.String |
getString(TextKey aKey)
Returns the value for the specified key. key-value pairs are specivied in the resourcebundle properties file. |
static void |
setLanguage(Language aLanguage)
Sets a language for Bloof |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String NL
public static final java.lang.String WS
Constructor Detail |
public Messages()
Method Detail |
public static Language[] getAvailableLanguages()
public static java.util.Locale getCurrentLocale()
public static java.lang.String getString(TextKey aKey)
aKey
- key of the requested string
public static void setLanguage(Language aLanguage)
aLanguage
- the language that bloof should use for user output
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |