Module:Flags/MasterData

This is an old revision of this page, as edited by QuimGil (talk | contribs) at 02:41, 25 June 2013. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

-- You don't want to touch this.  :)
local m = {}
m.fullName = {}
m.twoLetter = {}
m.threeLetter = {}
m.variant = {}

-- Structure of the table:
-- 1. Full names
-- 1.1 International organizations
-- 1.2 All territories ISO 3166-1
-- 1.3 All ISO 3166-1 variants and ISO 3166-2 subdivisions
-- 1.4 Other territories not fitting above
-- 1.5 Other flags supported and not fitting above
-- 2. All 2 letter codes ISO 3166-1 alpha-2
-- 3. All 3 letter codes ISO 3166-1 alpha-3

-- 1. FULL NAMES
-- 1.1 INTERNATIONAL ORGANIZATIONS
m.fullName["African Union"] = ""
m.fullName["NATO"] = ""

-- 1.3 ALL TERRITORIES ISO 3166-1
-- For the list of territories see http://en.wikipedia.org/wiki/ISO_3166-1
m.fullName["Afghanistan"] = ""
m.fullName["Åland"] = ""
m.fullName["Albania"] = ""
m.fullName["Algeria"] = ""
m.fullName["American Samoa"] = ""
m.fullName["Andorra"] = ""
m.fullName["Angola"] = ""
m.fullName["Anguilla"] = ""
m.fullName["Antarctica"] = ""
m.fullName["Antigua and Barbuda"] = ""
m.fullName["Argentina"] = ""
m.fullName["Armenia"] = ""
m.fullName["Aruba"] = ""
m.fullName["Australia"] = ""
m.fullName["Austria"] = ""
m.fullName["Azerbaijan"] = ""
m.fullName["the Bahamas"] = ""
m.fullName["Bahrain"] = ""
m.fullName["Bangladesh"] = ""
m.fullName["Barbados"] = ""
m.fullName["Belarus"] = ""
m.fullName["Belgium"] = ""
m.fullName["Belize"] = ""
m.fullName["Benin"] = ""
m.fullName["Bermuda"] = ""
m.fullName["Bhutan"] = ""
m.fullName["Bolivia"] = ""
m.fullName["Bonaire"] = ""
m.fullName["Bosnia and Herzegovina"] = ""
m.fullName["Botswana"] = ""
m.fullName["Brazil"] = ""
m.fullName["the British Indian Ocean Territory"] = "British Indian Ocean Territory"
m.fullName["Brunei"] = ""
m.fullName["Bulgaria"] = ""
m.fullName["Burkina Faso"] = ""
m.fullName["Burundi"] = ""
m.fullName["Cambodia"] = ""
m.fullName["Cameroon"] = ""
m.fullName["Canada"] = ""
m.fullName["Cape Verde"] = ""
m.fullName["the Cayman Islands"] = "Cayman Islands"
m.fullName["the Central African Republic"] = "Central African Republic"
m.fullName["Chad"] = ""
m.fullName["Chile"] = ""
m.fullName["China"] = ""
m.fullName["Christmas Island"] = ""
m.fullName["the Cocos (Keeling) Islands"] = "Cocos (Keeling) Islands"
m.fullName["Colombia"] = ""
m.fullName["Comoros"] = ""
m.fullName["the Republic of the Congo"] = "Republic of the Congo"
m.fullName["the Democratic Republic of the Congo"] = "Democratic Republic of the Congo"
m.fullName["Cook Islands"] = ""
m.fullName["Costa Rica"] = ""
m.fullName["Côte d'Ivoire"] = ""
m.fullName["Croatia"] = ""
m.fullName["Cuba"] = ""
m.fullName["Curaçao"] = ""
m.fullName["Cyprus"] = ""
m.fullName["the Czech Republic"] = "Czech Republic"
m.fullName["Denmark"] = ""
m.fullName["Djibouti"] = ""
m.fullName["Dominica"] = ""
m.fullName["Dominican Republic"] = ""
m.fullName["Ecuador"] = ""
m.fullName["Egypt"] = ""
m.fullName["El Salvador"] = ""
m.fullName["Equatorial Guinea"] = ""
m.fullName["Eritrea"] = ""
m.fullName["Estonia"] = ""
m.fullName["Ethiopia"] = ""
m.fullName["the Falkland Islands"] = "Falkland Islands"
m.fullName["the Faroe Islands"] = "Faroe Islands"
m.fullName["Fiji"] = ""
m.fullName["Finland"] = ""
m.fullName["France"] = ""
m.fullName["French Guiana"] = ""
m.fullName["French Polynesia"] = ""
m.fullName["the French Southern and Antarctic Lands"] = "French Southern and Antarctic Lands"
m.fullName["Gabon"] = ""
m.fullName["Gambia"] = ""
m.fullName["Georgia"] = ""
m.fullName["Germany"] = ""
m.fullName["Ghana"] = ""
m.fullName["Gibraltar"] = ""
m.fullName["Greece"] = ""
m.fullName["Greenland"] = ""
m.fullName["Grenada"] = ""
m.fullName["Guadeloupe (local)"] = ""
m.fullName["Guam"] = ""
m.fullName["Guatemala"] = ""
m.fullName["Guernsey"] = ""
m.fullName["Guinea"] = ""
m.fullName["Guinea-Bissau"] = ""
m.fullName["Guyana"] = ""
m.fullName["Haiti"] = ""
m.fullName["the Vatican City"] = "Vatican City"
m.fullName["Honduras"] = ""
m.fullName["Hong Kong"] = ""
m.fullName["Hungary"] = ""
m.fullName["Iceland"] = ""
m.fullName["India"] = ""
m.fullName["Indonesia"] = ""
m.fullName["Iran"] = ""
m.fullName["Iraq"] = ""
m.fullName["Ireland"] = ""
m.fullName["the Isle of Man"] = "Isle of Man"
m.fullName["Israel"] = ""
m.fullName["Italy"] = ""
m.fullName["Jamaica"] = ""
m.fullName["Japan"] = ""
m.fullName["Jersey"] = ""
m.fullName["Jordan"] = ""
m.fullName["Kazakhstan"] = ""
m.fullName["Kenya"] = ""
m.fullName["Kiribati"] = ""
m.fullName["North Korea"] = ""
m.fullName["South Korea"] = ""
m.fullName["Kuwait"] = ""
m.fullName["Kyrgyzstan"] = ""
m.fullName["Laos"] = ""
m.fullName["Latvia"] = ""
m.fullName["Lebanon"] = ""
m.fullName["Lesotho"] = ""
m.fullName["Liberia"] = ""
m.fullName["Libya"] = ""
m.fullName["Liechtenstein"] = ""
m.fullName["Lithuania"] = ""
m.fullName["Luxembourg"] = ""
m.fullName["Macau"] = ""
m.fullName["Macedonia"] = ""
m.fullName["Madagascar"] = ""
m.fullName["Malawi"] = ""
m.fullName["Malaysia"] = ""
m.fullName["Maldives"] = ""
m.fullName["Mali"] = ""
m.fullName["Malta"] = ""
m.fullName["the Marshall Islands"] = "Marshall Islands"
m.fullName["Martinique"] = ""
m.fullName["Mauritania"] = ""
m.fullName["Mauritius"] = ""
m.fullName["Mayotte (local)"] = ""
m.fullName["Mexico"] = ""
m.fullName["the Federated States of Micronesia"] = "Micronesia"
m.fullName["Moldova"] = ""
m.fullName["Monaco"] = ""
m.fullName["Mongolia"] = ""
m.fullName["Montenegro"] = ""
m.fullName["Montserrat"] = ""
m.fullName["Morocco"] = ""
m.fullName["Mozambique"] = ""
m.fullName["Myanmar"] = ""
m.fullName["Namibia"] = ""
m.fullName["Nauru"] = ""
m.fullName["Nepal"] = ""
m.fullName["Netherlands"] = ""
m.fullName["New Caledonia"] = ""
m.fullName["New Zealand"] = ""
m.fullName["Nicaragua"] = ""
m.fullName["Niger"] = ""
m.fullName["Nigeria"] = ""
m.fullName["Niue"] = ""
m.fullName["Norfolk Island"] = ""
m.fullName["the Northern Mariana Islands"] = "Northern Mariana Islands"
m.fullName["Norway"] = ""
m.fullName["Oman"] = ""
m.fullName["Pakistan"] = ""
m.fullName["Palau"] = ""
m.fullName["Palestine"] = ""
m.fullName["Panama"] = ""
m.fullName["Papua New Guinea"] = ""
m.fullName["Paraguay"] = ""
m.fullName["Peru"] = ""
m.fullName["Philippines"] = ""
m.fullName["the Pitcairn Islands"] = "Pitcairn Islands"
m.fullName["Poland"] = ""
m.fullName["Portugal"] = ""
m.fullName["Puerto Rico"] = ""
m.fullName["Qatar"] = ""
m.fullName["Réunion"] = ""
m.fullName["Romania"] = ""
m.fullName["Russian Federation"] = ""
m.fullName["Rwanda"] = ""
m.fullName["Saint Barthelemy (local)"] = ""
m.fullName["Saint Kitts and Nevis"] = ""
m.fullName["Saint Lucia"] = ""
m.fullName["Saint-Martin (local)"] = ""
m.fullName["Saint-Pierre and Miquelon"] = ""
m.fullName["Saint Vincent and the Grenadines"] = ""
m.fullName["Samoa"] = ""
m.fullName["San Marino"] = ""
m.fullName["Sao Tome and Principe"] = ""
m.fullName["Saudi Arabia"] = ""
m.fullName["Senegal"] = ""
m.fullName["Serbia"] = ""
m.fullName["Seychelles"] = ""
m.fullName["Sierra Leone"] = ""
m.fullName["Singapore"] = ""
m.fullName["Sint Maarten"] = ""
m.fullName["Slovakia"] = "" 
m.fullName["Slovenia"] = ""
m.fullName["the Solomon Islands"] = ""
m.fullName["Somalia"] = ""
m.fullName["South Africa"] = ""
m.fullName["South Georgia and the South Sandwich Islands"] = ""
m.fullName["South Sudan"] = ""
m.fullName["Spain"] = ""
m.fullName["Sri Lanka"] = ""
m.fullName["Sudan"] = ""
m.fullName["Suriname"] = ""
m.fullName["Swaziland"] = ""
m.fullName["Sweden"] = ""
m.fullName["Switzerland"] = ""
m.fullName["Syria"] = ""
m.fullName["Taiwan"] = ""
m.fullName["Tajikistan"] = ""
m.fullName["Tanzania"] = ""
m.fullName["Thailand"] = ""
m.fullName["East Timor"] = ""
m.fullName["Togo"] = ""
m.fullName["Tokelau"] = ""
m.fullName["Tonga"] = ""
m.fullName["Trinidad and Tobago"] = ""
m.fullName["Tunisia"] = ""
m.fullName["Turkey"] = ""
m.fullName["Turkmenistan"] = ""
m.fullName["the Turks and Caicos Islands"] = "Turks and Caicos Islands"
m.fullName["Tuvalu"] = ""
m.fullName["Uganda"] = ""
m.fullName["Ukraine"] = ""
m.fullName["United Arab Emirates"] = ""
m.fullName["United Kingdom"] = ""
m.fullName["United States"] = ""
m.fullName["Uruguay"] = ""
m.fullName["Uzbekistan"] = ""
m.fullName["Vanuatu"] = ""
m.fullName["Venezuela"] = ""
m.fullName["Vietnam"] = ""
m.fullName["the British Virgin Islands"] = "British Virgin Islands"
m.fullName["the United States Virgin Islands"] = "United States Virgin Islands"
m.fullName["Wallis and Futuna"] = ""
m.fullName["Western Sahara"] = ""
m.fullName["Yemen"] = ""
m.fullName["Zambia"] = ""
m.fullName["Zimbabwe"] = ""

