Beispiel #1
0
 public String getLang() {
   String lang = "default";
   if (general == null || general.size() == 0) {
     loadConfig();
   }
   ConfigItem item = general.getInstance(0);
   lang = item.getString("language", lang);
   item.setProperty("language", lang);
   return lang;
 }
Beispiel #2
0
 public String getGeneralValue(String name, String defaultValue) {
   String value = defaultValue;
   if (general == null || general.size() == 0) {
     loadConfig();
   }
   ConfigItem item = general.getInstance(0);
   value = item.getString(name, value);
   item.setProperty(name, value);
   return value;
 }