public class Messages extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static String | BUNDLE_NAMEThe bundle name |
| Constructor and Description |
|---|
Messages()Create a new Messages instance. |
| Modifier and Type | Method and Description |
|---|---|
String | _t(String key)Translate a string. |
String | _t(String key,
Object o)Translate a string with one parameter. |
static String | getString(int n,
String s,
String p)Translate a string with plural form (ngettext). |
static String | getString(String s)Translate a string (static). |
static String | getString(String s,
Object o)Translate a string with one parameter (static). |
static String | getString(String s,
Object o,
Object o2)Translate a string with two parameters (static). |
static final String BUNDLE_NAME
public String _t(String key)
key - the message keypublic String _t(String key, Object o)
key - the message keyo - the parameterpublic static String getString(int n, String s, String p)
n - the counts - the singular formp - the plural formpublic static String getString(String s)
s - the message keypublic static String getString(String s, Object o)
s - the message keyo - the parameter