-- 1.3 All ISO 3166-1 VARIANTS AND ISO 3166-2 SUBDIVISIONS
-- For the subdivisions see http://en.wikipedia.org/wiki/ISO_3166-2
-- For the subdivisions and variants see http://en.wikipedia.org/wiki/Category:Country_data_templates

-- ANDORRA - http://en.wikipedia.org/wiki/Template:Country_data_Andorra
m.variant["Andorra|1806"] = "Flag of Andorra 1806"

-- AFGHANISTAN - http://en.wikipedia.org/wiki/Template:Country_data_Afghanistan
m.variant["Afghanistan|1901"] = "Flag of Afghanistan (1901–1919)"
m.variant["Afghanistan|1919"] = "Flag of Afghanistan (1919–1921)"

-- ARGENTINA - http://en.wikipedia.org/wiki/Template:Country_data_Argentina subdivisions pending, filenames are in Spanish

-- AUSTRALIA - http://en.wikipedia.org/wiki/Template:Country_data_Australia
m.fullName["the Australian Capital Territory"] = "Australian Capital Territory"
m.fullName["New South Wales"] = ""
m.fullName["the Northern Territory"] = "Northern Territory"
m.fullName["Queensland"] = ""
m.fullName["South Australia"] = ""
m.fullName["Tasmania"] = ""
m.fullName["Victoria (Australia)"] = "Victoria (Australia)"
m.fullName["Western Australia"] = ""

