|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.i18n.Translator
The API class to the localization. All localization calls goes through this class.
| Method Summary | |
static void |
addClassLoader(ClassLoader cl)
Add another class loader that the resource bundle could be located through. |
static Locale[] |
getLocales()
For Locale selection. |
static void |
init()
Default Locale is set and resources Bundles are loaded. |
static String |
localize(String key)
The main function of this class that localizes strings. |
static String |
localize(String key,
Object[] args)
Synonym for messageFormat to encourage developers to convert existing uses of localize() + string concatentation to use this method instead. |
static String |
messageFormat(String key,
Object[] args)
Generates an localized String with arguments. |
static void |
setLocale(Locale locale)
Change the current Locale. |
static void |
setLocale(String name)
Change the current Locale. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void init()
public static Locale[] getLocales()
TODO: Detect the available locales from the available files.
public static void setLocale(String name)
language [ "_" country ]
name - the name of the new localepublic static void setLocale(Locale locale)
locale - the new Localepublic static void addClassLoader(ClassLoader cl)
cl - The classloader to add.
public static String localize(String key,
Object[] args)
messageFormat(String, Object[])public static String localize(String key)
key - The key to localize.
public static String messageFormat(String key,
Object[] args)
The localized string is a pattern to be processed by
MessageFormat.
key - the key to localizeargs - the args as Objects, inserted in the localized String
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |