Search in sources :

Example 1 with StyleObject

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;
}
Also used : I18n(org.hisp.dhis.i18n.I18n) StyleObject(org.hisp.dhis.setting.StyleObject)

Aggregations

I18n (org.hisp.dhis.i18n.I18n)1 StyleObject (org.hisp.dhis.setting.StyleObject)1