-- BELGIUM - http://en.wikipedia.org/wiki/Template:Country_data_Belgium
-- m.fullName["Belgium brussels"] = "Brussels-Capital Region" http://en.wikipedia.org/wiki/File:Flag_Belgium_brussels.svg
m.fullName["Flanders"] = "Flemish Region"
m.fullName["Antwerp"] = ""
-- m.fullName[""] = "Limburg (Belgium)" http://commons.wikimedia.org/wiki/File:Vlaams-limburg.png
-- m.fullName[""] = "Flemish Brabant" http://commons.wikimedia.org/wiki/File:Flemish-Brabant.svg
m.fullName["Oost-Vlaanderen"] = "East Flanders"
m.fullName["West Flanders"] = ""
m.fullName["Wallonia"] = ""
m.fullName["Hainaut"] = ""
-- m.fullName[""] = "Walloon Brabant" http://en.wikipedia.org/wiki/File:Drapeau_Province_BE_Brabant_Wallon.svg
-- m.fullName["Namur"] = "" http://commons.wikimedia.org/wiki/File:Flag_province_namur.svg
m.fullName["the Province of Liège"] = "Liège"
m.fullName["the Province of Luxembourg"] = "Luxembourg (Belgium)"

-- BOLIVIA
m.fullName["beni"] = "Beni"
m.fullName["chuquisaca"] = "Chuquisaca"
m.fullName["cochabamba"] = "Cochabamba"
m.fullName["La Paz"] = ""
m.fullName["Oruro"] = ""
m.fullName["pando"] = "Pando"
m.fullName["potosi"] = "Potosí"
m.fullName["santacruz"] = "Santa Cruz"
m.fullName["Tarija"] = "Tarija"

-- BRAZIL http://en.wikipedia.org/wiki/Template:Country_data_Brazil PENDING, names of flags in Portuguese

-- CANADA
m.fullName["Alberta"] = ""
m.fullName["British Columbia"] = ""
m.fullName["Manitoba"] = ""
m.fullName["New Brunswick"] = ""
m.fullName["Newfoundland and Labrador"] = ""
m.fullName["the Northwest Territories"] = "Northwest Territories"
m.fullName["Nova Scotia"] = ""
m.fullName["Nunavut"] = ""
m.fullName["Ontario"] = ""
m.fullName["Prince Edward Island"] = ""
m.fullName["Quebec"] = ""
m.fullName["Saskatchewan"] = ""
m.fullName["Yukon"] = ""

-- ITALY
m.fullName["Abruzzo"] = ""
m.fullName["Basilicata"] = ""
m.fullName["Calabria"] = ""
m.fullName["Campania"] = ""
m.fullName["Emilia-Romagna"] = ""
m.fullName["Placeholder"] = "Friuli-Venezia Giulia" -- Flag yet to be uploaded on Commons
m.fullName["Lazio"] = ""
m.fullName["Liguria"] = ""
m.fullName["Lombardy"] = ""
m.fullName["Marche"] = ""
m.fullName["Molise"] = ""
m.fullName["Piedmont"] = ""
m.fullName["Apulia"] = ""
m.fullName["Sardinia"] = ""
m.fullName["Sicily"] = ""
m.fullName["Tuscany"] = ""
m.fullName["Trentino-South Tyrol"] = ""
m.fullName["Umbria"] = ""
m.fullName["Valle d'Aosta"] = "Aosta Valley"
m.fullName["Veneto"] = ""

-- MEXICO
m.fullName["Mexican Federal District"] = ""
m.fullName["Aguascalientes"] = ""
m.fullName["Baja California"] = ""
m.fullName["Baja California Sur"] = ""
m.fullName["Campeche"] = ""
m.fullName["Chiapas"] = ""
m.fullName["Chihuahua"] = ""
m.fullName["Coahuila"] = ""
m.fullName["Colima"] = ""
m.fullName["Durango"] = ""
m.fullName["Guanajuato"] = ""
m.fullName["Guerrero"] = ""
m.fullName["Hidalgo"] = ""
m.fullName["Jalisco"] = ""
m.fullName["Mexico (state)"] = ""
m.fullName["Michoacan"] = ""
m.fullName["Morelos"] = ""
m.fullName["Nayarit"] = ""
m.fullName["Nuevo Leon"] = ""
m.fullName["Oaxaca"] = ""
m.fullName["Puebla"] = ""
m.fullName["Queretaro"] = ""
m.fullName["Quintana Roo"] = ""
m.fullName["San Luis Potosi"] = ""
m.fullName["Sinaloa"] = ""
m.fullName["Sonora"] = ""
m.fullName["Tabasco"] = ""
m.fullName["Tamaulipas"] = ""
m.fullName["Tlaxcala"] = ""
m.fullName["Veracruz"] = ""
m.fullName["Yucatan"] = ""
m.fullName["Zacatecas"] = ""

