gb_regions.py 3.4 KB

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