Definition at line 55 of file IntlResourceManager.java.
Public Member Functions | |
String | getSystemDefaultLocale () |
String | getUserLocale () |
Properties | loadLocalizedProperties (String fileName, String local) throws java.io.FileNotFoundException, java.io.IOException |
load the properties file with specified locale. | |
String | getLocalizedFileName (String fileName, boolean force) |
return the fileName transformed with the system local. | |
void | addLocalizedProperties (String propertiesFile, String local) throws java.io.FileNotFoundException, java.io.IOException |
load the properties file with specified locale in the IntlResourceManager properties . | |
String | getLocalizedProperty (String propKey) |
void | setLocalizedProperty (String key, String value) |
String | getLocalizedProperty (String propKey, String defaultValue) |
String | getManagerLocaleString () |
return the local defined in the webserver property server.locale. | |
void | setManagerLocal (String local) |
Locale | getManagerLocale () |
Static Public Member Functions | |
static IntlResourceManager | getManager () |
Static Public Attributes | |
static final String | DEFAULT = "en" |
default extension extension : nothing | |
static final String | FR = "fr" |
France local extension :fr. | |
static final String | US = "us" |
United State local extension :us. | |
static final String | EN = "en" |
England local extension :en. | |
static final String | BE = "be" |
Belgium local extension :be. | |
static final String | SW = "sw" |
Switzerland local extension :sw. | |
static final String | DE = "de" |
Deutchland local extension :de. | |
static final String | IT = "it" |
Italian local extension :it. | |
static final String | ES = "es" |
Espana local extension :es. |
Properties org.openmobileis.common.intl.IntlResourceManager.loadLocalizedProperties | ( | String | fileName, | |
String | local | |||
) | throws java.io.FileNotFoundException, java.io.IOException |
load the properties file with specified locale.
Localized filename are of type filename.localExtension. If the localised file is not found try to load the filename (without extension). If it's failed return java.io.FileNotFoundException.
String | fileName : non localized filename | |
local | : locale of the file to load @ return the loaded properties |
: | java.io.FileNotFoundException if the localized file and fileName is not found. | |
: | java.io.IOException if an error occurs. |
Definition at line 150 of file IntlResourceManager.java.
String org.openmobileis.common.intl.IntlResourceManager.getLocalizedFileName | ( | String | fileName, | |
boolean | force | |||
) |
return the fileName transformed with the system local.
(ie:fileName.systemlocal.extention). if the force parameter is set and if the localized file does not exist return the specified filename. otherwise return the localized filename event if it doesn't exist.
Definition at line 171 of file IntlResourceManager.java.
References org.openmobileis.common.intl.IntlResourceManager.getUserLocale().
Referenced by org.openmobileis.embedded.webserver.templates.TemplateManager.getTemplate().
void org.openmobileis.common.intl.IntlResourceManager.addLocalizedProperties | ( | String | propertiesFile, | |
String | local | |||
) | throws java.io.FileNotFoundException, java.io.IOException |
load the properties file with specified locale in the IntlResourceManager properties .
Localized filename are of type filename.localExtension. If the localised file is not found try to load the filename (without extension). If it's failed return java.io.FileNotFoundException.
String | fileName : non localized filename | |
local | : locale of the file to load @ return the loaded properties |
: | java.io.FileNotFoundException if the localized file and fileName is not found. | |
: | java.io.IOException if an error occurs. |
Definition at line 205 of file IntlResourceManager.java.
String org.openmobileis.common.intl.IntlResourceManager.getManagerLocaleString | ( | ) |
return the local defined in the webserver property server.locale.
If not defined default is use.
Definition at line 229 of file IntlResourceManager.java.