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; }
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; }