/modules/mod_l10n/support/l10n_iso2country.erl

https://code.google.com/p/zotonic/ · Erlang · 254 lines · 247 code · 4 blank · 3 comment · 0 complexity · 528d63115a2c98a92c83d0c284b68e3c MD5 · raw file

  1. %% @author Marc Worrell <marc@worrell.nl>
  2. %% @doc Mapping of iso code to country name in english
  3. %% @copyright 2011 Marc Worrell
  4. -module(l10n_iso2country).
  5. -author("Marc Worrell <marc@worrell.nl>").
  6. -export([
  7. iso2country/0
  8. ]).
  9. iso2country() -> [
  10. {<<"af">>, <<"Afghanistan">>},
  11. {<<"al">>, <<"Albania">>},
  12. {<<"dz">>, <<"Algeria">>},
  13. {<<"as">>, <<"American Samoa">>},
  14. {<<"ad">>, <<"Andorra">>},
  15. {<<"ao">>, <<"Angola">>},
  16. {<<"ai">>, <<"Anguilla">>},
  17. {<<"aq">>, <<"Antarctica">>},
  18. {<<"ag">>, <<"Antigua and Barbuda">>},
  19. {<<"ar">>, <<"Argentina">>},
  20. {<<"am">>, <<"Armenia">>},
  21. {<<"aw">>, <<"Aruba">>},
  22. {<<"au">>, <<"Australia">>},
  23. {<<"at">>, <<"Austria">>},
  24. {<<"az">>, <<"Azerbaijan">>},
  25. {<<"bs">>, <<"Bahamas">>},
  26. {<<"bh">>, <<"Bahrain">>},
  27. {<<"bd">>, <<"Bangladesh">>},
  28. {<<"bb">>, <<"Barbados">>},
  29. {<<"by">>, <<"Belarus">>},
  30. {<<"be">>, <<"Belgium">>},
  31. {<<"bz">>, <<"Belize">>},
  32. {<<"bj">>, <<"Benin">>},
  33. {<<"bm">>, <<"Bermuda">>},
  34. {<<"bt">>, <<"Bhutan">>},
  35. {<<"bo">>, <<"Bolivia">>},
  36. {<<"ba">>, <<"Bosnia-Herzegovina">>},
  37. {<<"bw">>, <<"Botswana">>},
  38. {<<"bv">>, <<"Bouvet Island">>},
  39. {<<"br">>, <<"Brazil">>},
  40. {<<"io">>, <<"British Indian Ocean Territory">>},
  41. {<<"bn">>, <<"Brunei Darussalam">>},
  42. {<<"bg">>, <<"Bulgaria">>},
  43. {<<"bf">>, <<"Burkina Faso">>},
  44. {<<"bi">>, <<"Burundi">>},
  45. {<<"kh">>, <<"Cambodia">>},
  46. {<<"cm">>, <<"Cameroon">>},
  47. {<<"ca">>, <<"Canada">>},
  48. {<<"cv">>, <<"Cape Verde">>},
  49. {<<"ky">>, <<"Cayman Islands">>},
  50. {<<"cf">>, <<"Central African Republic">>},
  51. {<<"td">>, <<"Chad">>},
  52. {<<"cl">>, <<"Chile">>},
  53. {<<"cn">>, <<"China">>},
  54. {<<"cx">>, <<"Christmas Island">>},
  55. {<<"cc">>, <<"Cocos (Keeling) Islands">>},
  56. {<<"co">>, <<"Colombia">>},
  57. {<<"km">>, <<"Comoros">>},
  58. {<<"cg">>, <<"Congo">>},
  59. {<<"cd">>, <<"Congo, The Democratic Republic of the">>},
  60. {<<"ck">>, <<"Cook Islands">>},
  61. {<<"cr">>, <<"Costa Rica">>},
  62. {<<"hr">>, <<"Croatia">>},
  63. {<<"cu">>, <<"Cuba">>},
  64. {<<"cy">>, <<"Cyprus">>},
  65. {<<"cz">>, <<"Czech Republic">>},
  66. {<<"dk">>, <<"Denmark">>},
  67. {<<"dj">>, <<"Djibouti">>},
  68. {<<"dm">>, <<"Dominica">>},
  69. {<<"do">>, <<"Dominican Republic">>},
  70. {<<"tp">>, <<"East Timor">>},
  71. {<<"ec">>, <<"Ecuador">>},
  72. {<<"eg">>, <<"Egypt">>},
  73. {<<"sv">>, <<"El Salvador">>},
  74. {<<"gq">>, <<"Equatorial Guinea">>},
  75. {<<"er">>, <<"Eritrea">>},
  76. {<<"ee">>, <<"Estonia">>},
  77. {<<"et">>, <<"Ethiopia">>},
  78. {<<"fk">>, <<"Falkland Islands">>},
  79. {<<"fo">>, <<"Faroe Islands">>},
  80. {<<"fj">>, <<"Fiji">>},
  81. {<<"fi">>, <<"Finland">>},
  82. {<<"fr">>, <<"France">>},
  83. {<<"gf">>, <<"French Guyana">>},
  84. {<<"ga">>, <<"Gabon">>},
  85. {<<"gm">>, <<"Gambia">>},
  86. {<<"gz">>, <<"Gaza Strip Administered by Israel">>},
  87. {<<"ge">>, <<"Georgia">>},
  88. {<<"de">>, <<"Germany">>},
  89. {<<"gh">>, <<"Ghana">>},
  90. {<<"gi">>, <<"Gibraltar">>},
  91. {<<"gb">>, <<"Great Britain">>},
  92. {<<"gr">>, <<"Greece">>},
  93. {<<"gl">>, <<"Greenland">>},
  94. {<<"gd">>, <<"Grenada">>},
  95. {<<"gp">>, <<"Guadeloupe (French)">>},
  96. {<<"gu">>, <<"Guam (USA)">>},
  97. {<<"gt">>, <<"Guatemala">>},
  98. {<<"gn">>, <<"Guinea">>},
  99. {<<"gw">>, <<"Guinea Bissau">>},
  100. {<<"gy">>, <<"Guyana">>},
  101. {<<"ht">>, <<"Haiti">>},
  102. {<<"hm">>, <<"Heard and McDonald Islands">>},
  103. {<<"va">>, <<"Holy See (Vatican City State)">>},
  104. {<<"hn">>, <<"Honduras">>},
  105. {<<"hk">>, <<"Hong Kong">>},
  106. {<<"hu">>, <<"Hungary">>},
  107. {<<"is">>, <<"Iceland">>},
  108. {<<"in">>, <<"India">>},
  109. {<<"id">>, <<"Indonesia">>},
  110. {<<"ir">>, <<"Iran">>},
  111. {<<"iq">>, <<"Iraq">>},
  112. {<<"ie">>, <<"Ireland">>},
  113. {<<"il">>, <<"Israel">>},
  114. {<<"it">>, <<"Italy">>},
  115. {<<"ci">>, <<"Ivory Coast (Cote D'Ivoire)">>},
  116. {<<"jm">>, <<"Jamaica">>},
  117. {<<"jp">>, <<"Japan">>},
  118. {<<"jo">>, <<"Jordan">>},
  119. {<<"kz">>, <<"Kazakhstan">>},
  120. {<<"ke">>, <<"Kenya">>},
  121. {<<"ki">>, <<"Kiribati">>},
  122. {<<"kw">>, <<"Kuwait">>},
  123. {<<"kg">>, <<"Kyrgyz Republic (Kyrgyzstan)">>},
  124. {<<"la">>, <<"Laos">>},
  125. {<<"lv">>, <<"Latvia">>},
  126. {<<"lb">>, <<"Lebanon">>},
  127. {<<"ls">>, <<"Lesotho">>},
  128. {<<"lr">>, <<"Liberia">>},
  129. {<<"ly">>, <<"Libya">>},
  130. {<<"li">>, <<"Liechtenstein">>},
  131. {<<"lt">>, <<"Lithuania">>},
  132. {<<"lu">>, <<"Luxembourg">>},
  133. {<<"mo">>, <<"Macau">>},
  134. {<<"mk">>, <<"Macedonia">>},
  135. {<<"mg">>, <<"Madagascar">>},
  136. {<<"mw">>, <<"Malawi">>},
  137. {<<"my">>, <<"Malaysia">>},
  138. {<<"mv">>, <<"Maldives">>},
  139. {<<"ml">>, <<"Mali">>},
  140. {<<"mt">>, <<"Malta">>},
  141. {<<"mh">>, <<"Marshall Islands">>},
  142. {<<"mq">>, <<"Martinique (French)">>},
  143. {<<"mr">>, <<"Mauritania">>},
  144. {<<"mu">>, <<"Mauritius">>},
  145. {<<"yt">>, <<"Mayotte">>},
  146. {<<"mx">>, <<"Mexico">>},
  147. {<<"fm">>, <<"Micronesia">>},
  148. {<<"md">>, <<"Moldavia">>},
  149. {<<"mc">>, <<"Monaco">>},
  150. {<<"mn">>, <<"Mongolia">>},
  151. {<<"ms">>, <<"Montserrat">>},
  152. {<<"ma">>, <<"Morocco">>},
  153. {<<"mz">>, <<"Mozambique">>},
  154. {<<"mm">>, <<"Myanmar">>},
  155. {<<"na">>, <<"Namibia">>},
  156. {<<"nr">>, <<"Nauru">>},
  157. {<<"np">>, <<"Nepal">>},
  158. {<<"nl">>, <<"Netherlands">>},
  159. {<<"an">>, <<"Netherlands Antilles">>},
  160. {<<"nc">>, <<"New Caledonia (French)">>},
  161. {<<"nz">>, <<"New Zealand">>},
  162. {<<"ni">>, <<"Nicaragua">>},
  163. {<<"ne">>, <<"Niger">>},
  164. {<<"ng">>, <<"Nigeria">>},
  165. {<<"nu">>, <<"Niue">>},
  166. {<<"nf">>, <<"Norfolk Island">>},
  167. {<<"kp">>, <<"North Korea">>},
  168. {<<"mp">>, <<"Northern Mariana Islands">>},
  169. {<<"no">>, <<"Norway">>},
  170. {<<"om">>, <<"Oman">>},
  171. {<<"pk">>, <<"Pakistan">>},
  172. {<<"pw">>, <<"Palau">>},
  173. {<<"pa">>, <<"Panama">>},
  174. {<<"pg">>, <<"Papua New Guinea">>},
  175. {<<"py">>, <<"Paraguay">>},
  176. {<<"pe">>, <<"Peru">>},
  177. {<<"ph">>, <<"Philippines">>},
  178. {<<"pn">>, <<"Pitcairn Island">>},
  179. {<<"pl">>, <<"Poland">>},
  180. {<<"pf">>, <<"Polynesia (French)">>},
  181. {<<"pt">>, <<"Portugal">>},
  182. {<<"pr">>, <<"Puerto Rico">>},
  183. {<<"qa">>, <<"Qatar">>},
  184. {<<"re">>, <<"Reunion (French)">>},
  185. {<<"ro">>, <<"Romania">>},
  186. {<<"ru">>, <<"Russian Federation">>},
  187. {<<"rw">>, <<"Rwanda">>},
  188. {<<"gs">>, <<"S. Georgia and S. Sandwich Isls.">>},
  189. {<<"sh">>, <<"Saint Helena">>},
  190. {<<"kn">>, <<"Saint Kitts and Nevis Anguilla">>},
  191. {<<"lc">>, <<"Saint Lucia">>},
  192. {<<"pm">>, <<"Saint Pierre and Miquelon">>},
  193. {<<"st">>, <<"Saint Tome (Sao Tome) and Principe">>},
  194. {<<"vc">>, <<"Saint Vincent and Grenadines">>},
  195. {<<"ws">>, <<"Samoa">>},
  196. {<<"sm">>, <<"San Marino">>},
  197. {<<"sa">>, <<"Saudi Arabia">>},
  198. {<<"sn">>, <<"Senegal">>},
  199. {<<"sc">>, <<"Seychelles">>},
  200. {<<"sl">>, <<"Sierra Leone">>},
  201. {<<"sg">>, <<"Singapore">>},
  202. {<<"sk">>, <<"Slovak Republic">>},
  203. {<<"si">>, <<"Slovenia">>},
  204. {<<"sb">>, <<"Solomon Islands">>},
  205. {<<"so">>, <<"Somalia">>},
  206. {<<"za">>, <<"South Africa">>},
  207. {<<"kr">>, <<"South Korea">>},
  208. {<<"es">>, <<"Spain">>},
  209. {<<"lk">>, <<"Sri Lanka">>},
  210. {<<"sd">>, <<"Sudan">>},
  211. {<<"sr">>, <<"Suriname">>},
  212. {<<"sj">>, <<"Svalbard and Jan Mayen Islands">>},
  213. {<<"sz">>, <<"Swaziland">>},
  214. {<<"se">>, <<"Sweden">>},
  215. {<<"ch">>, <<"Switzerland">>},
  216. {<<"sy">>, <<"Syria">>},
  217. {<<"tj">>, <<"Tadjikistan">>},
  218. {<<"tw">>, <<"Taiwan">>},
  219. {<<"tz">>, <<"Tanzania">>},
  220. {<<"th">>, <<"Thailand">>},
  221. {<<"tg">>, <<"Togo">>},
  222. {<<"tk">>, <<"Tokelau">>},
  223. {<<"to">>, <<"Tonga">>},
  224. {<<"tt">>, <<"Trinidad and Tobago">>},
  225. {<<"tn">>, <<"Tunisia">>},
  226. {<<"tr">>, <<"Turkey">>},
  227. {<<"tm">>, <<"Turkmenistan">>},
  228. {<<"tc">>, <<"Turks and Caicos Islands">>},
  229. {<<"tv">>, <<"Tuvalu">>},
  230. {<<"ug">>, <<"Uganda">>},
  231. {<<"ua">>, <<"Ukraine">>},
  232. {<<"ae">>, <<"United Arab Emirates">>},
  233. {<<"uk">>, <<"United Kingdom">>},
  234. {<<"us">>, <<"United States">>},
  235. {<<"uy">>, <<"Uruguay">>},
  236. {<<"uz">>, <<"Uzbekistan">>},
  237. {<<"vu">>, <<"Vanuatu">>},
  238. {<<"ve">>, <<"Venezuela">>},
  239. {<<"vn">>, <<"Vietnam">>},
  240. {<<"vg">>, <<"Virgin Islands (British)">>},
  241. {<<"vi">>, <<"Virgin Islands (USA)">>},
  242. {<<"wf">>, <<"Wallis and Futuna Islands">>},
  243. {<<"we">>, <<"West Bank Administered by Israel">>},
  244. {<<"eh">>, <<"Western Sahara">>},
  245. {<<"ye">>, <<"Yemen">>},
  246. {<<"yu">>, <<"Serbia and Montenegro">>},
  247. {<<"zr">>, <<"Zaire">>},
  248. {<<"zm">>, <<"Zambia">>},
  249. {<<"zw">>, <<"Zimbabwe">>}
  250. ].