public class Language
extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getLanguage()
Get the current language.
|
static Map<String,String> |
getLanguages()
Get all available languages
|
static String |
getPrompt(String which) |
static Language |
init()
Singleton constructor
|
static String |
interpolate(String key,
Object... arguments) |
static String |
pluralize(String key,
int count) |
static void |
saveLanguage(String language)
Save the language directly to a settings file.
|
static String |
text(String key)
Get translation from bundles.
|
static boolean |
useInputMethod()
Is this a CJK language where Input Method support is suggested/required?
|
public static void saveLanguage(String language)
public static Language init()
public static String text(String key)
public static String interpolate(String key, Object... arguments)
public static String pluralize(String key, int count)
public static String getPrompt(String which)
which
- either yes, no, cancel, ok, or browsepublic static Map<String,String> getLanguages()
public static String getLanguage()
public static boolean useInputMethod()