-- SPAIN
m.fullName["Andalucía"] = "Andalusia"
m.fullName["Aragon"] = ""
m.fullName["Asturias"] = ""
m.fullName["the Balearic Islands"] = "Balearic Islands"
m.fullName["the Basque Country"] = "Basque Country"
m.fullName["the Canary Islands"] = "Canary Islands"
m.fullName["Cantabria"] = ""
m.fullName["Castile-La Mancha"] = "" -- http://commons.wikimedia.org/wiki/File:Bandera_Castilla-La_Mancha.svg
m.fullName["Castile and León"] = ""
m.fullName["Catalonia"] = ""
m.fullName["the Community of Madrid"] = "Community of Madrid"
m.fullName["Extremadura with COA"] = "Extremadura"
m.fullName["Galicia"] = ""
m.fullName["La Rioja (with coat of arms)"] = "La Rioja (Spain)"
m.fullName["the Region of Murcia"] = "Region of Murcia"
m.fullName["Navarre"] = ""
m.fullName["the Valencian Community (2x3)"] = "Valencian Community"
m.fullName["Ceuta"] = ""
m.fullName["Melilla"] = ""

-- UNITED ARAB EMIRATES- pending

-- UNITED KINGDOM - http://en.wikipedia.org/wiki/Template:Country_data_United_Kingdom
m.variant["United Kingdom|civil"] = "Civil Ensign of the United Kingdom"
m.variant["United Kingdom|naval-RMAS"] = "British Royal Maritime Auxiliary Ensign"
m.fullName["England"] = ""
m.fullName["Northern Ireland"] = ""
m.fullName["Scotland"] = ""
m.fullName["Wales"] = ""

-- UNITED STATES
m.fullName["Alabama"] = ""
m.fullName["Alaska"] = ""
m.fullName["Arizona"] = ""
m.fullName["Arkansas"] = ""
m.fullName["California"] = ""
m.fullName["Colorado"] = ""
m.fullName["Connecticut"] = ""
m.fullName["Delaware"] = ""
m.fullName["Florida"] = ""
m.fullName["Georgia"] = ""
m.fullName["Hawaii"] = ""
m.fullName["Idaho"] = ""
m.fullName["Illinois"] = ""
m.fullName["Indiana"] = ""
m.fullName["Iowa"] = ""
m.fullName["Kansas"] = ""
m.fullName["Kentucky"] = ""
m.fullName["Louisiana"] = ""
m.fullName["Maine"] = ""
m.fullName["Maryland"] = ""
m.fullName["Massachusetts"] = ""
m.fullName["Michigan"] = ""
m.fullName["Minnesota"] = ""
m.fullName["Mississippi"] = ""
m.fullName["Missouri"] = ""
m.fullName["Montana"] = ""
m.fullName["Nebraska"] = ""
m.fullName["Nevada"] = ""
m.fullName["New Hampshire"] = ""
m.fullName["New Jersey"] = ""
m.fullName["New Mexico"] = ""
m.fullName["New York"] = ""
m.fullName["North Carolina"] = ""
m.fullName["North Dakota"] = ""
m.fullName["Ohio"] = ""
m.fullName["Oklahoma"] = ""
m.fullName["Oregon"] = ""
m.fullName["Pennsylvania"] = ""
m.fullName["Rhode Island"] = ""
m.fullName["South Carolina"] = ""
m.fullName["South Dakota"] = ""
m.fullName["Tennessee"] = ""
m.fullName["Texas"] = ""
m.fullName["Utah"] = ""
m.fullName["Vermont"] = ""
m.fullName["Virginia"] = ""
m.fullName["Washington"] = ""
m.fullName["West Virginia"] = ""
m.fullName["Wisconsin"] = ""
m.fullName["Wyoming"] = ""
m.fullName["Washington, D.C."] = ""
m.fullName["American Samoa"] = ""
m.fullName["Guam"] = ""
m.fullName["the Northern Mariana Islands"] = "Northern Mariana Islands"
m.fullName["Puerto Rico"] = ""
m.fullName["the United States Virgin Islands"] = "United States Virgin Islands"

-- 1.4 OTHER TERRITORIES NOT FITTING ABOVE

-- 1.5 OTHER FLAGS SUPPORTED NOT FITTING ABOVE

-- ALL 2 LETTER CODES ISO 3166-1 alpha-2
-- See http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

