|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jsxe.gui.Messages
Gets the messages for the current locale according to the JVM.
Constructor Summary | |
Messages()
|
Method Summary | |
static String |
getLanguage()
|
static String |
getMessage(String propertyName)
|
static String |
getMessage(String name,
Object[] args)
Returns the message with the specified name. |
static void |
initializePropertiesObject(String language,
String directory)
Initializes the localized messages for jsXe. |
static void |
loadPluginMessages(Properties pluginMessages)
Loads the localized messages from installed plugins and merges them into the plugin messages. |
static void |
setLanguage(String newLanguage)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Messages()
Method Detail |
public static String getLanguage()
public static void setLanguage(String newLanguage)
newLanguage
- The language to set.public static String getMessage(String propertyName)
public static String getMessage(String name, Object[] args)
The elements of the args
array are substituted
into the value of the property in place of strings of the
form {n}
, where n
is an index
in the array.
You can find out more about this feature by reading the
documentation for the format
method of the
java.text.MessageFormat
class.
name
- The propertyargs
- The positional parameterspublic static void initializePropertiesObject(String language, String directory)
language
- The language for the propertiesObject.public static void loadPluginMessages(Properties pluginMessages)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |