PageRenderTime 86ms CodeModel.GetById 14ms app.highlight 67ms RepoModel.GetById 1ms app.codeStats 0ms

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