Ticket #5523: uklocalflavor.diff

File uklocalflavor.diff, 4.2 KB (added by David Reynolds, 17 years ago)

Diff to add the localflavor for uk

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

     
     1"""
     2Source: http://www.statistics.gov.uk/geography/downloads/31_10_01_County_names_and_codes_12_00.xls
     3"""
     4
     5ENGLAND_COUNTY_CHOICES = (
     6    ("Greater London", "Greater London"),
     7    ("Greater Manchester", "Greater Manchester"),
     8    ("Merseyside", "Merseyside"),
     9    ("South Yorkshire", "South Yorkshire"),
     10    ("Tyne and Wear", "Tyne and Wear"),
     11    ("West Midlands", "West Midlands"),
     12    ("West Yorkshire", "West Yorkshire"),
     13    ("Bedfordshire", "Bedfordshire"),
     14    ("Buckinghamshire", "Buckinghamshire"),
     15    ("Cambridgeshire", "Cambridgeshire"),
     16    ("Cheshire", "Cheshire"),
     17    ("Cornwall and Isles of Scilly", "Cornwall and Isles of Scilly"),
     18    ("Cumbria", "Cumbria"),
     19    ("Derbyshire", "Derbyshire"),
     20    ("Devon", "Devon"),
     21    ("Dorset", "Dorset"),
     22    ("Durham", "Durham"),
     23    ("East Sussex", "East Sussex"),
     24    ("Essex", "Essex"),
     25    ("Gloucestershire", "Gloucestershire"),
     26    ("Hampshire", "Hampshire"),
     27    ("Hertfordshire", "Hertfordshire"),
     28    ("Kent", "Kent"),
     29    ("Lancashire", "Lancashire"),
     30    ("Leicestershire", "Leicestershire"),
     31    ("Lincolnshire", "Lincolnshire"),
     32    ("Norfolk", "Norfolk"),
     33    ("Northamptonshire", "Northamptonshire"),
     34    ("Northumberland", "Northumberland"),
     35    ("North Yorkshire", "North Yorkshire"),
     36    ("Nottinghamshire", "Nottinghamshire"),
     37    ("Oxfordshire", "Oxfordshire"),
     38    ("Shropshire", "Shropshire"),
     39    ("Somerset", "Somerset"),
     40    ("Staffordshire", "Staffordshire"),
     41    ("Suffolk", "Suffolk"),
     42    ("Surrey", "Surrey"),
     43    ("Warwickshire", "Warwickshire"),
     44    ("West Sussex", "West Sussex"),
     45    ("Wiltshire", "Wiltshire"),
     46    ("Worcestershire", "Worcestershire"),
     47)
     48
     49"""
     50Source: http://en.wikipedia.org/wiki/List_of_Irish_counties_by_area
     51"""
     52NORTHERN_IRELAND_COUNTY_CHOICES = (
     53    ("County Antrim", "County Antrim"),
     54    ("County Armagh", "County Armagh"),
     55    ("County Down", "County Down"),
     56    ("County Fermanagh", "County Down"),
     57    ("County Londonderry", "County Londonderry"),
     58    ("County Tyrone", "County Tyrone"),
     59)
     60
     61"""
     62Source: http://en.wikipedia.org/wiki/Preserved_counties_of_Wales
     63"""
     64WALES_COUNTY_CHOICES = (
     65    ("Gwent", "Gwent"),
     66    ("South Glamorgan", "South Glamorgan"),
     67    ("Mid Glamorgan", "Mid Glamorgan"),
     68    ("West Glamorgan", "West Glamorgan"),
     69    ("Dyfed", "Dyfed"),
     70    ("Powys", "Powys"),
     71    ("Gwynedd", "Gwynedd"),
     72    ("Clwyd", "Clwyd"),
     73)
     74"""
     75Source: http://www.geo.ed.ac.uk/home/scotland/county3.html
     76"""
     77SCOTTISH_COUNTY_CHOICES = (
     78    ("Aberdeen City", "Aberdeen City"),
     79    ("Aberdeenshire", "Aberdeenshire"),
     80    ("Angus", "Angus"),
     81    ("Argyll and Bute", "Argyll and Bute"),
     82    ("Clackmannan", "Clackmannan"),
     83    ("Dumbarton and Clydebank", "Dumbarton and Clydebank"),
     84    ("Dumfries and Galloway", "Dumfries and Galloway"),
     85    ("Dundee (City of)", "Dundee (City of)"),
     86    ("East Ayrshire", "East Ayrshire"),
     87    ("East Dunbartonshire", "East Dunbartonshire"),
     88    ("East Lothian", "East Lothian"),
     89    ("East Renfrewshire", "East Renfrewshire"),
     90    ("Edinburgh (City of)", "Edinburgh (City of)"),
     91    ("Falkirk", "Falkirk"),
     92    ("Fife", "Fife"),
     93    ("Glasgow (City of)", "Glasgow (City of)"),
     94    ("Highland", "Highland"),
     95    ("Inverclyde", "Inverclyde"),
     96    ("Midlothian", "Midlothian"),
     97    ("Moray", "Moray"),
     98    ("North Ayrshire", "North Ayrshire"),
     99    ("North Lanarkshire", "North Lanarkshire"),
     100    ("Perthshire and Kinross", "Perthshire and Kinross"),
     101    ("Renfrewshire", "Renfrewshire"),
     102    ("Scottish Borders", "Scottish Borders"),
     103    ("South Ayrshire", "South Ayrshire"),
     104    ("South Lanarkshire", "South Lanarkshire"),
     105    ("Stirling", "Stirling"),
     106    ("West Lothian", "West Lothian"),
     107    ("Orkney", "Orkney"),
     108    ("Shetland", "Shetland"),
     109    ("Western Isles", "Western Isles"),
     110)
     111
     112UK_COUNTY_CHOICES = ENGLAND_COUNTY_CHOICES + NORTHERN_IRELAND_COUNTY_CHOICES + WALES_COUNTY_CHOICES + SCOTTISH_COUNTY_CHOICES
     113 No newline at end of file
Back to Top