Ticket #6427: at_provinces.2.py

File at_provinces.2.py, 1.3 KB (added by Bela Hausmann <post@…>, 17 years ago)

New version with english Names

Line 
1# -*- coding: utf-8 -*-
2"""
3A list of all nine provinces in Austria, see also: http://en.wikipedia.org/wiki/ISO_3166-2:AT
4In the comments there are their english names, if they are not the same as the german ones.
5Vienna is moved to the top, because it's the capital of Austria
6"""
7
8from django.utils.translation import ugettext_lazy as _
9
10# after ISO_3166-2
11PROVINCE_CHOICES = (
12 ('9', _(u'Vienna')),
13 ('1', _(u'Burgenland')),
14 ('2', _(u'Carinthia')),
15 ('3', _(u'Lower Austria')),
16 ('4', _(u'Upper Austria')),
17 ('5', _(u'Salzburg')),
18 ('6', _(u'Styria')),
19 ('7', _(u'Tyrol')),
20 ('8', _(u'Vorarlberg')),
21)
22PROVINCE_CHOICES_GERMAN = (
23 ('9', _(u'Wien')), # Vienna
24 ('1', _(u'Burgenland')),
25 ('2', _(u'Kärnten')), # Carinthia
26 ('3', _(u'Niederösterreich')), # Lower Austria
27 ('4', _(u'Oberösterreich')), # Upper Austria
28 ('5', _(u'Salzburg')),
29 ('6', _(u'Steiermark')), # Styria
30 ('7', _(u'Tirol')), # Tyrol
31 ('8', _(u'Vorarlberg')),
32)
33
34# alternative keys using initials (not used in forms)
35PROVINCE_CHOICES_GERMAN_INITIALS = (
36 ('W', _(u'Wien')), # Vienna
37 ('B', _(u'Burgenland')),
38 ('K', _(u'Kärnten')), # Carinthia
39 ('N', _(u'Niederösterreich')), # Lower Austria
40 ('O', _(u'Oberösterreich')), # Upper Austria
41 ('S', _(u'Salzburg')),
42 ('St', _(u'Steiermark')), # Styria
43 ('T', _(u'Tirol')), # Tyrol
44 ('V', _(u'Vorarlberg')),
45)
46
Back to Top