|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.provisioner.utils.I18n
public class I18n
Internationalization aka I18n Sets the current locale and provides corresponding resources
Constructor Summary | |
---|---|
I18n()
|
Method Summary | |
---|---|
static java.lang.String |
getFormattedLogString(java.lang.String key,
java.lang.Object[] arguments)
Creates a compound message using a pattern for the given key from the resource bundle containing the log messages |
static java.lang.String |
getLogString(java.lang.String key)
Gets a string for the given key from the resource bundle containing the log messages |
static void |
setLocale(java.lang.String language,
java.lang.String country)
Sets the current locale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public I18n()
Method Detail |
---|
public static void setLocale(java.lang.String language, java.lang.String country)
language
- a valid ISO Language Code. These codes are the lower-case,
two-letter codes as defined by ISO-639country
- a valid ISO Country Code. These codes are the upper-case,
two-letter codes as defined by ISO-3166public static java.lang.String getLogString(java.lang.String key)
key
- the key for the desired string
public static java.lang.String getFormattedLogString(java.lang.String key, java.lang.Object[] arguments)
key
- the key for the desired patternarguments
- the arguments for the compound message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |