use of org.hisp.dhis.setting.StyleObject in project dhis2-core by dhis2.
the class SystemController method getFlagObjects.
// -------------------------------------------------------------------------
// Supportive methods
// -------------------------------------------------------------------------
private List<StyleObject> getFlagObjects() {
List<String> flags = systemSettingManager.getFlags();
I18n i18n = i18nManager.getI18n();
List<StyleObject> list = Lists.newArrayList();
for (String flag : flags) {
String file = flag + ".png";
list.add(new StyleObject(i18n.getString(flag), flag, file));
}
return list;
}
Aggregations