Skip to content

Commit

Permalink
Merge pull request #50 from gabrielx52/halal_updates
Browse files Browse the repository at this point in the history
(#49) Added support for UK, KR, NG, and ID.
  • Loading branch information
gabrielx52 authored Feb 4, 2020
2 parents 18ea368 + d708c19 commit 85c5add
Show file tree
Hide file tree
Showing 10 changed files with 922 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.*.sw?
build
docs/build
ENV/
Empty file.
20 changes: 20 additions & 0 deletions baph/localflavor/generic/data/gb/subdivisions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# encoding: utf8
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _


SUBDIVISIONS = ('REGIONS',)

GB_COUNTRIES = (
('ENG', 'England'),
('SCT', 'Scotland'),
('WLS', 'Wales'),
)

GB_PROVINCES = (
('NIR', 'Northern Ireland'),
)

REGIONS = tuple(sorted(GB_COUNTRIES + GB_PROVINCES,
key=lambda obj: obj[1]))
Empty file.
43 changes: 43 additions & 0 deletions baph/localflavor/generic/data/id_/subdivisions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# encoding: utf8
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _


SUBDIVISIONS = ('PROVINCES',)

PROVINCES = (
('ACE', _('Aceh')),
('BLI', _('Bali')),
('BTN', _('Banten')),
('BKL', _('Bengkulu')),
('GOR', _('Gorontalo')),
('JKT', _('Jakarta')),
('JMB', _('Jambi')),
('JBR', _('Jawa Barat')),
('JTG', _('Jawa Tengah')),
('JTM', _('Jawa Timur')),
('KBR', _('Kalimantan Barat')),
('KSL', _('Kalimantan Selatan')),
('KTG', _('Kalimantan Tengah')),
('KTM', _('Kalimantan Timur')),
('BBL', _('Kepulauan Bangka-Belitung')),
('KRI', _('Kepulauan Riau')),
('LPG', _('Lampung')),
('MLK', _('Maluku')),
('MUT', _('Maluku Utara')),
('NTB', _('Nusa Tenggara Barat')),
('NTT', _('Nusa Tenggara Timur')),
('PPA', _('Papua')),
('PPB', _('Papua Barat')),
('RIU', _('Riau')),
('SLB', _('Sulawesi Barat')),
('SLS', _('Sulawesi Selatan')),
('SLT', _('Sulawesi Tengah')),
('SLR', _('Sulawesi Tenggara')),
('SLU', _('Sulawesi Utara')),
('SMB', _('Sumatera Barat')),
('SMS', _('Sumatera Selatan')),
('SMU', _('Sumatera Utara')),
('DIY', _('Yogyakarta')),
)
Empty file.
27 changes: 27 additions & 0 deletions baph/localflavor/generic/data/kr/subdivisions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# encoding: utf8
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _


SUBDIVISIONS = ('REGIONS',)

REGIONS = (
('11', 'Seoul'),
('26', 'Busan'),
('27', 'Daugu'),
('28', 'Incheon'),
('29', 'Gwangju'),
('30', 'Daejeon'),
('31', 'Ulsan'),
('41', 'Gyeonggi'),
('42', 'Gangwon'),
('43', 'North Chungcheong'),
('44', 'South Chungcheong'),
('45', 'North Jeolla'),
('46', 'South Jeolla'),
('47', 'North Gyeobgsang'),
('48', 'South Gyeongsang'),
('49', 'Jeju'),
('50', 'Sejong'),
)
Empty file.
Loading

0 comments on commit 85c5add

Please sign in to comment.