View | Details | Raw Unified | Return to bug 32678
Collapse All | Expand All

(-)services/univention-apache/conffiles/var/www/ucs-overview/languages.json (-4 / +2 lines)
 Lines 1-4    Link Here 
1
[
2
@!@
1
@!@
3
locale = configRegistry.get('locale', '') 
2
locale = configRegistry.get('locale', '') 
4
3
 Lines 10-16    Link Here 
10
        if configured_locale:
9
        if configured_locale:
11
                locales.append((l.replace('_', '-'), configured_locale))
10
                locales.append((l.replace('_', '-'), configured_locale))
12
11
13
print(',\n'.join('    {"id" : "%s", "label" : "%s"}' % (id, name) for id, name in locales))
12
import json
13
print(json.dumps([dict(id=id, label=label) for id, label in locales]))
14
@!@
14
@!@
15
]
16

Return to bug 32678