diff options
Diffstat (limited to 'includes/countries_inc.php')
| -rw-r--r-- | includes/countries_inc.php | 508 |
1 files changed, 508 insertions, 0 deletions
diff --git a/includes/countries_inc.php b/includes/countries_inc.php new file mode 100644 index 0000000..3e3f15d --- /dev/null +++ b/includes/countries_inc.php @@ -0,0 +1,508 @@ +<?php +// ISO alpha-3 country codes => English display names, sorted by name +// Derived from webtrees CountryService; standalone, no webtrees dependency +$bwCountries = [ + 'AFG' => 'Afghanistan', + 'ALB' => 'Albania', + 'DZA' => 'Algeria', + 'ASM' => 'American Samoa', + 'AND' => 'Andorra', + 'AGO' => 'Angola', + 'AIA' => 'Anguilla', + 'ATA' => 'Antarctica', + 'ATG' => 'Antigua and Barbuda', + 'ARG' => 'Argentina', + 'ARM' => 'Armenia', + 'ABW' => 'Aruba', + 'SEA' => 'At sea', + 'AUS' => 'Australia', + 'AUT' => 'Austria', + 'AZE' => 'Azerbaijan', + 'AZR' => 'Azores', + 'BHS' => 'Bahamas', + 'BHR' => 'Bahrain', + 'BGD' => 'Bangladesh', + 'BRB' => 'Barbados', + 'BLR' => 'Belarus', + 'BEL' => 'Belgium', + 'BLZ' => 'Belize', + 'BEN' => 'Benin', + 'BMU' => 'Bermuda', + 'BTN' => 'Bhutan', + 'BOL' => 'Bolivia', + 'BIH' => 'Bosnia and Herzegovina', + 'BWA' => 'Botswana', + 'BVT' => 'Bouvet Island', + 'BRA' => 'Brazil', + 'IOT' => 'British Indian Ocean Territory', + 'VGB' => 'British Virgin Islands', + 'BRN' => 'Brunei Darussalam', + 'BGR' => 'Bulgaria', + 'BFA' => 'Burkina Faso', + 'BDI' => 'Burundi', + 'KHM' => 'Cambodia', + 'CMR' => 'Cameroon', + 'CAN' => 'Canada', + 'CPV' => 'Cape Verde', + 'CYM' => 'Cayman Islands', + 'CAF' => 'Central African Republic', + 'TCD' => 'Chad', + 'CHL' => 'Chile', + 'CHN' => 'China', + 'CXR' => 'Christmas Island', + 'CCK' => 'Cocos (Keeling) Islands', + 'COL' => 'Colombia', + 'COM' => 'Comoros', + 'COK' => 'Cook Islands', + 'CRI' => 'Costa Rica', + 'HRV' => 'Croatia', + 'CUB' => 'Cuba', + 'CUW' => 'Curaçao', + 'CYP' => 'Cyprus', + 'CZE' => 'Czech Republic', + 'CIV' => 'Côte d’Ivoire', + 'COD' => 'Democratic Republic of the Congo', + 'DNK' => 'Denmark', + 'DJI' => 'Djibouti', + 'DMA' => 'Dominica', + 'DOM' => 'Dominican Republic', + 'ECU' => 'Ecuador', + 'EGY' => 'Egypt', + 'SLV' => 'El Salvador', + 'ENG' => 'England', + 'GNQ' => 'Equatorial Guinea', + 'ERI' => 'Eritrea', + 'EST' => 'Estonia', + 'ETH' => 'Ethiopia', + 'FLK' => 'Falkland Islands', + 'FRO' => 'Faroe Islands', + 'FJI' => 'Fiji', + 'FIN' => 'Finland', + 'FLD' => 'Flanders', + 'FRA' => 'France', + 'GUF' => 'French Guiana', + 'PYF' => 'French Polynesia', + 'ATF' => 'French Southern Territories', + 'GAB' => 'Gabon', + 'GMB' => 'Gambia', + 'GEO' => 'Georgia', + 'DEU' => 'Germany', + 'GHA' => 'Ghana', + 'GIB' => 'Gibraltar', + 'GRC' => 'Greece', + 'GRL' => 'Greenland', + 'GRD' => 'Grenada', + 'GLP' => 'Guadeloupe', + 'GUM' => 'Guam', + 'GTM' => 'Guatemala', + 'GGY' => 'Guernsey', + 'GIN' => 'Guinea', + 'GNB' => 'Guinea-Bissau', + 'GUY' => 'Guyana', + 'HTI' => 'Haiti', + 'HMD' => 'Heard Island and McDonald Islands', + 'HND' => 'Honduras', + 'HKG' => 'Hong Kong', + 'HUN' => 'Hungary', + 'ISL' => 'Iceland', + 'IND' => 'India', + 'IDN' => 'Indonesia', + 'IRN' => 'Iran', + 'IRQ' => 'Iraq', + 'IRL' => 'Ireland', + 'IOM' => 'Isle of Man', + 'ISR' => 'Israel', + 'ITA' => 'Italy', + 'JAM' => 'Jamaica', + 'JPN' => 'Japan', + 'JOR' => 'Jordan', + 'KAZ' => 'Kazakhstan', + 'KEN' => 'Kenya', + 'KIR' => 'Kiribati', + 'KOR' => 'Korea', + 'KWT' => 'Kuwait', + 'KGZ' => 'Kyrgyzstan', + 'LAO' => 'Laos', + 'LVA' => 'Latvia', + 'LBN' => 'Lebanon', + 'LSO' => 'Lesotho', + 'LBR' => 'Liberia', + 'LBY' => 'Libya', + 'LIE' => 'Liechtenstein', + 'LTU' => 'Lithuania', + 'LUX' => 'Luxembourg', + 'MAC' => 'Macau', + 'MKD' => 'Macedonia', + 'MDG' => 'Madagascar', + 'MWI' => 'Malawi', + 'MYS' => 'Malaysia', + 'MDV' => 'Maldives', + 'MLI' => 'Mali', + 'MLT' => 'Malta', + 'MHL' => 'Marshall Islands', + 'MTQ' => 'Martinique', + 'MRT' => 'Mauritania', + 'MUS' => 'Mauritius', + 'MYT' => 'Mayotte', + 'MEX' => 'Mexico', + 'FSM' => 'Micronesia', + 'MDA' => 'Moldova', + 'MCO' => 'Monaco', + 'MNG' => 'Mongolia', + 'MNT' => 'Montenegro', + 'MSR' => 'Montserrat', + 'MAR' => 'Morocco', + 'MOZ' => 'Mozambique', + 'MMR' => 'Myanmar', + 'NAM' => 'Namibia', + 'NRU' => 'Nauru', + 'NPL' => 'Nepal', + 'NLD' => 'Netherlands', + 'NCL' => 'New Caledonia', + 'NZL' => 'New Zealand', + 'NIC' => 'Nicaragua', + 'NER' => 'Niger', + 'NGA' => 'Nigeria', + 'NIU' => 'Niue', + 'NFK' => 'Norfolk Island', + 'PRK' => 'North Korea', + 'NIR' => 'Northern Ireland', + 'MNP' => 'Northern Mariana Islands', + 'NOR' => 'Norway', + 'PSE' => 'Occupied Palestinian Territory', + 'OMN' => 'Oman', + 'PAK' => 'Pakistan', + 'PLW' => 'Palau', + 'PAN' => 'Panama', + 'PNG' => 'Papua New Guinea', + 'PRY' => 'Paraguay', + 'PER' => 'Peru', + 'PHL' => 'Philippines', + 'PCN' => 'Pitcairn', + 'POL' => 'Poland', + 'PRT' => 'Portugal', + 'PRI' => 'Puerto Rico', + 'QAT' => 'Qatar', + 'COG' => 'Republic of the Congo', + 'ROM' => 'Romania', + 'RUS' => 'Russia', + 'RWA' => 'Rwanda', + 'REU' => 'Réunion', + 'BLM' => 'Saint Barthélemy', + 'SHN' => 'Saint Helena', + 'KNA' => 'Saint Kitts and Nevis', + 'LCA' => 'Saint Lucia', + 'SPM' => 'Saint Pierre and Miquelon', + 'VCT' => 'Saint Vincent and the Grenadines', + 'WSM' => 'Samoa', + 'SMR' => 'San Marino', + 'STP' => 'Sao Tome and Principe', + 'SAU' => 'Saudi Arabia', + 'SCT' => 'Scotland', + 'SEN' => 'Senegal', + 'SER' => 'Serbia', + 'SYC' => 'Seychelles', + 'SLE' => 'Sierra Leone', + 'SGP' => 'Singapore', + 'SVK' => 'Slovakia', + 'SVN' => 'Slovenia', + 'SLB' => 'Solomon Islands', + 'SOM' => 'Somalia', + 'ZAF' => 'South Africa', + 'SGS' => 'South Georgia and the South Sandwich Islands', + 'SSD' => 'South Sudan', + 'ESP' => 'Spain', + 'LKA' => 'Sri Lanka', + 'SDN' => 'Sudan', + 'SUR' => 'Suriname', + 'SJM' => 'Svalbard and Jan Mayen', + 'SWZ' => 'Swaziland', + 'SWE' => 'Sweden', + 'CHE' => 'Switzerland', + 'SYR' => 'Syria', + 'TWN' => 'Taiwan', + 'TJK' => 'Tajikistan', + 'TZA' => 'Tanzania', + 'THA' => 'Thailand', + 'TLS' => 'Timor-Leste', + 'TGO' => 'Togo', + 'TKL' => 'Tokelau', + 'TON' => 'Tonga', + 'TTO' => 'Trinidad and Tobago', + 'TUN' => 'Tunisia', + 'TUR' => 'Turkey', + 'TKM' => 'Turkmenistan', + 'TCA' => 'Turks and Caicos Islands', + 'TUV' => 'Tuvalu', + 'UMI' => 'US Minor Outlying Islands', + 'VIR' => 'US Virgin Islands', + 'UGA' => 'Uganda', + 'UKR' => 'Ukraine', + 'ARE' => 'United Arab Emirates', + 'GBR' => 'United Kingdom', + 'USA' => 'United States', + 'URY' => 'Uruguay', + 'UZB' => 'Uzbekistan', + 'VUT' => 'Vanuatu', + 'VAT' => 'Vatican City', + 'VEN' => 'Venezuela', + 'VNM' => 'Vietnam', + 'WLS' => 'Wales', + 'WLF' => 'Wallis and Futuna', + 'ESH' => 'Western Sahara', + 'YEM' => 'Yemen', + 'ZMB' => 'Zambia', + 'ZWE' => 'Zimbabwe', + 'ALA' => 'Åland Islands', +]; + +// alpha-3 => alpha-2 lowercase, for flag image filename +// Entries without a mapping (SEA, AZR, FLD, CUW, BLM, SSD) show no flag +$bwIso3166 = [ + 'GBR' => 'gb', + 'ABW' => 'aw', + 'AFG' => 'af', + 'AGO' => 'ao', + 'AIA' => 'ai', + 'ALA' => 'ax', + 'ALB' => 'al', + 'AND' => 'ad', + 'ARE' => 'ae', + 'ARG' => 'ar', + 'ARM' => 'am', + 'ASM' => 'as', + 'ATA' => 'aq', + 'ATF' => 'tf', + 'ATG' => 'ag', + 'AUS' => 'au', + 'AUT' => 'at', + 'AZE' => 'az', + 'BDI' => 'bi', + 'BEL' => 'be', + 'BEN' => 'bj', + 'BFA' => 'bf', + 'BGD' => 'bd', + 'BGR' => 'bg', + 'BHR' => 'bh', + 'BHS' => 'bs', + 'BIH' => 'ba', + 'BLR' => 'by', + 'BLZ' => 'bz', + 'BMU' => 'bm', + 'BOL' => 'bo', + 'BRA' => 'br', + 'BRB' => 'bb', + 'BRN' => 'bn', + 'BTN' => 'bt', + 'BVT' => 'bv', + 'BWA' => 'bw', + 'CAF' => 'cf', + 'CAN' => 'ca', + 'CCK' => 'cc', + 'CHE' => 'ch', + 'CHL' => 'cl', + 'CHN' => 'cn', + 'CIV' => 'ci', + 'CMR' => 'cm', + 'COD' => 'cd', + 'COG' => 'cg', + 'COK' => 'ck', + 'COL' => 'co', + 'COM' => 'km', + 'CPV' => 'cv', + 'CRI' => 'cr', + 'CUB' => 'cu', + 'CXR' => 'cx', + 'CYM' => 'ky', + 'CYP' => 'cy', + 'CZE' => 'cz', + 'DEU' => 'de', + 'DJI' => 'dj', + 'DMA' => 'dm', + 'DNK' => 'dk', + 'DOM' => 'do', + 'DZA' => 'dz', + 'ECU' => 'ec', + 'EGY' => 'eg', + 'ENG' => 'eng', + 'ERI' => 'er', + 'ESH' => 'eh', + 'ESP' => 'es', + 'EST' => 'ee', + 'ETH' => 'et', + 'FIN' => 'fi', + 'FJI' => 'fj', + 'FLK' => 'fk', + 'FRA' => 'fr', + 'FRO' => 'fo', + 'FSM' => 'fm', + 'GAB' => 'ga', + 'GEO' => 'ge', + 'GHA' => 'gh', + 'GIB' => 'gi', + 'GIN' => 'gn', + 'GLP' => 'gp', + 'GMB' => 'gm', + 'GNB' => 'gw', + 'GNQ' => 'gq', + 'GRC' => 'gr', + 'GRD' => 'gd', + 'GRL' => 'gl', + 'GTM' => 'gt', + 'GUF' => 'gf', + 'GUM' => 'gu', + 'GUY' => 'gy', + 'HKG' => 'hk', + 'HMD' => 'hm', + 'HND' => 'hn', + 'HRV' => 'hr', + 'HTI' => 'ht', + 'HUN' => 'hu', + 'IDN' => 'id', + 'IND' => 'in', + 'IOT' => 'io', + 'IRL' => 'ie', + 'IRN' => 'ir', + 'IRQ' => 'iq', + 'ISL' => 'is', + 'ISR' => 'il', + 'ITA' => 'it', + 'JAM' => 'jm', + 'JOR' => 'jo', + 'JPN' => 'jp', + 'KAZ' => 'kz', + 'KEN' => 'ke', + 'KGZ' => 'kg', + 'KHM' => 'kh', + 'KIR' => 'ki', + 'KNA' => 'kn', + 'KOR' => 'ko', + 'KWT' => 'kw', + 'LAO' => 'la', + 'LBN' => 'lb', + 'LBR' => 'lr', + 'LBY' => 'ly', + 'LCA' => 'lc', + 'LIE' => 'li', + 'LKA' => 'lk', + 'LSO' => 'ls', + 'LTU' => 'lt', + 'LUX' => 'lu', + 'LVA' => 'lv', + 'MAC' => 'mo', + 'MAR' => 'ma', + 'MCO' => 'mc', + 'MDA' => 'md', + 'MDG' => 'mg', + 'MDV' => 'mv', + 'MEX' => 'mx', + 'MHL' => 'mh', + 'MKD' => 'mk', + 'MLI' => 'ml', + 'MLT' => 'mt', + 'MMR' => 'mm', + 'MNG' => 'mn', + 'MNP' => 'mp', + 'MNT' => 'me', + 'MOZ' => 'mz', + 'MRT' => 'mr', + 'MSR' => 'ms', + 'MTQ' => 'mq', + 'MUS' => 'mu', + 'MWI' => 'mw', + 'MYS' => 'my', + 'MYT' => 'yt', + 'NAM' => 'na', + 'NCL' => 'nc', + 'NER' => 'ne', + 'NFK' => 'nf', + 'NGA' => 'ng', + 'NIC' => 'ni', + 'NIR' => 'nir', + 'NIU' => 'nu', + 'NLD' => 'nl', + 'NOR' => 'no', + 'NPL' => 'np', + 'NRU' => 'nr', + 'NZL' => 'nz', + 'OMN' => 'om', + 'PAK' => 'pk', + 'PAN' => 'pa', + 'PCN' => 'pn', + 'PER' => 'pe', + 'PHL' => 'ph', + 'PLW' => 'pw', + 'PNG' => 'pg', + 'POL' => 'pl', + 'PRI' => 'pr', + 'PRK' => 'kp', + 'PRT' => 'pt', + 'PRY' => 'py', + 'PSE' => 'ps', + 'PYF' => 'pf', + 'QAT' => 'qa', + 'REU' => 're', + 'ROM' => 'ro', + 'RUS' => 'ru', + 'RWA' => 'rw', + 'SAU' => 'sa', + 'SCT' => 'sct', + 'SDN' => 'sd', + 'SEN' => 'sn', + 'SER' => 'rs', + 'SGP' => 'sg', + 'SGS' => 'gs', + 'SHN' => 'sh', + 'SJM' => 'sj', + 'SLB' => 'sb', + 'SLE' => 'sl', + 'SLV' => 'sv', + 'SMR' => 'sm', + 'SOM' => 'so', + 'SPM' => 'pm', + 'STP' => 'st', + 'SUR' => 'sr', + 'SVK' => 'sk', + 'SVN' => 'si', + 'SWE' => 'se', + 'SWZ' => 'sz', + 'SYC' => 'sc', + 'SYR' => 'sy', + 'TCA' => 'tc', + 'TCD' => 'td', + 'TGO' => 'tg', + 'THA' => 'th', + 'TJK' => 'tj', + 'TKL' => 'tk', + 'TKM' => 'tm', + 'TLS' => 'tl', + 'TON' => 'to', + 'TTO' => 'tt', + 'TUN' => 'tn', + 'TUR' => 'tr', + 'TUV' => 'tv', + 'TWN' => 'tw', + 'TZA' => 'tz', + 'UGA' => 'ug', + 'UKR' => 'ua', + 'UMI' => 'um', + 'URY' => 'uy', + 'USA' => 'us', + 'UZB' => 'uz', + 'VAT' => 'va', + 'VCT' => 'vc', + 'VEN' => 've', + 'VGB' => 'vg', + 'VIR' => 'vi', + 'VNM' => 'vn', + 'VUT' => 'vu', + 'WLF' => 'wf', + 'WLS' => 'wls', + 'WSM' => 'ws', + 'YEM' => 'ye', + 'ZAF' => 'za', + 'ZMB' => 'zm', + 'ZWE' => 'zw', + 'GGY' => 'gg', + 'IOM' => 'im', +]; |
