public class Localization extends Object
| Constructor and Description |
|---|
Localization(Locale locale)
Overloaded constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Locale |
getLanguage()
Getter for the language for this localization instance.
|
String |
getString(String key)
Returns the translation for the specified key.
|
String |
getString(String key,
Object... args)
Returns a formatted translation for the specified key.
|
void |
setLanguage(Locale locale)
Setter for the language for this localization instance.
|
public Localization(Locale locale)
locale - the locale for this localization instancepublic Locale getLanguage()
getLanguage().public void setLanguage(Locale locale)
locale - the localepublic String getString(String key)
key - the key to get the translation forCopyright © 2016. All rights reserved.