Jump to content

Module:Flags/MasterData

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by QuimGil (talk | contribs) at 02:31, 24 June 2013 (Created page with 'local m = {} -- Defining tables m.fullName = {} m.twoLetter = {} m.threeLetter = {} m.variant = {} -- Misc flags --- m.fullName[""] = "" m.fullName["African Un...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

local m = {}

-- Defining tables
m.fullName = {}
m.twoLetter = {}
m.threeLetter = {}
m.variant = {}

-- Misc flags --- m.fullName[""] = ""
m.fullName["African Union"] = ""
m.fullName["NATO"] = ""
m.fullName["Western Sahara"] = ""

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

-- AE, United Arab Emirates -- pending

-- AF, 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)"

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

-- AU, Australia - http://en.wikipedia.org/wiki/Template:Country_data_Australia
m.fullName["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"] = ""

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

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

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

return m