public class Messages extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static String | BUNDLE_NAMEThe bundle name |
| Constructor and Description |
|---|
Messages()Construct a Messages instance. |
| Modifier and Type | Method and Description |
|---|---|
String | _t(String key)Return the translated string for the given key. |
static String | getString(String s)Return the translated string for the given key. |
static String | getString(String s,
Object o)Return the translated string for the given key, with one argument. |
static String | getString(String s,
Object o,
Object o2)Return the translated string for the given key, with two arguments. |
static final String BUNDLE_NAME
public String _t(String key)
key - the message keypublic static String getString(String s)
s - the message keypublic static String getString(String s, Object o)
s - the message keyo - the argument to substitute