|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.i18n.Translator
A tool class to help localization.
Constructor Summary | |
---|---|
Translator()
|
Method Summary | |
---|---|
static java.lang.String |
getImageBinding(java.lang.String name)
Provide a "gef compliant" image file name. |
static java.util.Locale[] |
getLocales()
For Locale selection. |
static void |
init()
Default Locale is set and resources Bundles are loaded. |
static java.lang.String |
localize(java.lang.String bundle,
java.lang.String key)
Helper for localization to eliminate the need to import the gef util library. |
static void |
setLocale(java.util.Locale locale)
Change the current Locale. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Translator()
Method Detail |
public static void init()
public static java.util.Locale[] getLocales()
public static void setLocale(java.util.Locale locale)
locale
- the new Localepublic static java.lang.String getImageBinding(java.lang.String name)
name
- the new i18n key
public static java.lang.String localize(java.lang.String bundle, java.lang.String key)
bundle
- a binding to a bundle of i18n resourceskey
- the key to loacalize
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20040216) | ArgoUML Project Home | ArgoUML Cookbook |