m.twoLetter["AD"] = "Andorra"
m.twoLetter["AE"] = "United Arab Emirates"
m.twoLetter["AF"] = "Afghanistan"
m.twoLetter["AG"] = "Antigua and Barbuda"
m.twoLetter["AI"] = "Anguilla"
m.twoLetter["AL"] = "Albania"
m.twoLetter["AM"] = "Armenia"
m.twoLetter["AO"] = "Angola"
m.twoLetter["AQ"] = "Antarctica"
m.twoLetter["AR"] = "Argentina"
m.twoLetter["AS"] = "American Samoa"
m.twoLetter["AT"] = "Austria"
m.twoLetter["AU"] = "Australia"
m.twoLetter["AW"] = "Aruba"
m.twoLetter["AX"] = "Åland"
m.twoLetter["AZ"] = "Azerbaijan"
m.twoLetter["BA"] = "Bosnia and Herzegovina"
m.twoLetter["BB"] = "Barbados"
m.twoLetter["BD"] = "Bangladesh"
m.twoLetter["BE"] = "Belgium"
m.twoLetter["BF"] = "Burkina Faso"
m.twoLetter["BG"] = "Bulgaria"
m.twoLetter["BH"] = "Bahrain"
m.twoLetter["BI"] = "Burundi"
m.twoLetter["BJ"] = "Benin"
m.twoLetter["BL"] = "Saint Barthelemy (local)"
m.twoLetter["BM"] = "Bermuda"
m.twoLetter["BN"] = "Brunei"
m.twoLetter["BO"] = "Bolivia"
m.twoLetter["BQ"] = "Bonaire"
m.twoLetter["BR"] = "Brazil"
m.twoLetter["BS"] = "the Bahamas"
m.twoLetter["BT"] = "Bhutan"
m.twoLetter["BW"] = "Botswana"
m.twoLetter["BY"] = "Belarus"
m.twoLetter["BZ"] = "Belize"
m.twoLetter["CA"] = "Canada"
m.twoLetter["CC"] = "the Cocos (Keeling) Islands"
m.twoLetter["CD"] = "the Democratic Republic of the Congo"
m.twoLetter["CF"] = "the Central African Republic"
m.twoLetter["CG"] = "the Republic of the Congo"
m.twoLetter["CH"] = "Switzerland"
m.twoLetter["CI"] = "Côte d'Ivoire"
m.twoLetter["CK"] = "Cook Islands"
m.twoLetter["CL"] = "Chile"
m.twoLetter["CM"] = "Cameroon"
m.twoLetter["CN"] = "China"
m.twoLetter["CO"] = "Colombia"
m.twoLetter["CR"] = "Costa Rica"
m.twoLetter["CU"] = "Cuba"
m.twoLetter["CV"] = "Cape Verde"
m.twoLetter["CW"] = "Curaçao"
m.twoLetter["CX"] = "Christmas Island"
m.twoLetter["CY"] = "Cyprus"
m.twoLetter["CZ"] = "the Czech Republic"
m.twoLetter["DE"] = "Germany"
m.twoLetter["DJ"] = "Djibouti"
m.twoLetter["DK"] = "Denmark"
m.twoLetter["DM"] = "Dominica"
m.twoLetter["DO"] = "Dominican Republic"
m.twoLetter["DZ"] = "Algeria"
m.twoLetter["EC"] = "Ecuador"
m.twoLetter["EE"] = "Estonia"
m.twoLetter["EG"] = "Egypt"
m.twoLetter["EH"] = "Western Sahara"
m.twoLetter["ER"] = "Eritrea"
m.twoLetter["ES"] = "Spain"
m.twoLetter["ET"] = "Ethiopia"
m.twoLetter["FI"] = "Finland"
m.twoLetter["FJ"] = "Fiji"
m.twoLetter["FK"] = "the Falkland Islands"
m.twoLetter["FM"] = "Micronesia"
m.twoLetter["FO"] = "the Faroe Islands"
m.twoLetter["FR"] = "France"
m.twoLetter["GA"] = "Gabon"
m.twoLetter["GB"] = "United Kingdom"
m.twoLetter["GD"] = "Grenada"
m.twoLetter["GE"] = "Georgia"
m.twoLetter["GF"] = "French Guiana"
m.twoLetter["GG"] = "Guernsey"
m.twoLetter["GH"] = "Ghana"
m.twoLetter["GI"] = "Gibraltar"
m.twoLetter["GL"] = "Greenland"
m.twoLetter["GM"] = "Gambia"
m.twoLetter["GN"] = "Guinea"
m.twoLetter["GP"] = "Guadeloupe (local)"
m.twoLetter["GQ"] = "Equatorial Guinea"
m.twoLetter["GR"] = "Greece"
m.twoLetter["GS"] = "South Georgia and the South Sandwich Islands"
m.twoLetter["GT"] = "Guatemala"
m.twoLetter["GU"] = "Guam"
m.twoLetter["GW"] = "Guinea-Bissau"
m.twoLetter["GY"] = "Guyana"
m.twoLetter["HK"] = "Hong Kong"
m.twoLetter["HN"] = "Honduras"
m.twoLetter["HR"] = "Croatia"
m.twoLetter["HT"] = "Haiti"
m.twoLetter["HU"] = "Hungary"
m.twoLetter["ID"] = "Indonesia"
m.twoLetter["IE"] = "Ireland"
m.twoLetter["IL"] = "Israel"
m.twoLetter["IM"] = "the Isle of Man"
m.twoLetter["IN"] = "India"
m.twoLetter["IO"] = "the British Indian Ocean Territory"
m.twoLetter["IQ"] = "Iraq"
m.twoLetter["IR"] = "Iran"
m.twoLetter["IS"] = "Iceland"
m.twoLetter["IT"] = "Italy"
m.twoLetter["JE"] = "Jersey"
m.twoLetter["JM"] = "Jamaica"
m.twoLetter["JO"] = "Jordan"
m.twoLetter["JP"] = "Japan"
m.twoLetter["KE"] = "Kenya"
m.twoLetter["KG"] = "Kyrgyzstan"
m.twoLetter["KH"] = "Cambodia"
m.twoLetter["KI"] = "Kiribati"
m.twoLetter["KM"] = "Comoros"
m.twoLetter["KN"] = "Saint Kitts and Nevis"
m.twoLetter["KP"] = "North Korea"
m.twoLetter["KR"] = "South Korea"
m.twoLetter["KW"] = "Kuwait"
m.twoLetter["KY"] = "the Cayman Islands"
m.twoLetter["KZ"] = "Kazakhstan"
m.twoLetter["LA"] = "Laos"
m.twoLetter["LB"] = "Lebanon"
m.twoLetter["LC"] = "Saint Lucia"
m.twoLetter["LI"] = "Liechtenstein"
m.twoLetter["LK"] = "Sri Lanka"
m.twoLetter["LR"] = "Liberia"
m.twoLetter["LS"] = "Lesotho"
m.twoLetter["LT"] = "Lithuania"
m.twoLetter["LU"] = "Luxembourg"
m.twoLetter["LV"] = "Latvia"
m.twoLetter["LY"] = "Libya"
m.twoLetter["MA"] = "Morocco"
m.twoLetter["MC"] = "Monaco"
m.twoLetter["MD"] = "Moldova"
m.twoLetter["ME"] = "Montenegro"
m.twoLetter["MF"] = "Saint-Martin (local)"
m.twoLetter["MG"] = "Madagascar"
m.twoLetter["MH"] = "the Marshall Islands"
m.twoLetter["MK"] = "Macedonia"
m.twoLetter["ML"] = "Mali"
m.twoLetter["MM"] = "Myanmar"
m.twoLetter["MN"] = "Mongolia"
m.twoLetter["MO"] = "Macau"
m.twoLetter["MP"] = "the Northern Mariana Islands"
m.twoLetter["MQ"] = "Martinique"
m.twoLetter["MR"] = "Mauritania"
m.twoLetter["MS"] = "Montserrat"
m.twoLetter["MT"] = "Malta"
m.twoLetter["MU"] = "Mauritius"
m.twoLetter["MV"] = "Maldives"
m.twoLetter["MW"] = "Malawi"
m.twoLetter["MX"] = "Mexico"
m.twoLetter["MY"] = "Malaysia"
m.twoLetter["MZ"] = "Mozambique"
m.twoLetter["NA"] = "Namibia"
m.twoLetter["NC"] = "New Caledonia"
m.twoLetter["NE"] = "Niger"
m.twoLetter["NF"] = "Norfolk Island"
m.twoLetter["NG"] = "Nigeria"
m.twoLetter["NI"] = "Nicaragua"
m.twoLetter["NL"] = "Netherlands"
m.twoLetter["NO"] = "Norway"
m.twoLetter["NP"] = "Nepal"
m.twoLetter["NR"] = "Nauru"
m.twoLetter["NU"] = "Niue"
m.twoLetter["NZ"] = "New Zealand"
m.twoLetter["OM"] = "Oman"
m.twoLetter["PA"] = "Panama"
m.twoLetter["PE"] = "Peru"
m.twoLetter["PF"] = "French Polynesia"
m.twoLetter["PG"] = "Papua New Guinea"
m.twoLetter["PH"] = "Philippines"
m.twoLetter["PK"] = "Pakistan"
m.twoLetter["PL"] = "Poland"
m.twoLetter["PM"] = "Saint-Pierre and Miquelon"
m.twoLetter["PN"] = "the Pitcairn Islands"
m.twoLetter["PR"] = "Puerto Rico"
m.twoLetter["PS"] = "Palestine"
m.twoLetter["PT"] = "Portugal"
m.twoLetter["PW"] = "Palau"
m.twoLetter["PY"] = "Paraguay"
m.twoLetter["QA"] = "Qatar"
m.twoLetter["RE"] = "Réunion"
m.twoLetter["RO"] = "Romania"
m.twoLetter["RS"] = "Serbia"
m.twoLetter["RU"] = "Russia"
m.twoLetter["RW"] = "Rwanda"
m.twoLetter["SA"] = "Saudi Arabia"
m.twoLetter["SB"] = "the Solomon Islands"
m.twoLetter["SC"] = "Seychelles"
m.twoLetter["SD"] = "Sudan"
m.twoLetter["SE"] = "Sweden"
m.twoLetter["SG"] = "Singapore"
m.twoLetter["SH"] = "Saint Helena"
m.twoLetter["SI"] = "Slovenia"
m.twoLetter["SK"] = "Slovakia"
m.twoLetter["SL"] = "Sierra Leone"
m.twoLetter["SM"] = "San Marino"
m.twoLetter["SN"] = "Senegal"
m.twoLetter["SO"] = "Somalia"
m.twoLetter["SR"] = "Suriname"
m.twoLetter["SS"] = "South Sudan"
m.twoLetter["ST"] = "Sao Tome and Principe"
m.twoLetter["SV"] = "El Salvador"
m.twoLetter["SX"] = "Sint Maarten"
m.twoLetter["SY"] = "Syria"
m.twoLetter["SZ"] = "Swaziland"
m.twoLetter["TC"] = "the Turks and Caicos Islands"
m.twoLetter["TD"] = "Chad"
m.twoLetter["TF"] = "the French Southern and Antarctic Lands"
m.twoLetter["TG"] = "Togo"
m.twoLetter["TH"] = "Thailand"
m.twoLetter["TJ"] = "Tajikistan"
m.twoLetter["TK"] = "Tokelau"
m.twoLetter["TL"] = "East Timor"
m.twoLetter["TM"] = "Turkmenistan"
m.twoLetter["TN"] = "Tunisia"
m.twoLetter["TO"] = "Tonga"
m.twoLetter["TR"] = "Turkey"
m.twoLetter["TT"] = "Trinidad and Tobago"
m.twoLetter["TV"] = "Tuvalu"
m.twoLetter["TW"] = "Taiwan"
m.twoLetter["TZ"] = "Tanzania"
m.twoLetter["UA"] = "Ukraine"
m.twoLetter["UG"] = "Uganda"
m.twoLetter["US"] = "United States"
m.twoLetter["UY"] = "Uruguay"
m.twoLetter["UZ"] = "Uzbekistan"
m.twoLetter["VA"] = "the Vatican City"
m.twoLetter["VC"] = "Saint Vincent and the Grenadines"
m.twoLetter["VE"] = "Venezuela"
m.twoLetter["VG"] = "the British Virgin Islands"
m.twoLetter["VI"] = "the United States Virgin Islands"
m.twoLetter["VN"] = "Vietnam"
m.twoLetter["VU"] = "Vanuatu"
m.twoLetter["WF"] = "Wallis and Futuna"
m.twoLetter["WS"] = "Samoa"
m.twoLetter["YE"] = "Yemen"
m.twoLetter["YT"] = "Mayotte (local)"
m.twoLetter["ZA"] = "South Africa"
m.twoLetter["ZM"] = "Zambia"
m.twoLetter["ZW"] = "Zimbabwe"

