public class Messages
extends java.lang.Object
The locale may actually differ from the language of the messages depending on
which resource bundles are available and the fallback mechanism of
ResourceBundle.getBundle(String, Locale, ClassLoader).
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFormattedString(java.lang.String key,
java.lang.Object... args)
Returns the formatted string for the specified key and format arguments.
|
java.util.Locale |
getLocale()
Returns the locale of the messages.
|
java.lang.String |
getString(java.lang.String key)
Returns the string for the specified key.
|
public java.util.Locale getLocale()
public java.lang.String getString(java.lang.String key)
key - key of the localised stringpublic java.lang.String getFormattedString(java.lang.String key,
java.lang.Object... args)
key - key of the localised stringargs - format arguments