|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.pandoragames.util.i18n.LocalizerBase
net.pandoragames.util.i18n.BundleLocalizer
public class BundleLocalizer
ResourceBundle based implementation of the Localizer interface.
ResourceBundle| Field Summary |
|---|
| Fields inherited from class net.pandoragames.util.i18n.LocalizerBase |
|---|
decimalFormater, integerFormater |
| Constructor Summary | |
|---|---|
BundleLocalizer(java.lang.String baseName,
java.util.Locale locale)
The constructor takes the bundle base name and the desired locale. |
|
| Method Summary | |
|---|---|
java.lang.String |
localize(java.lang.String code)
Returns some locale specific, human readable text for the specified code, or the code unchanged if no such translation could be done, |
| Methods inherited from class net.pandoragames.util.i18n.LocalizerBase |
|---|
getLanguage, getLocale, localize, localize, localize, localize, localize, parseDate, parseDouble, parseInt, parseLong |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BundleLocalizer(java.lang.String baseName,
java.util.Locale locale)
java.util.ResourceBundle for details.
baseName - the base name of the resource bundle, a fully qualified class namelocale - non null locale| Method Detail |
|---|
public java.lang.String localize(java.lang.String code)
code - application internal code for some text
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||