-- ALL 3 LETTER CODES ISO 3166-1 alpha-3
-- See http://en.wikipedia.org/wiki/ISO_3166-1_alpha-3

m.threeLetter["AFG"] = "Afghanistan"
m.threeLetter["ALA"] = "Åland"
m.threeLetter["ALB"] = "Albania"
m.threeLetter["DZA"] = "Algeria"
m.threeLetter["ASM"] = "American Samoa"
m.threeLetter["AND"] = "Andorra"
m.threeLetter["AGO"] = "Angola"
m.threeLetter["AIA"] = "Anguilla"
m.threeLetter["ATA"] = "Antarctica"
m.threeLetter["ATG"] = "Antigua and Barbuda"
m.threeLetter["ARG"] = "Argentina"
m.threeLetter["ARM"] = "Armenia"
m.threeLetter["ABW"] = "Aruba"
m.threeLetter["AUS"] = "Australia"
m.threeLetter["AUT"] = "Austria"
m.threeLetter["AZE"] = "Azerbaijan"
m.threeLetter["BHS"] = "the Bahamas"
m.threeLetter["BHR"] = "Bahrain"
m.threeLetter["BGD"] = "Bangladesh"
m.threeLetter["BRB"] = "Barbados"
m.threeLetter["BLR"] = "Belarus"
m.threeLetter["BEL"] = "Belgium"
m.threeLetter["BLZ"] = "Belize"
m.threeLetter["BEN"] = "Benin"
m.threeLetter["BMU"] = "Bermuda"
m.threeLetter["BTN"] = "Bhutan"
m.threeLetter["BOL"] = "Bolivia"
m.threeLetter["BES"] = "Bonaire"
m.threeLetter["BIH"] = "Bosnia and Herzegovina"
m.threeLetter["BWA"] = "Botswana"
m.threeLetter["BRA"] = "Brazil"
m.threeLetter["IOT"] = "the British Indian Ocean Territory"
m.threeLetter["BRN"] = "Brunei"
m.threeLetter["BGR"] = "Bulgaria"
m.threeLetter["BFA"] = "Burkina Faso"
m.threeLetter["BDI"] = "Burundi"
m.threeLetter["KHM"] = "Cambodia"
m.threeLetter["CMR"] = "Cameroon"
m.threeLetter["CAN"] = "Canada"
m.threeLetter["CPV"] = "Cape Verde"
m.threeLetter["CYM"] = "the Cayman Islands"
m.threeLetter["CAF"] = "the Central African Republic"
m.threeLetter["TCD"] = "Chad"
m.threeLetter["CHL"] = "Chile"
m.threeLetter["CHN"] = "China"
m.threeLetter["CXR"] = "Christmas Island"
m.threeLetter["CCK"] = "the Cocos (Keeling) Islands"
m.threeLetter["COL"] = "Colombia"
m.threeLetter["COM"] = "Comoros"
m.threeLetter["COG"] = "the Republic of the Congo"
m.threeLetter["COD"] = "the Democratic Republic of the Congo"
m.threeLetter["COK"] = "Cook Islands"
m.threeLetter["CRI"] = "Costa Rica"
m.threeLetter["CIV"] = "Côte d'Ivoire"
m.threeLetter["HRV"] = "Croatia"
m.threeLetter["CUB"] = "Cuba"
m.threeLetter["CUW"] = "Curaçao"
m.threeLetter["CYP"] = "Cyprus"
m.threeLetter["CZE"] = "the Czech Republic"
m.threeLetter["DNK"] = "Denmark"
m.threeLetter["DJI"] = "Djibouti"
m.threeLetter["DMA"] = "Dominica"
m.threeLetter["DOM"] = "Dominican Republic"
m.threeLetter["ECU"] = "Ecuador"
m.threeLetter["EGY"] = "Egypt"
m.threeLetter["SLV"] = "El Salvador"
m.threeLetter["GNQ"] = "Equatorial Guinea"
m.threeLetter["ERI"] = "Eritrea"
m.threeLetter["EST"] = "Estonia"
m.threeLetter["ETH"] = "Ethiopia"
m.threeLetter["FLK"] = "the Falkland Islands"
m.threeLetter["FRO"] = "the Faroe Islands"
m.threeLetter["FJI"] = "Fiji"
m.threeLetter["FIN"] = "Finland"
m.threeLetter["FRA"] = "France"
m.threeLetter["GUF"] = "French Guiana"
m.threeLetter["PYF"] = "French Polynesia"
m.threeLetter["ATF"] = "the French Southern and Antarctic Lands"
m.threeLetter["GAB"] = "Gabon"
m.threeLetter["GMB"] = "Gambia"
m.threeLetter["GEO"] = "Georgia"
m.threeLetter["DEU"] = "Germany"
m.threeLetter["GHA"] = "Ghana"
m.threeLetter["GIB"] = "Gibraltar"
m.threeLetter["GRC"] = "Greece"
m.threeLetter["GRL"] = "Greenland"
m.threeLetter["GRD"] = "Grenada"
m.threeLetter["GLP"] = "Guadeloupe (local)"
m.threeLetter["GUM"] = "Guam"
m.threeLetter["GTM"] = "Guatemala"
m.threeLetter["GGY"] = "Guernsey"
m.threeLetter["GIN"] = "Guinea"
m.threeLetter["GNB"] = "Guinea-Bissau"
m.threeLetter["GUY"] = "Guyana"
m.threeLetter["HTI"] = "Haiti"
m.threeLetter["VAT"] = "the Vatican City"
m.threeLetter["HND"] = "Honduras"
m.threeLetter["HKG"] = "Hong Kong"
m.threeLetter["HUN"] = "Hungary"
m.threeLetter["ISL"] = "Iceland"
m.threeLetter["IND"] = "India"
m.threeLetter["IDN"] = "Indonesia"
m.threeLetter["IRN"] = "Iran"
m.threeLetter["IRQ"] = "Iraq"
m.threeLetter["IRL"] = "Ireland"
m.threeLetter["IMN"] = "the Isle of Man"
m.threeLetter["ISR"] = "Israel"
m.threeLetter["ITA"] = "Italy"
m.threeLetter["JAM"] = "Jamaica"
m.threeLetter["JPN"] = "Japan"
m.threeLetter["JEY"] = "Jersey"
m.threeLetter["JOR"] = "Jordan"
m.threeLetter["KAZ"] = "Kazakhstan"
m.threeLetter["KEN"] = "Kenya"
m.threeLetter["KIR"] = "Kiribati"
m.threeLetter["PRK"] = "North Korea"
m.threeLetter["KOR"] = "South Korea"
m.threeLetter["KWT"] = "Kuwait"
m.threeLetter["KGZ"] = "Kyrgyzstan"
m.threeLetter["LAO"] = "Laos"
m.threeLetter["LVA"] = "Latvia"
m.threeLetter["LBN"] = "Lebanon"
m.threeLetter["LSO"] = "Lesotho"
m.threeLetter["LBR"] = "Liberia"
m.threeLetter["LBY"] = "Libya"
m.threeLetter["LIE"] = "Liechtenstein"
m.threeLetter["LTU"] = "Lithuania"
m.threeLetter["LUX"] = "Luxembourg"
m.threeLetter["MAC"] = "Macau"
m.threeLetter["MKD"] = "Macedonia"
m.threeLetter["MDG"] = "Madagascar"
m.threeLetter["MWI"] = "Malawi"
m.threeLetter["MYS"] = "Malaysia"
m.threeLetter["MDV"] = "Maldives"
m.threeLetter["MLI"] = "Mali"
m.threeLetter["MLT"] = "Malta"
m.threeLetter["MHL"] = "the Marshall Islands"
m.threeLetter["MTQ"] = "Martinique"
m.threeLetter["MRT"] = "Mauritania"
m.threeLetter["MUS"] = "Mauritius"
m.threeLetter["MYT"] = "Mayotte (local)"
m.threeLetter["MEX"] = "Mexico"
m.threeLetter["FSM"] = "the Federated States of Micronesia"
m.threeLetter["MDA"] = "Moldova"
m.threeLetter["MCO"] = "Monaco"
m.threeLetter["MNG"] = "Mongolia"
m.threeLetter["MNE"] = "Montenegro"
m.threeLetter["MSR"] = "Montserrat"
m.threeLetter["MAR"] = "Morocco"
m.threeLetter["MOZ"] = "Mozambique"
m.threeLetter["MMR"] = "Myanmar"
m.threeLetter["NAM"] = "Namibia"
m.threeLetter["NRU"] = "Nauru"
m.threeLetter["NPL"] = "Nepal"
m.threeLetter["NLD"] = "Netherlands"
m.threeLetter["NCL"] = "New Caledonia"
m.threeLetter["NZL"] = "New Zealand"
m.threeLetter["NIC"] = "Nicaragua"
m.threeLetter["NER"] = "Niger"
m.threeLetter["NGA"] = "Nigeria"
m.threeLetter["NIU"] = "Niue"
m.threeLetter["NFK"] = "Norfolk Island"
m.threeLetter["MNP"] = "the Northern Mariana Islands"
m.threeLetter["NOR"] = "Norway"
m.threeLetter["OMN"] = "Oman"
m.threeLetter["PAK"] = "Pakistan"
m.threeLetter["PLW"] = "Palau"
m.threeLetter["PSE"] = "Palestine"
m.threeLetter["PAN"] = "Panama"
m.threeLetter["PNG"] = "Papua New Guinea"
m.threeLetter["PRY"] = "Paraguay"
m.threeLetter["PER"] = "Peru"
m.threeLetter["PHL"] = "Philippines"
m.threeLetter["PCN"] = "the Pitcairn Islands"
m.threeLetter["POL"] = "Poland"
m.threeLetter["PRT"] = "Portugal"
m.threeLetter["PRI"] = "Puerto Rico"
m.threeLetter["QAT"] = "Qatar"
m.threeLetter["REU"] = "Réunion"
m.threeLetter["ROU"] = "Romania"
m.threeLetter["RUS"] = "Russian Federation"
m.threeLetter["RWA"] = "Rwanda"
m.threeLetter["BLM"] = "Saint Barthelemy (local)"
m.threeLetter["KNA"] = "Saint Kitts and Nevis"
m.threeLetter["LCA"] = "Saint Lucia"
m.threeLetter["MAF"] = "Saint-Martin (local)"
m.threeLetter["SPM"] = "Saint-Pierre and Miquelon"
m.threeLetter["VCT"] = "Saint Vincent and the Grenadines"
m.threeLetter["WSM"] = "Samoa"
m.threeLetter["SMR"] = "San Marino"
m.threeLetter["STP"] = "Sao Tome and Principe"
m.threeLetter["SAU"] = "Saudi Arabia"
m.threeLetter["SEN"] = "Senegal"
m.threeLetter["SRB"] = "Serbia"
m.threeLetter["SYC"] = "Seychelles"
m.threeLetter["SLE"] = "Sierra Leone"
m.threeLetter["SGP"] = "Singapore"
m.threeLetter["SXM"] = "Sint Maarten"
m.threeLetter["SVK" ] = "Slovakia"
m.threeLetter["SVN"] = "Slovenia"
m.threeLetter["SLB"] = "the Solomon Islands"
m.threeLetter["SOM"] = "Somalia"
m.threeLetter["ZAF"] = "South Africa"
m.threeLetter["SGS"] = "South Georgia and the South Sandwich Islands"
m.threeLetter["SSD"] = "South Sudan"
m.threeLetter["ESP"] = "Spain"
m.threeLetter["LKA"] = "Sri Lanka"
m.threeLetter["SDN"] = "Sudan"
m.threeLetter["SUR"] = "Suriname"
m.threeLetter["SWZ"] = "Swaziland"
m.threeLetter["SWE"] = "Sweden"
m.threeLetter["CHE"] = "Switzerland"
m.threeLetter["SYR"] = "Syria"
m.threeLetter["TWN"] = "Taiwan"
m.threeLetter["TJK"] = "Tajikistan"
m.threeLetter["TZA"] = "Tanzania"
m.threeLetter["THA"] = "Thailand"
m.threeLetter["TLS"] = "East Timor"
m.threeLetter["TGO"] = "Togo"
m.threeLetter["TKL"] = "Tokelau"
m.threeLetter["TON"] = "Tonga"
m.threeLetter["TTO"] = "Trinidad and Tobago"
m.threeLetter["TUN"] = "Tunisia"
m.threeLetter["TUR"] = "Turkey"
m.threeLetter["TKM"] = "Turkmenistan"
m.threeLetter["TCA"] = "the Turks and Caicos Islands"
m.threeLetter["TUV"] = "Tuvalu"
m.threeLetter["UGA"] = "Uganda"
m.threeLetter["UKR"] = "Ukraine"
m.threeLetter["ARE"] = "United Arab Emirates"
m.threeLetter["GBR"] = "United Kingdom"
m.threeLetter["USA"] = "United States"
m.threeLetter["URY"] = "Uruguay"
m.threeLetter["UZB"] = "Uzbekistan"
m.threeLetter["VUT"] = "Vanuatu"
m.threeLetter["VEN"] = "Venezuela"
m.threeLetter["VNM"] = "Vietnam"
m.threeLetter["VGB"] = "the British Virgin Islands"
m.threeLetter["VIR"] = "the United States Virgin Islands"
m.threeLetter["WLF"] = "Wallis and Futuna"
m.threeLetter["ESH"] = "Western Sahara"
m.threeLetter["YEM"] = "Yemen"
m.threeLetter["ZMB"] = "Zambia"
m.threeLetter["ZWE"] = "Zimbabwe"

-- You don't want to touch this either!
return m