Lines 3043-3055
class ObjectFlag( select ):
|
Link Here
|
---|
|
3043 |
class Country(select): |
3043 |
class Country(select): |
3044 |
empty_value = True |
3044 |
empty_value = True |
3045 |
|
3045 |
|
3046 |
try: |
3046 |
iso_3166 = univention.admin.localization.translation('iso_3166') |
3047 |
locale.setlocale(locale.LC_ALL, "") |
3047 |
iso_3166.set_language(str(translation.locale)) |
3048 |
except locale.Error: |
3048 |
_iso_3166 = iso_3166.translate |
3049 |
# unsupported locale setting: a locale was not installed (probably de_DE.UTF-8) |
|
|
3050 |
pass |
3051 |
translation = univention.admin.localization.translation('iso_3166') |
3052 |
_iso_3166 = translation.translate |
3053 |
|
3049 |
|
3054 |
choices = [('AF', _iso_3166(u'Afghanistan')), ('AX', _iso_3166(u'\xc5land Islands')), |
3050 |
choices = [('AF', _iso_3166(u'Afghanistan')), ('AX', _iso_3166(u'\xc5land Islands')), |
3055 |
('AL', _iso_3166(u'Albania')), ('DZ', _iso_3166(u'Algeria')), |
3051 |
('AL', _iso_3166(u'Albania')), ('DZ', _iso_3166(u'Algeria')), |