| java.lang.Object com.salmonllc.localizer.Localizer com.salmonllc.localizer.PropertiesLocalizer
All known Subclasses: com.salmonllc.localizer.UTF8PropertiesLocalizer, com.salmonllc.localizer.EscapePropertiesLocalizer,
PropertiesLocalizer | public class PropertiesLocalizer extends Localizer (Code) | | The Properties Localizer is a concrete implementation of the Localizer class. This will load the localization keys from a property file in the salmon.props.path
|
PropertiesLocalizer | public PropertiesLocalizer()(Code) | | Constructs a new Localizer
|
PropertiesLocalizer | public PropertiesLocalizer(String charSet, boolean translateEscapes)(Code) | | Constructs a new Localizer using properties files of a particular character set
Parameters: charSet - The character set the property files will be in Parameters: translateEscapes - A boolean flag indicating whether or not to translate escape characters into UniCode |
loadData | protected boolean loadData(String appName, String language)(Code) | | Loads the data from a property file in the Salmon.props.path.
The file name must be in the form appName.lang.properties where appName and lang are the properties passed to the method.
If the file appName.lang.properties is not found, it will attempt to load a file called lang.properties.
The method returns true if it succeeds and false if not.
|
|
|