use of org.mifos.config.business.MifosConfigurationManager in project head by mifos.
the class LocaleSetting method setLanguageCodeToConfigFile.
public void setLanguageCodeToConfigFile() {
MifosConfigurationManager configMgr = MifosConfigurationManager.getInstance();
configMgr.addProperty(LANGUAGE_CODE, languageCode);
}
use of org.mifos.config.business.MifosConfigurationManager in project head by mifos.
the class LocaleSetting method setDirectionToConfigFile.
public void setDirectionToConfigFile() {
MifosConfigurationManager configMgr = MifosConfigurationManager.getInstance();
configMgr.addProperty(DIRECTION, direction);
}
use of org.mifos.config.business.MifosConfigurationManager in project head by mifos.
the class LocaleSetting method clearDirection.
public void clearDirection() {
MifosConfigurationManager configMgr = MifosConfigurationManager.getInstance();
configMgr.clearProperty(DIRECTION);
}
use of org.mifos.config.business.MifosConfigurationManager in project head by mifos.
the class LocaleSetting method clearLanguageCode.
public void clearLanguageCode() {
MifosConfigurationManager configMgr = MifosConfigurationManager.getInstance();
configMgr.clearProperty(LANGUAGE_CODE);
}
use of org.mifos.config.business.MifosConfigurationManager in project head by mifos.
the class LocaleSetting method load.
private void load() {
MifosConfigurationManager configMgr = MifosConfigurationManager.getInstance();
if (configMgr.containsKey(COUNTRY_CODE)) {
countryCode = configMgr.getString(COUNTRY_CODE);
} else {
throw new RuntimeException("The country code is not defined in the config file.");
}
if (configMgr.containsKey(LANGUAGE_CODE)) {
languageCode = configMgr.getString(LANGUAGE_CODE);
} else {
throw new RuntimeException("The language code is not defined in the config file.");
}
direction = configMgr.getString(DIRECTION, DEFAULT_DIRECTION);
setLabLevel(configMgr.getInteger(LAB_LEVEL, DEFAULT_LAB_LEVEL));
}
Aggregations