Fixed #5200 -- Added Polish localflavor. Thanks, Slawek Mikula.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5936 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a901af5f58
commit
90c177f18e
1
AUTHORS
1
AUTHORS
|
@ -196,6 +196,7 @@ answer newbie questions, and generally made Django that much better:
|
||||||
mccutchen@gmail.com
|
mccutchen@gmail.com
|
||||||
michael.mcewan@gmail.com
|
michael.mcewan@gmail.com
|
||||||
mikko@sorl.net
|
mikko@sorl.net
|
||||||
|
Slawek Mikula <slawek dot mikula at gmail dot com>
|
||||||
mitakummaa@gmail.com
|
mitakummaa@gmail.com
|
||||||
mmarshall
|
mmarshall
|
||||||
Andreas Mock <andreas.mock@web.de>
|
Andreas Mock <andreas.mock@web.de>
|
||||||
|
|
|
@ -0,0 +1,84 @@
|
||||||
|
"""
|
||||||
|
Polish-specific form helpers
|
||||||
|
"""
|
||||||
|
|
||||||
|
from django.newforms import ValidationError
|
||||||
|
from django.newforms.fields import Select, RegexField
|
||||||
|
from django.utils.translation import ugettext as _
|
||||||
|
|
||||||
|
class PLVoivodeshipSelect(Select):
|
||||||
|
"""
|
||||||
|
A select widget with list of Polish voivodeships (administrative provinces)
|
||||||
|
as choices.
|
||||||
|
"""
|
||||||
|
def __init__(self, attrs=None):
|
||||||
|
from pl_voivodeships import VOIVODESHIP_CHOICES
|
||||||
|
super(PLVoivodeshipSelect, self).__init__(attrs, choices=VOIVODESHIP_CHOICES)
|
||||||
|
|
||||||
|
class PLAdministrativeUnitSelect(Select):
|
||||||
|
"""
|
||||||
|
A select widget with list of Polish administrative units as choices.
|
||||||
|
"""
|
||||||
|
def __init__(self, attrs=None):
|
||||||
|
from pl_administrativeunits import ADMINISTRATIVE_UNIT_CHOICES
|
||||||
|
super(PLAdministrativeUnitSelect, self).__init__(attrs, choices=ADMINISTRATIVE_UNIT_CHOICES)
|
||||||
|
|
||||||
|
class PLNationalIdentificationNumberField(RegexField):
|
||||||
|
"""
|
||||||
|
A form field that validates as Polish Identification Number (PESEL).
|
||||||
|
|
||||||
|
Checks the following rules:
|
||||||
|
* the length consist of 11 digits
|
||||||
|
* has a valid checksum
|
||||||
|
|
||||||
|
The algorithm is documented at http://en.wikipedia.org/wiki/PESEL.
|
||||||
|
"""
|
||||||
|
|
||||||
|
def has_valid_checksum(self, number):
|
||||||
|
"""
|
||||||
|
Calculates a checksum with the provided algorithm.
|
||||||
|
"""
|
||||||
|
multiple_table = (1, 3, 7, 9, 1, 3, 7, 9, 1, 3, 1)
|
||||||
|
result = 0
|
||||||
|
for i in range(len(number)):
|
||||||
|
result += int(number[i])*multiple_table[i]
|
||||||
|
|
||||||
|
if result % 10 == 0:
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
|
def __init__(self, *args, **kwargs):
|
||||||
|
super(PLNationalIdentificationNumberField, self).__init__(r'^\d{11}$',
|
||||||
|
max_length=None, min_length=None, error_message=_(u'National Identification Number consists of 11 digits.'),
|
||||||
|
*args, **kwargs)
|
||||||
|
|
||||||
|
def clean(self,value):
|
||||||
|
super(PLNationalIdentificationNumberField, self).clean(value)
|
||||||
|
if not self.has_valid_checksum(value):
|
||||||
|
raise ValidationError(_(u'Wrong checksum for the National Identification Number.'))
|
||||||
|
return u'%s' % value
|
||||||
|
|
||||||
|
|
||||||
|
class PLTaxNumberField(RegexField):
|
||||||
|
"""
|
||||||
|
A form field that validates as Polish Tax Number (NIP).
|
||||||
|
Valid forms are: XXX-XXX-YY-YY or XX-XX-YYY-YYY.
|
||||||
|
"""
|
||||||
|
def __init__(self, *args, **kwargs):
|
||||||
|
super(PLTaxNumberField, self).__init__(r'^\d{3}-\d{3}-\d{2}-\d{2}$|^\d{2}-\d{2}-\d{3}-\d{3}$',
|
||||||
|
max_length=None, min_length=None,
|
||||||
|
error_message=_(u'Enter a tax number field (NIP) in the format XXX-XXX-XX-XX or XX-XX-XXX-XXX.'), *args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
class PLPostalCodeField(RegexField):
|
||||||
|
"""
|
||||||
|
A form field that validates as Polish postal code.
|
||||||
|
Valid code is XX-XXX where X is digit.
|
||||||
|
"""
|
||||||
|
def __init__(self, *args, **kwargs):
|
||||||
|
super(PLPostalCodeField, self).__init__(r'^\d{2}-\d{3}$',
|
||||||
|
max_length=None, min_length=None,
|
||||||
|
error_message=_(u'Enter a postal code in the format XX-XXX.'),
|
||||||
|
*args, **kwargs)
|
||||||
|
|
|
@ -0,0 +1,385 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
Polish administrative units as in http://pl.wikipedia.org/wiki/Podzia%C5%82_administracyjny_Polski
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
ADMINISTRATIVE_UNIT_CHOICES = (
|
||||||
|
('wroclaw', u'Wrocław'),
|
||||||
|
('jeleniagora', u'Jelenia Góra'),
|
||||||
|
('legnica', u'Legnica'),
|
||||||
|
('boleslawiecki', u'bolesławiecki'),
|
||||||
|
('dzierzoniowski', u'dzierżoniowski'),
|
||||||
|
('glogowski', u'głogowski'),
|
||||||
|
('gorowski', u'górowski'),
|
||||||
|
('jaworski', u'jaworski'),
|
||||||
|
('jeleniogorski', u'jeleniogórski'),
|
||||||
|
('kamiennogorski', u'kamiennogórski'),
|
||||||
|
('klodzki', u'kłodzki'),
|
||||||
|
('legnicki', u'legnicki'),
|
||||||
|
('lubanski', u'lubański'),
|
||||||
|
('lubinski', u'lubiński'),
|
||||||
|
('lwowecki', u'lwówecki'),
|
||||||
|
('milicki', u'milicki'),
|
||||||
|
('olesnicki', u'oleśnicki'),
|
||||||
|
('olawski', u'oławski'),
|
||||||
|
('polkowicki', u'polkowicki'),
|
||||||
|
('strzelinski', u'strzeliński'),
|
||||||
|
('sredzki', u'średzki'),
|
||||||
|
('swidnicki', u'świdnicki'),
|
||||||
|
('trzebnicki', u'trzebnicki'),
|
||||||
|
('walbrzyski', u'wałbrzyski'),
|
||||||
|
('wolowski', u'wołowski'),
|
||||||
|
('wroclawski', u'wrocławski'),
|
||||||
|
('zabkowicki', u'ząbkowicki'),
|
||||||
|
('zgorzelecki', u'zgorzelecki'),
|
||||||
|
('zlotoryjski', u'złotoryjski'),
|
||||||
|
('bydgoszcz', u'Bydgoszcz'),
|
||||||
|
('torun', u'Toruń'),
|
||||||
|
('wloclawek', u'Włocławek'),
|
||||||
|
('grudziadz', u'Grudziądz'),
|
||||||
|
('aleksandrowski', u'aleksandrowski'),
|
||||||
|
('brodnicki', u'brodnicki'),
|
||||||
|
('bydgoski', u'bydgoski'),
|
||||||
|
('chelminski', u'chełmiński'),
|
||||||
|
('golubsko-dobrzynski', u'golubsko-dobrzyński'),
|
||||||
|
('grudziadzki', u'grudziądzki'),
|
||||||
|
('inowroclawski', u'inowrocławski'),
|
||||||
|
('lipnowski', u'lipnowski'),
|
||||||
|
('mogilenski', u'mogileński'),
|
||||||
|
('nakielski', u'nakielski'),
|
||||||
|
('radziejowski', u'radziejowski'),
|
||||||
|
('rypinski', u'rypiński'),
|
||||||
|
('sepolenski', u'sępoleński'),
|
||||||
|
('swiecki', u'świecki'),
|
||||||
|
('torunski', u'toruński'),
|
||||||
|
('tucholski', u'tucholski'),
|
||||||
|
('wabrzeski', u'wąbrzeski'),
|
||||||
|
('wloclawski', u'wrocławski'),
|
||||||
|
('zninski', u'źniński'),
|
||||||
|
('lublin', u'Lublin'),
|
||||||
|
('biala-podlaska', u'Biała Podlaska'),
|
||||||
|
('chelm', u'Chełm'),
|
||||||
|
('zamosc', u'Zamość'),
|
||||||
|
('bialski', u'bialski'),
|
||||||
|
('bilgorajski', u'biłgorajski'),
|
||||||
|
('chelmski', u'chełmski'),
|
||||||
|
('hrubieszowski', u'hrubieszowski'),
|
||||||
|
('janowski', u'janowski'),
|
||||||
|
('krasnostawski', u'krasnostawski'),
|
||||||
|
('krasnicki', u'kraśnicki'),
|
||||||
|
('lubartowski', u'lubartowski'),
|
||||||
|
('lubelski', u'lubelski'),
|
||||||
|
('leczynski', u'łęczyński'),
|
||||||
|
('lukowski', u'łukowski'),
|
||||||
|
('opolski', u'opolski'),
|
||||||
|
('parczewski', u'parczewski'),
|
||||||
|
('pulawski', u'puławski'),
|
||||||
|
('radzynski', u'radzyński'),
|
||||||
|
('rycki', u'rycki'),
|
||||||
|
('swidnicki', u'świdnicki'),
|
||||||
|
('tomaszowski', u'tomaszowski'),
|
||||||
|
('wlodawski', u'włodawski'),
|
||||||
|
('zamojski', u'zamojski'),
|
||||||
|
('gorzow-wielkopolski', u'Gorzów Wielkopolski'),
|
||||||
|
('zielona-gora', u'Zielona Góra'),
|
||||||
|
('gorzowski', u'gorzowski'),
|
||||||
|
('krosnienski', u'krośnieński'),
|
||||||
|
('miedzyrzecki', u'międzyrzecki'),
|
||||||
|
('nowosolski', u'nowosolski'),
|
||||||
|
('slubicki', u'słubicki'),
|
||||||
|
('strzelecko-drezdenecki', u'strzelecko-drezdenecki'),
|
||||||
|
('sulecinski', u'suleńciński'),
|
||||||
|
('swiebodzinski', u'świebodziński'),
|
||||||
|
('wschowski', u'wschowski'),
|
||||||
|
('zielonogorski', u'zielonogórski'),
|
||||||
|
('zaganski', u'żagański'),
|
||||||
|
('zarski', u'żarski'),
|
||||||
|
('lodz', u'Łódź'),
|
||||||
|
('piotrkow-trybunalski', u'Piotrków Trybunalski'),
|
||||||
|
('skierniewice', u'Skierniewice'),
|
||||||
|
('belchatowski', u'bełchatowski'),
|
||||||
|
('brzezinski', u'brzeziński'),
|
||||||
|
('kutnowski', u'kutnowski'),
|
||||||
|
('laski', u'łaski'),
|
||||||
|
('leczycki', u'łęczycki'),
|
||||||
|
('lowicki', u'łowicki'),
|
||||||
|
('lodzki wschodni', u'łódzki wschodni'),
|
||||||
|
('opoczynski', u'opoczyński'),
|
||||||
|
('pabianicki', u'pabianicki'),
|
||||||
|
('pajeczanski', u'pajęczański'),
|
||||||
|
('piotrkowski', u'piotrkowski'),
|
||||||
|
('poddebicki', u'poddębicki'),
|
||||||
|
('radomszczanski', u'radomszczański'),
|
||||||
|
('rawski', u'rawski'),
|
||||||
|
('sieradzki', u'sieradzki'),
|
||||||
|
('skierniewicki', u'skierniewicki'),
|
||||||
|
('tomaszowski', u'tomaszowski'),
|
||||||
|
('wielunski', u'wieluński'),
|
||||||
|
('wieruszowski', u'wieruszowski'),
|
||||||
|
('zdunskowolski', u'zduńskowolski'),
|
||||||
|
('zgierski', u'zgierski'),
|
||||||
|
('krakow', u'Kraków'),
|
||||||
|
('tarnow', u'Tarnów'),
|
||||||
|
('nowy-sacz', u'Nowy Sącz'),
|
||||||
|
('bochenski', u'bocheński'),
|
||||||
|
('brzeski', u'brzeski'),
|
||||||
|
('chrzanowski', u'chrzanowski'),
|
||||||
|
('dabrowski', u'dąbrowski'),
|
||||||
|
('gorlicki', u'gorlicki'),
|
||||||
|
('krakowski', u'krakowski'),
|
||||||
|
('limanowski', u'limanowski'),
|
||||||
|
('miechowski', u'miechowski'),
|
||||||
|
('myslenicki', u'myślenicki'),
|
||||||
|
('nowosadecki', u'nowosądecki'),
|
||||||
|
('nowotarski', u'nowotarski'),
|
||||||
|
('olkuski', u'olkuski'),
|
||||||
|
('oswiecimski', u'oświęcimski'),
|
||||||
|
('proszowicki', u'proszowicki'),
|
||||||
|
('suski', u'suski'),
|
||||||
|
('tarnowski', u'tarnowski'),
|
||||||
|
('tatrzanski', u'tatrzański'),
|
||||||
|
('wadowicki', u'wadowicki'),
|
||||||
|
('wielicki', u'wielicki'),
|
||||||
|
('warszawa', u'Warszawa'),
|
||||||
|
('ostroleka', u'Ostrołęka'),
|
||||||
|
('plock', u'Płock'),
|
||||||
|
('radom', u'Radom'),
|
||||||
|
('siedlce', u'Siedlce'),
|
||||||
|
('bialobrzeski', u'białobrzeski'),
|
||||||
|
('ciechanowski', u'ciechanowski'),
|
||||||
|
('garwolinski', u'garwoliński'),
|
||||||
|
('gostyninski', u'gostyniński'),
|
||||||
|
('grodziski', u'grodziski'),
|
||||||
|
('grojecki', u'grójecki'),
|
||||||
|
('kozienicki', u'kozenicki'),
|
||||||
|
('legionowski', u'legionowski'),
|
||||||
|
('lipski', u'lipski'),
|
||||||
|
('losicki', u'łosicki'),
|
||||||
|
('makowski', u'makowski'),
|
||||||
|
('minski', u'miński'),
|
||||||
|
('mlawski', u'mławski'),
|
||||||
|
('nowodworski', u'nowodworski'),
|
||||||
|
('ostrolecki', u'ostrołęcki'),
|
||||||
|
('ostrowski', u'ostrowski'),
|
||||||
|
('otwocki', u'otwocki'),
|
||||||
|
('piaseczynski', u'piaseczyński'),
|
||||||
|
('plocki', u'płocki'),
|
||||||
|
('plonski', u'płoński'),
|
||||||
|
('pruszkowski', u'pruszkowski'),
|
||||||
|
('przasnyski', u'przasnyski'),
|
||||||
|
('przysuski', u'przysuski'),
|
||||||
|
('pultuski', u'pułtuski'),
|
||||||
|
('radomski', u'radomski'),
|
||||||
|
('siedlecki', u'siedlecki'),
|
||||||
|
('sierpecki', u'sierpecki'),
|
||||||
|
('sochaczewski', u'sochaczewski'),
|
||||||
|
('sokolowski', u'sokołowski'),
|
||||||
|
('szydlowiecki', u'szydłowiecki'),
|
||||||
|
('warszawski-zachodni', u'warszawski zachodni'),
|
||||||
|
('wegrowski', u'węgrowski'),
|
||||||
|
('wolominski', u'wołomiński'),
|
||||||
|
('wyszkowski', u'wyszkowski'),
|
||||||
|
('zwolenski', u'zwoleński'),
|
||||||
|
('zurominski', u'żuromiński'),
|
||||||
|
('zyrardowski', u'żyrardowski'),
|
||||||
|
('opole', u'Opole'),
|
||||||
|
('brzeski', u'brzeski'),
|
||||||
|
('glubczycki', u'głubczyski'),
|
||||||
|
('kedzierzynsko-kozielski', u'kędzierzyński-kozielski'),
|
||||||
|
('kluczborski', u'kluczborski'),
|
||||||
|
('krapkowicki', u'krapkowicki'),
|
||||||
|
('namyslowski', u'namysłowski'),
|
||||||
|
('nyski', u'nyski'),
|
||||||
|
('oleski', u'oleski'),
|
||||||
|
('opolski', u'opolski'),
|
||||||
|
('prudnicki', u'prudnicki'),
|
||||||
|
('strzelecki', u'strzelecki'),
|
||||||
|
('rzeszow', u'Rzeszów'),
|
||||||
|
('krosno', u'Krosno'),
|
||||||
|
('przemysl', u'Przemyśl'),
|
||||||
|
('tarnobrzeg', u'Tarnobrzeg'),
|
||||||
|
('bieszczadzki', u'bieszczadzki'),
|
||||||
|
('brzozowski', u'brzozowski'),
|
||||||
|
('debicki', u'dębicki'),
|
||||||
|
('jaroslawski', u'jarosławski'),
|
||||||
|
('jasielski', u'jasielski'),
|
||||||
|
('kolbuszowski', u'kolbuszowski'),
|
||||||
|
('krosnienski', u'krośnieński'),
|
||||||
|
('leski', u'leski'),
|
||||||
|
('lezajski', u'leżajski'),
|
||||||
|
('lubaczowski', u'lubaczowski'),
|
||||||
|
('lancucki', u'łańcucki'),
|
||||||
|
('mielecki', u'mielecki'),
|
||||||
|
('nizanski', u'niżański'),
|
||||||
|
('przemyski', u'przemyski'),
|
||||||
|
('przeworski', u'przeworski'),
|
||||||
|
('ropczycko-sedziszowski', u'ropczycko-sędziszowski'),
|
||||||
|
('rzeszowski', u'rzeszowski'),
|
||||||
|
('sanocki', u'sanocki'),
|
||||||
|
('stalowowolski', u'stalowowolski'),
|
||||||
|
('strzyzowski', u'strzyżowski'),
|
||||||
|
('tarnobrzeski', u'tarnobrzeski'),
|
||||||
|
('bialystok', u'Białystok'),
|
||||||
|
('lomza', u'Łomża'),
|
||||||
|
('suwalki', u'Suwałki'),
|
||||||
|
('augustowski', u'augustowski'),
|
||||||
|
('bialostocki', u'białostocki'),
|
||||||
|
('bielski', u'bielski'),
|
||||||
|
('grajewski', u'grajewski'),
|
||||||
|
('hajnowski', u'hajnowski'),
|
||||||
|
('kolnenski', u'kolneński'),
|
||||||
|
('łomzynski', u'łomżyński'),
|
||||||
|
('moniecki', u'moniecki'),
|
||||||
|
('sejnenski', u'sejneński'),
|
||||||
|
('siemiatycki', u'siematycki'),
|
||||||
|
('sokolski', u'sokólski'),
|
||||||
|
('suwalski', u'suwalski'),
|
||||||
|
('wysokomazowiecki', u'wysokomazowiecki'),
|
||||||
|
('zambrowski', u'zambrowski'),
|
||||||
|
('gdansk', u'Gdańsk'),
|
||||||
|
('gdynia', u'Gdynia'),
|
||||||
|
('slupsk', u'Słupsk'),
|
||||||
|
('sopot', u'Sopot'),
|
||||||
|
('bytowski', u'bytowski'),
|
||||||
|
('chojnicki', u'chojnicki'),
|
||||||
|
('czluchowski', u'człuchowski'),
|
||||||
|
('kartuski', u'kartuski'),
|
||||||
|
('koscierski', u'kościerski'),
|
||||||
|
('kwidzynski', u'kwidzyński'),
|
||||||
|
('leborski', u'lęborski'),
|
||||||
|
('malborski', u'malborski'),
|
||||||
|
('nowodworski', u'nowodworski'),
|
||||||
|
('gdanski', u'gdański'),
|
||||||
|
('pucki', u'pucki'),
|
||||||
|
('slupski', u'słupski'),
|
||||||
|
('starogardzki', u'starogardzki'),
|
||||||
|
('sztumski', u'sztumski'),
|
||||||
|
('tczewski', u'tczewski'),
|
||||||
|
('wejherowski', u'wejcherowski'),
|
||||||
|
('katowice', u'Katowice'),
|
||||||
|
('bielsko-biala', u'Bielsko-Biała'),
|
||||||
|
('bytom', u'Bytom'),
|
||||||
|
('chorzow', u'Chorzów'),
|
||||||
|
('czestochowa', u'Częstochowa'),
|
||||||
|
('dabrowa-gornicza', u'Dąbrowa Górnicza'),
|
||||||
|
('gliwice', u'Gliwice'),
|
||||||
|
('jastrzebie-zdroj', u'Jastrzębie Zdrój'),
|
||||||
|
('jaworzno', u'Jaworzno'),
|
||||||
|
('myslowice', u'Mysłowice'),
|
||||||
|
('piekary-slaskie', u'Piekary Śląskie'),
|
||||||
|
('ruda-slaska', u'Ruda Śląska'),
|
||||||
|
('rybnik', u'Rybnik'),
|
||||||
|
('siemianowice-slaskie', u'Siemianowice Śląskie'),
|
||||||
|
('sosnowiec', u'Sosnowiec'),
|
||||||
|
('swietochlowice', u'Świętochłowice'),
|
||||||
|
('tychy', u'Tychy'),
|
||||||
|
('zabrze', u'Zabrze'),
|
||||||
|
('zory', u'Żory'),
|
||||||
|
('bedzinski', u'będziński'),
|
||||||
|
('bielski', u'bielski'),
|
||||||
|
('bierunsko-ledzinski', u'bieruńsko-lędziński'),
|
||||||
|
('cieszynski', u'cieszyński'),
|
||||||
|
('czestochowski', u'częstochowski'),
|
||||||
|
('gliwicki', u'gliwicki'),
|
||||||
|
('klobucki', u'kłobucki'),
|
||||||
|
('lubliniecki', u'lubliniecki'),
|
||||||
|
('mikolowski', u'mikołowski'),
|
||||||
|
('myszkowski', u'myszkowski'),
|
||||||
|
('pszczynski', u'pszczyński'),
|
||||||
|
('raciborski', u'raciborski'),
|
||||||
|
('rybnicki', u'rybnicki'),
|
||||||
|
('tarnogorski', u'tarnogórski'),
|
||||||
|
('wodzislawski', u'wodzisławski'),
|
||||||
|
('zawiercianski', u'zawierciański'),
|
||||||
|
('zywiecki', u'żywiecki'),
|
||||||
|
('kielce', u'Kielce'),
|
||||||
|
('buski', u'buski'),
|
||||||
|
('jedrzejowski', u'jędrzejowski'),
|
||||||
|
('kazimierski', u'kazimierski'),
|
||||||
|
('kielecki', u'kielecki'),
|
||||||
|
('konecki', u'konecki'),
|
||||||
|
('opatowski', u'opatowski'),
|
||||||
|
('ostrowiecki', u'ostrowiecki'),
|
||||||
|
('pinczowski', u'pińczowski'),
|
||||||
|
('sandomierski', u'sandomierski'),
|
||||||
|
('skarzyski', u'skarżyski'),
|
||||||
|
('starachowicki', u'starachowicki'),
|
||||||
|
('staszowski', u'staszowski'),
|
||||||
|
('wloszczowski', u'włoszczowski'),
|
||||||
|
('olsztyn', u'Olsztyn'),
|
||||||
|
('elblag', u'Elbląg'),
|
||||||
|
('bartoszycki', u'bartoszycki'),
|
||||||
|
('braniewski', u'braniewski'),
|
||||||
|
('dzialdowski', u'działdowski'),
|
||||||
|
('elblaski', u'elbląski'),
|
||||||
|
('elcki', u'ełcki'),
|
||||||
|
('gizycki', u'giżycki'),
|
||||||
|
('goldapski', u'gołdapski'),
|
||||||
|
('ilawski', u'iławski'),
|
||||||
|
('ketrzynski', u'kętrzyński'),
|
||||||
|
('lidzbarski', u'lidzbarski'),
|
||||||
|
('mragowski', u'mrągowski'),
|
||||||
|
('nidzicki', u'nidzicki'),
|
||||||
|
('nowomiejski', u'nowomiejski'),
|
||||||
|
('olecki', u'olecki'),
|
||||||
|
('olsztynski', u'olsztyński'),
|
||||||
|
('ostrodzki', u'ostródzki'),
|
||||||
|
('piski', u'piski'),
|
||||||
|
('szczycienski', u'szczycieński'),
|
||||||
|
('wegorzewski', u'węgorzewski'),
|
||||||
|
('poznan', u'Poznań'),
|
||||||
|
('kalisz', u'Kalisz'),
|
||||||
|
('konin', u'Konin'),
|
||||||
|
('leszno', u'Leszno'),
|
||||||
|
('chodzieski', u'chodziejski'),
|
||||||
|
('czarnkowsko-trzcianecki', u'czarnkowsko-trzcianecki'),
|
||||||
|
('gnieznienski', u'gnieźnieński'),
|
||||||
|
('gostynski', u'gostyński'),
|
||||||
|
('grodziski', u'grodziski'),
|
||||||
|
('jarocinski', u'jarociński'),
|
||||||
|
('kaliski', u'kaliski'),
|
||||||
|
('kepinski', u'kępiński'),
|
||||||
|
('kolski', u'kolski'),
|
||||||
|
('koninski', u'koniński'),
|
||||||
|
('koscianski', u'kościański'),
|
||||||
|
('krotoszynski', u'krotoszyński'),
|
||||||
|
('leszczynski', u'leszczyński'),
|
||||||
|
('miedzychodzki', u'międzychodzki'),
|
||||||
|
('nowotomyski', u'nowotomyski'),
|
||||||
|
('obornicki', u'obornicki'),
|
||||||
|
('ostrowski', u'ostrowski'),
|
||||||
|
('ostrzeszowski', u'ostrzeszowski'),
|
||||||
|
('pilski', u'pilski'),
|
||||||
|
('pleszewski', u'pleszewski'),
|
||||||
|
('poznanski', u'poznański'),
|
||||||
|
('rawicki', u'rawicki'),
|
||||||
|
('slupecki', u'słupecki'),
|
||||||
|
('szamotulski', u'szamotulski'),
|
||||||
|
('sredzki', u'średzki'),
|
||||||
|
('sremski', u'śremski'),
|
||||||
|
('turecki', u'turecki'),
|
||||||
|
('wagrowiecki', u'wągrowiecki'),
|
||||||
|
('wolsztynski', u'wolsztyński'),
|
||||||
|
('wrzesinski', u'wrzesiński'),
|
||||||
|
('zlotowski', u'złotowski'),
|
||||||
|
('bialogardzki', u'białogardzki'),
|
||||||
|
('choszczenski', u'choszczeński'),
|
||||||
|
('drawski', u'drawski'),
|
||||||
|
('goleniowski', u'goleniowski'),
|
||||||
|
('gryficki', u'gryficki'),
|
||||||
|
('gryfinski', u'gryfiński'),
|
||||||
|
('kamienski', u'kamieński'),
|
||||||
|
('kolobrzeski', u'kołobrzeski'),
|
||||||
|
('koszalinski', u'koszaliński'),
|
||||||
|
('lobeski', u'łobeski'),
|
||||||
|
('mysliborski', u'myśliborski'),
|
||||||
|
('policki', u'policki'),
|
||||||
|
('pyrzycki', u'pyrzycki'),
|
||||||
|
('slawienski', u'sławieński'),
|
||||||
|
('stargardzki', u'stargardzki'),
|
||||||
|
('szczecinecki', u'szczecinecki'),
|
||||||
|
('swidwinski', u'świdwiński'),
|
||||||
|
('walecki', u'wałecki'),
|
||||||
|
)
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
"""
|
||||||
|
Polish voivodeship as in http://en.wikipedia.org/wiki/Poland#Administrative_division
|
||||||
|
"""
|
||||||
|
|
||||||
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
|
VOIVODESHIP_CHOICES = (
|
||||||
|
('lower_silesia', _('Lower Silesia')),
|
||||||
|
('kuyavia-pomerania', _('Kuyavia-Pomerania')),
|
||||||
|
('lublin', _('Lublin')),
|
||||||
|
('lubusz', _('Lubusz')),
|
||||||
|
('lodz', _('Lodz')),
|
||||||
|
('lesser_poland', _('Lesser Poland')),
|
||||||
|
('masovia', _('Masovia')),
|
||||||
|
('opole', _('Opole')),
|
||||||
|
('subcarpatia', _('Subcarpatia')),
|
||||||
|
('podlasie', _('Podlasie')),
|
||||||
|
('pomerania', _('Pomerania')),
|
||||||
|
('silesia', _('Silesia')),
|
||||||
|
('swietokrzyskie', _('Swietokrzyskie')),
|
||||||
|
('warmia-masuria', _('Warmia-Masuria')),
|
||||||
|
('greater_poland', _('Greater Poland')),
|
||||||
|
('west_pomerania', _('West Pomerania')),
|
||||||
|
)
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue