public abstract class GettextResource extends ResourceBundle
ResourceBundle.Control| Modifier and Type | Field and Description |
|---|---|
static boolean | verboseverbose. |
parent| Constructor and Description |
|---|
GettextResource() |
| Modifier and Type | Method and Description |
|---|---|
static String | gettext(ResourceBundle catalog,
String msgid)Look up a translated string. |
static String | ngettext(ResourceBundle catalog,
String msgid,
String msgid_plural,
long n)Returns the plural form for n of the translation of
msgid. |
static String | npgettext(ResourceBundle catalog,
String msgctxt,
String msgid,
String msgid_plural,
long n)Returns the plural form for n of the translation of
msgid in the context of msgctxt. |
static String | pgettext(ResourceBundle catalog,
String msgctxt,
String msgid)Returns the translation of msgid in the context of
msgctxt. |
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getKeys, getLocale, getObject, getString, getStringArray, handleGetObject, handleKeySet, keySet, setParentpublic static String gettext(ResourceBundle catalog, String msgid)
public static String ngettext(ResourceBundle catalog, String msgid, String msgid_plural, long n)
catalog - a ResourceBundlemsgid - the key string to be translated, an ASCII stringmsgid_plural - its English plural formpublic static String npgettext(ResourceBundle catalog, String msgctxt, String msgid, String msgid_plural, long n)
catalog - a ResourceBundlemsgctxt - the context for the key string, an ASCII stringmsgid - the key string to be translated, an ASCII stringmsgid_plural - its English plural formpublic static String pgettext(ResourceBundle catalog, String msgctxt, String msgid)
catalog - a ResourceBundlemsgctxt - the context for the key string, an ASCII stringmsgid - the key string to be translated, an ASCII string