Ticket #5523: uk-local-flavor-regions.diff

File uk-local-flavor-regions.diff, 3.8 KB (added by DavidReynolds, 8 years ago)

Putting county back in NI regions

  • django/contrib/localflavor/uk/uk_regions.py

     
     1from django.utils.translation import ugettext as _
     2
     3"""
     4Source: http://www.statistics.gov.uk/geography/downloads/31_10_01_REGION_names_and_codes_12_00.xls
     5"""
     6
     7ENGLAND_REGION_CHOICES = (
     8    ("Bedfordshire", _("Bedfordshire")),
     9    ("Buckinghamshire", _("Buckinghamshire")),
     10    ("Cambridgeshire", ("Cambridgeshire")),
     11    ("Cheshire", _("Cheshire")),
     12    ("Cornwall and Isles of Scilly", _("Cornwall and Isles of Scilly")),
     13    ("Cumbria", _("Cumbria")),
     14    ("Derbyshire", _("Derbyshire")),
     15    ("Devon", _("Devon")),
     16    ("Dorset", _("Dorset")),
     17    ("Durham", _("Durham")),
     18    ("East Sussex", _("East Sussex")),
     19    ("Essex", _("Essex")),
     20    ("Gloucestershire", _("Gloucestershire")),
     21    ("Greater London", _("Greater London")),
     22    ("Greater Manchester", _("Greater Manchester")),
     23    ("Hampshire", _("Hampshire")),
     24    ("Hertfordshire", _("Hertfordshire")),
     25    ("Kent", _("Kent")),
     26    ("Lancashire", _("Lancashire")),
     27    ("Leicestershire", _("Leicestershire")),
     28    ("Lincolnshire", _("Lincolnshire")),
     29    ("Merseyside", _("Merseyside")),
     30    ("Norfolk", _("Norfolk")),
     31    ("North Yorkshire", _("North Yorkshire")),
     32    ("Northamptonshire", _("Northamptonshire")),
     33    ("Northumberland", _("Northumberland")),
     34    ("Nottinghamshire", _("Nottinghamshire")),
     35    ("Oxfordshire", _("Oxfordshire")),
     36    ("Shropshire", _("Shropshire")),
     37    ("Somerset", _("Somerset")),
     38    ("South Yorkshire", _("South Yorkshire")),
     39    ("Staffordshire", _("Staffordshire")),
     40    ("Suffolk", _("Suffolk")),
     41    ("Surrey", _("Surrey")),
     42    ("Tyne and Wear", _("Tyne and Wear")),
     43    ("Warwickshire", _("Warwickshire")),
     44    ("West Midlands", _("West Midlands")),
     45    ("West Sussex", _("West Sussex")),
     46    ("West Yorkshire", _("West Yorkshire")),
     47    ("Wiltshire", _("Wiltshire")),
     48    ("Worcestershire", _("Worcestershire")),
     49)
     50
     51"""
     52Source: http://en.wikipedia.org/wiki/List_of_Irish_counties_by_area
     53"""
     54NORTHERN_IRELAND_REGION_CHOICES = (
     55    ("County Antrim", _("County Antrim")),
     56    ("County Armagh", _("County Armagh")),
     57    ("County Down", _("County Down")),
     58    ("County Fermanagh", _("County Down")),
     59    ("County Londonderry", _("County Londonderry")),
     60    ("County Tyrone", _("County Tyrone")),
     61)
     62
     63
     64"""
     65Source: http://en.wikipedia.org/wiki/Preserved_counties_of_Wales
     66"""
     67WALES_REGION_CHOICES = (
     68    ("Clwyd", _("Clwyd")),
     69    ("Dyfed", _("Dyfed")),
     70    ("Gwent", _("Gwent")),
     71    ("Gwynedd", _("Gwynedd")),
     72    ("Mid Glamorgan", _("Mid Glamorgan")),
     73    ("Powys", _("Powys")),
     74    ("South Glamorgan", _("South Glamorgan")),
     75    ("West Glamorgan", _("West Glamorgan")),
     76)
     77
     78"""
     79Source: http://en.wikipedia.org/wiki/Regions_and_districts_of_Scotland
     80"""
     81SCOTTISH_REGION_CHOICES = (
     82    ("Borders", _("Borders")),
     83    ("Central Scotland", _("Central Scotland")),
     84    ("Dumfries and Galloway", _("Dumfries and Galloway")),
     85    ("Fife", _("Fife")),
     86    ("Grampian", _("Grampian")),
     87    ("Highland", _("Highland")),
     88    ("Lothian", _("Lothian")),
     89    ("Orkney Islands", _("Orkney Islands")),
     90    ("Shetland Islands", _("Shetland Islands")),
     91    ("Strathclyde", _("Strathclyde")),
     92    ("Tayside", _("Tayside")),
     93    ("Western Isles", _("Western Isles")),
     94)
     95
     96UK_NATIONS_CHOICES = (
     97    ("England", _("England")),
     98    ("Northern Ireland", _("Northern Ireland")),
     99    ("Scotland", _("Scotland")),
     100    ("Wales", _("Wales")),
     101)
     102
     103UK_REGION_CHOICES = ENGLAND_REGION_CHOICES + NORTHERN_IRELAND_REGION_CHOICES + WALES_REGION_CHOICES + SCOTTISH_REGION_CHOICES
     104 No newline at end of file
Back to Top