Jump to content

Module:Flags/LocaleData

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by QuimGil (talk | contribs) at 06:34, 21 June 2013 (Subdivisions of United Kingdom). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local m = {}

-- Defining tables
m.fullName = {}
m.twoLetter = {}
-- m.threeLetter = {} Still needs to be converted
m.variant = {}

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

-- 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"] = ""

-- Table of translations.
-- Format: ["english"] = "locale",
-- Some "english" labels have been modified to match the flag names in Commons.
-- Don't edit the "english" labels unless you know what you are doing!
-- Edit the "locale" labels only when they differ from "english".
-- Flag icons link to the article about "locale", or fallback to "english" if it's empty.
-- List of countries and dependent territories according to http://en.wikipedia.org/wiki/ISO_3166-1

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"] = ""
m.fullName["the 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"] = ""
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"] = ""
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"] = ""
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"] = ""
m.fullName["Martinique"] = ""
m.fullName["Mauritania"] = ""
m.fullName["Mauritius"] = ""
m.fullName["Mayotte (local)"] = ""
m.fullName["Mexico"] = ""
m.fullName["the Federated States of 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"] = ""
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"] = ""
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"] = ""
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"] = ""
m.fullName["the United States Virgin Islands"] = ""
m.fullName["Wallis and Futuna"] = ""
m.fullName["Western Sahara"] = ""
m.fullName["Yemen"] = ""
m.fullName["Zambia"] = ""
m.fullName["Zimbabwe"] = ""

-- Subdivisions of ISO_3166-1 territories according to http://en.wikipedia.org/wiki/ISO_3166-2 --
-- Please add new entries alphabetically by ISO_3166-1 territory --

-- 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"

-- 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"] = "Lombardia", "Lombardy"
m.fullName["Marche"] = ""
m.fullName["Molise"] = ""
m.fullName["Piedmont"] = "Piemonte", "Piedmont"
m.fullName["Apulia"] = "Puglia", "Apulia"
m.fullName["Sardinia"] = "Sardegna", "Sardinia"
m.fullName["Sicily"] = "Sicilia", "Sicily"
m.fullName["Tuscany"] = "Toscana", "Tuscany"
m.fullName["Trentino-South Tyrol"] = "Trentino-Alto Adige"
m.fullName["Umbria"] = ""
m.fullName["Valle d'Aosta"] = "Aosta Valley", "Valle d'Aosta"
m.fullName["Veneto"] = ""

-- MEXICO
m.fullName["Mexican Federal District"] = "Distrito Federal (Mexico)", "Federal District (Mexico)"
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"] = "Michoacán"
m.fullName["Morelos"] = ""
m.fullName["Nayarit"] = ""
m.fullName["Nuevo Leon"] = "Nuevo León"
m.fullName["Oaxaca"] = ""
m.fullName["Puebla"] = ""
m.fullName["Queretaro"] = "Querétaro"
m.fullName["Quintana Roo"] = ""
m.fullName["San Luis Potosi"] = "San Luis Potosí"
m.fullName["Sinaloa"] = ""
m.fullName["Sonora"] = ""
m.fullName["Tabasco"] = ""
m.fullName["Tamaulipas"] = ""
m.fullName["Tlaxcala"] = ""
m.fullName["Veracruz"] = ""
m.fullName["Yucatan"] = "Yucatán"
m.fullName["Zacatecas"] = ""

-- SPAIN
m.fullName["Andalusia"] = "Andalucía", "Andalusia"
m.fullName["Aragon"] = "Aragón", "Aragon"
m.fullName["Asturias"] = "Principado de Asturias", "Asturias"
m.fullName["the Balearic Islands"] = "Balearic Islands", "Illes Balears", "Islas Baleares"
m.fullName["Basque Country"] = "País Vasco", "Basque Country", "Euskal Herria"
m.fullName["the Canary Islands"] = "Canary Islands", "Canarias"
m.fullName["Cantabria"] = ""
m.fullName["Castile-La Mancha"] = "Castilla La Mancha", "Castilla-La Mancha", "Castile-La Mancha"
m.fullName["Castile and León"] = "Castile and León", "Castilla y León"
m.fullName["Catalonia"] = "Catalunya", "Cataluña"
m.fullName["the Community of Madrid"] = "Madrid", "Comunidad de Madrid", "Community of Madrid"
m.fullName["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"] = "Comunidad Foral de Navarra", "Navarra", "Nafarroako Foru Komunitatea", "Navarre"
m.fullName["the Valencian Community (2x3)"] = "Valencian Community"
m.fullName["Ceuta"] = ""
m.fullName["Melilla"] = ""

-- 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"] = "American Samoa"
m.fullName["Guam"] = ""
m.fullName["the Northern Mariana Islands"] = ""
m.fullName["Puerto Rico"] = ""
m.fullName["the United States Virgin Islands"] = ""

-- 2 letter code http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements --

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

-- 3 letter codes ---

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

return m