public class DefaultLocalizer extends LocalizerBase
decimalFormater, integerFormater
Constructor and Description |
---|
DefaultLocalizer(java.io.File propertyFile,
java.util.Locale locale)
Instantiates the DefaultLocalizer with some locale object and a (properties)
file that contains the code translations as key-value pairs.
|
DefaultLocalizer(java.util.Properties codelist,
java.util.Locale locale)
Instantiates the DefaultLocalizer with some locale object and a Properties
object that contains the code translations as key-value pairs.
|
Modifier and Type | Method and Description |
---|---|
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,
|
getLanguage, getLocale, localize, localize, localize, localize, localize, parseDate, parseDouble, parseInt, parseLong
public DefaultLocalizer(java.util.Properties codelist, java.util.Locale locale)
public DefaultLocalizer(java.io.File propertyFile, java.util.Locale locale) throws java.io.IOException
java.io.IOException
public java.lang.String localize(java.lang.String code)
code
- application internal code for some text