Created
November 4, 2011 18:51
-
-
Save DHS/1340150 to your computer and use it in GitHub Desktop.
PHP array of all country names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$countries = array("Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "France Metropolitan", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard and Mc Donald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran (Islamic Republic of)", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic People's Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao, People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libyan Arab Jamahiriya", "Liechtenstein", "Lithuania", "Luxembourg", "Macau", "Macedonia, The Former Yugoslav Republic of", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "Netherlands Antilles", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Seychelles", "Sierra Leone", "Singapore", "Slovakia (Slovak Republic)", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "Spain", "Sri Lanka", "St. Helena", "St. Pierre and Miquelon", "Sudan", "Suriname", "Svalbard and Jan Mayen Islands", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Taiwan, Province of China", "Tajikistan", "Tanzania, United Republic of", "Thailand", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Virgin Islands (British)", "Virgin Islands (U.S.)", "Wallis and Futuna Islands", "Western Sahara", "Yemen", "Yugoslavia", "Zambia", "Zimbabwe"); | |
?> |
Translations for Latvian locale:
return [
'Papua New Guinea' => 'Papua Jaungvineja',
'Cambodia' => 'Kambodža',
'Kazakhstan' => 'Kazahstāna',
'Neutral Zone' => 'Neitrālā zona',
'Paraguay' => 'Paragvaja',
'Åland Islands' => 'Olandes salas',
'Syria' => 'Sīrija',
'Bahamas' => 'Bahamas',
'Côte d’Ivoire' => 'Kotdivuāra',
'Solomon Islands' => 'Zālamana salas',
'Montserrat' => 'Montserrata',
'Mali' => 'Mali',
'Marshall Islands' => 'Māršala salas',
'Guadeloupe' => 'Gvadelupa',
'Panama' => 'Panama',
'Laos' => 'Laosa',
'Argentina' => 'Argentīna',
'Falkland Islands' => 'Folklenda salas',
'Seychelles' => 'Seišelu salas',
'Zambia' => 'Zambija',
'Belize' => 'Beliza',
'Bahrain' => 'Bahreina',
'Johnston Island' => 'Džonstona sala',
'Guinea-Bissau' => 'Gvineja-Bisava',
'Namibia' => 'Namībija',
'Finland' => 'Somija',
'Comoros' => 'Komoru salas',
'Palestinian Territories' => 'Palestīna',
'Faroe Islands' => 'Fēru salas',
'Netherlands Antilles' => 'Nīderlandes Antiļas',
'Georgia' => 'Gruzija',
'Saint Kitts and Nevis' => 'Sentkitsa un Nevisa',
'Yemen' => 'Jemena',
'Eritrea' => 'Eritreja',
'Puerto Rico' => 'Puertoriko',
'Aruba' => 'Aruba',
'Madagascar' => 'Madagaskara',
'Libya' => 'Lībija',
'Svalbard and Jan Mayen' => 'Svalbāra un Jana Majena salas',
'South Georgia and the South Sandwich Islands' => 'Dienviddžordžija un Dienvidsendviču salas',
'Sweden' => 'Zviedrija',
'Saint Martin' => 'Senmartēna',
'Malawi' => 'Malāvija',
'Andorra' => 'Andora',
'Liechtenstein' => 'Lihtenšteina',
'Poland' => 'Polija',
'Jordan' => 'Jordānija',
'Bulgaria' => 'Bulgārija',
'Tunisia' => 'Tunisija',
'Union of Soviet Socialist Republics' => 'Padomju Savienība',
'United Arab Emirates' => 'Apvienotie Arābu Emirāti',
'Tuvalu' => 'Tuvalu',
'Kenya' => 'Kenija',
'French Polynesia' => 'Franču Polinēzija',
'Brunei' => 'Bruneja',
'Lebanon' => 'Libāna',
'Djibouti' => 'Džibutija',
'Azerbaijan' => 'Azerbaidžāna',
'Cuba' => 'Kuba',
'Czech Republic' => 'Čehija',
'Saint Lucia' => 'Sentlūsija',
'Mauritania' => 'Mauritānija',
'Guernsey' => 'Gērnsija',
'Mayotte' => 'Majota',
'Israel' => 'Izraēla',
'San Marino' => 'Sanmarīno',
'Australia' => 'Austrālija',
'Tajikistan' => 'Tadžikistāna',
'Dronning Maud Land' => 'Droninga Maudas zeme',
'Cameroon' => 'Kamerūna',
'Gibraltar' => 'Gibraltārs',
'Cyprus' => 'Kipra',
'Northern Mariana Islands' => 'Ziemeļu Marianas salas',
'Malaysia' => 'Malaizija',
'Oman' => 'Omāna',
'Iceland' => 'Islande',
'Armenia' => 'Armēnija',
'Gabon' => 'Gabona',
'Metropolitan France' => 'Francijas metropolitānā daļa',
'Luxembourg' => 'Luksemburga',
'Hong Kong SAR China' => 'Honkongas Ķīnas īpašās pārvaldes apgabals',
'Brazil' => 'Brazīlija',
'Turks and Caicos Islands' => 'Tērksas un Kaikosas salas',
'Algeria' => 'Alžīrija',
'Pacific Islands Trust Territory' => 'Klusā okeāna salu uzticības teritorija',
'Slovenia' => 'Slovēnija',
'Jersey' => 'Džērsija',
'Antigua and Barbuda' => 'Antigva un Barbuda',
'Ecuador' => 'Ekvadora',
'Colombia' => 'Kolumbija',
'Moldova' => 'Moldova',
'Cocos [Keeling] Islands' => 'Kokosu [Kīlinga] salas',
'Vanuatu' => 'Vanuatu',
'Italy' => 'Itālija',
'Honduras' => 'Hondurasa',
'Antarctica' => 'Antarktika',
'Nauru' => 'Nauru',
'Haiti' => 'Haiti',
'Afghanistan' => 'Afganistāna',
'Burundi' => 'Burundi',
'Singapore' => 'Singapūra',
'French Guiana' => 'Franču Gviāna',
'American Samoa' => 'Amerikāņu Samoa',
'Christmas Island' => 'Ziemsvētku sala',
'East Germany' => 'Austrumvācija',
'Vatican City' => 'Vatikāna pilsētvalsts',
'Russia' => 'Krievija',
'Macau SAR China' => 'Makao Ķīnas īpašās pārvaldes apgabals',
'Netherlands' => 'Nīderlande',
'China' => 'Ķīna',
'British Antarctic Territory' => 'Britu Antarktikas teritorija',
'Martinique' => 'Martinika',
'Saint Pierre and Miquelon' => 'Senpjēra un Mikelona',
'Kyrgyzstan' => 'Kirgīzija',
'Bhutan' => 'Butāna',
'Romania' => 'Rumānija',
'Togo' => 'Togo',
'Philippines' => 'Filipīnas',
'Uzbekistan' => 'Uzbekistāna',
'Myanmar [Burma]' => 'Mjanma [Birma]',
'British Virgin Islands' => 'Britu Virdžīnu salas',
'Zimbabwe' => 'Zimbabve',
'Midway Islands' => 'Midveja salas',
'Congo - Kinshasa' => 'Kongo - Kinšasa',
'British Indian Ocean Territory' => 'Britu Indijas okeāna teritorija',
'Montenegro' => 'Melnkalne',
'Dominica' => 'Dominika',
'Indonesia' => 'Indonēzija',
'Benin' => 'Benina',
'Angola' => 'Angola',
'Sudan' => 'Sudāna',
'Canton and Enderbury Islands' => 'Kantona un Enderberijas salas',
'Congo - Brazzaville' => 'Kongo - Brazavila',
'Portugal' => 'Portugāle',
'New Caledonia' => 'Jaunkaledonija',
'Grenada' => 'Grenāda',
'North Korea' => 'Ziemeļkoreja',
'Greece' => 'Grieķija',
'Cayman Islands' => 'Kaimanu salas',
'Mongolia' => 'Mongolija',
'Latvia' => 'Latvija',
'Iran' => 'Irāna',
'Morocco' => 'Maroka',
'Guyana' => 'Gajāna',
'Guatemala' => 'Gvatemala',
'U.S. Minor Outlying Islands' => 'ASV Mazās Aizjūras salas',
'Iraq' => 'Irāka',
'Chile' => 'Čīle',
'Nepal' => 'Nepāla',
'Heard Island and McDonald Islands' => 'Hērda sala un Makdonalda salas',
'Isle of Man' => 'Mena sala',
'Ukraine' => 'Ukraina',
'Tanzania' => 'Tanzānija',
'Ghana' => 'Gana',
'Anguilla' => 'Angilja',
'India' => 'Indija',
'Canada' => 'Kanāda',
'Maldives' => 'Maldīvija',
'Turkey' => 'Turcija',
'Belgium' => 'Beļģija',
'Taiwan' => 'Taivāna',
'Trinidad and Tobago' => 'Trinidāda un Tobāgo',
'South Africa' => 'Dienvidāfrika',
'Bermuda' => 'Bermudu salas',
'Central African Republic' => 'Centrālāfrikas Republika',
'Jamaica' => 'Jamaika',
'Peru' => 'Peru',
'Turkmenistan' => 'Turkmenistāna',
'Germany' => 'Vācija',
'Panama Canal Zone' => 'Panamas kanāla zona',
'Tokelau' => 'Tokelau',
'Fiji' => 'Fidži',
'United States' => 'Amerikas Savienotās Valstis',
'Guinea' => 'Gvineja',
'Somalia' => 'Somālija',
'Chad' => 'Čada',
'Pitcairn Islands' => 'Pitkērna',
'Thailand' => 'Taizeme',
'Equatorial Guinea' => 'Ekvatoriālā Gvineja',
'Kiribati' => 'Kiribati',
'Costa Rica' => 'Kostarika',
'Vietnam' => 'Vjetnama',
'São Tomé and Príncipe' => 'Santome un Prinsipi',
'Kuwait' => 'Kuveita',
'Nigeria' => 'Nigērija',
'Croatia' => 'Horvātija',
'Uruguay' => 'Urugvaja',
'Sri Lanka' => 'Šrilanka',
'Cook Islands' => 'Kuka salas',
'Timor-Leste' => 'Austrumtimora',
'United Kingdom' => 'Apvienotā Karaliste',
'Switzerland' => 'Šveice',
'Samoa' => 'Samoa',
'Spain' => 'Spānija',
'Liberia' => 'Libērija',
'Venezuela' => 'Venecuēla',
'Burkina Faso' => 'Burkinafaso',
'Swaziland' => 'Svazilenda',
'Palau' => 'Palau',
'Saint Barthélemy' => 'Senbartelmī',
'Estonia' => 'Igaunija',
'French Southern and Antarctic Territories' => 'Francijas Dienvidjūru un Antarktikas teritorijas',
'Wallis and Futuna' => 'Volisa un Futuna',
'Niue' => 'Niue',
'Austria' => 'Austrija',
'South Korea' => 'Dienvidkoreja',
'North Vietnam' => 'Ziemeļvjetnama',
'Mozambique' => 'Mozambika',
'El Salvador' => 'Salvadora',
'Monaco' => 'Monako',
'Guam' => 'Guama',
'Lesotho' => 'Lesoto',
'Tonga' => 'Tonga',
'Unknown or Invalid Region' => 'Nezināms vai nederīgs reģions',
'Western Sahara' => 'Rietumsahāra',
'Hungary' => 'Ungārija',
'Japan' => 'Japāna',
'Belarus' => 'Baltkrievija',
'Mauritius' => 'Maurīcija',
'Bouvet Island' => 'Buvē sala',
'Norfolk Island' => 'Norfolkas sala',
'Albania' => 'Albānija',
'New Zealand' => 'Jaunzēlande',
'People\'s Democratic Republic of Yemen' => 'Jemenas Tautas Demokrātiskā Republika',
'Senegal' => 'Senegāla',
'Macedonia' => 'Maķedonija',
'U.S. Miscellaneous Pacific Islands' => 'ASV Klusā okeāna salas',
'Ethiopia' => 'Etiopija',
'Egypt' => 'Ēģipte',
'Sierra Leone' => 'Sjerraleone',
'Bolivia' => 'Bolīvija',
'Wake Island' => 'Veika sala',
'Malta' => 'Malta',
'Saudi Arabia' => 'Saūda Arābija',
'Cape Verde' => 'Kaboverde',
'Pakistan' => 'Pakistāna',
'Gambia' => 'Gambija',
'Qatar' => 'Katara',
'Ireland' => 'Īrija',
'Serbia and Montenegro' => 'Serbija un Melnkalne',
'U.S. Virgin Islands' => 'ASV Virdžīnas',
'Slovakia' => 'Slovākija',
'Lithuania' => 'Lietuva',
'Serbia' => 'Serbija',
'France' => 'Francija',
'Bosnia and Herzegovina' => 'Bosnija un Hercegovina',
'Niger' => 'Nigēra',
'Rwanda' => 'Ruanda',
'French Southern Territories' => 'Francijas Dienvidjūru teritorijas',
'Bangladesh' => 'Bangladeša',
'Nicaragua' => 'Nikaragva',
'Barbados' => 'Barbadosa',
'Norway' => 'Norvēģija',
'Saint Vincent and the Grenadines' => 'Sentvinsenta un Grenadīnas',
'Botswana' => 'Botsvāna',
'Dominican Republic' => 'Dominikānas Republika',
'Denmark' => 'Dānija',
'Uganda' => 'Uganda',
'Mexico' => 'Meksika',
'Micronesia' => 'Mikronēzija',
'Suriname' => 'Surinama',
'Greenland' => 'Grenlande',
'Saint Helena' => 'Sv.Helēna',
];
'country_code_with_name' => [
'+1' => 'United States',
'+7' => 'Russia',
'+20' => 'Egypt',
'+27' => 'South Africa',
'+30' => 'Greece',
'+31' => 'Netherlands',
'+32' => 'Belgium',
'+33' => 'France',
'+34' => 'Spain',
'+36' => 'Hungary',
'+39' => 'Italy',
'+40' => 'Romania',
'+41' => 'Switzerland',
'+43' => 'Austria',
'+44' => 'United Kingdom',
'+45' => 'Denmark',
'+46' => 'Sweden',
'+48' => 'Poland',
'+49' => 'Germany',
'+51' => 'Peru',
'+52' => 'Mexico',
'+54' => 'Argentina',
'+55' => 'Brazil',
'+56' => 'Chile',
'+57' => 'Colombia',
'+58' => 'Venezuela',
'+60' => 'Malaysia',
'+61' => 'Australia',
'+62' => 'Indonesia',
'+63' => 'Philippines',
'+64' => 'New Zealand',
'+65' => 'Singapore',
'+66' => 'Thailand',
'+81' => 'Japan',
'+82' => 'South Korea',
'+84' => 'Vietnam',
'+86' => 'China',
'+90' => 'Turkey',
'+91' => 'India',
'+92' => 'Pakistan',
'+93' => 'Afghanistan',
'+94' => 'Sri Lanka',
'+95' => 'Myanmar',
'+98' => 'Iran',
'+143' => 'Canada',
'+212' => 'Morocco',
'+216' => 'Tunisia',
'+225' => 'Cote d\'Ivoire',
'+234' => 'Nigeria',
'+254' => 'Kenya',
'+420' => 'Czech Republic',
'+591' => 'Bolivia',
'+673' => 'Brunei',
'+678' => 'Vanuatu',
'+679' => 'Fiji',
'+682' => 'Cook Islands',
'+683' => 'Niue',
'+685' => 'Western Samoa',
'+687' => 'American Samoa',
'+688' => 'Nauru',
'+689' => 'Kiribati',
'+691' => 'Marshall Islands',
'+692' => 'Micronesia (Federated States of)',
'+694' => 'Palau',
'+698' => 'Easter Island',
'+850' => 'North Korea',
'+852' => 'Hong Kong',
'+853' => 'Macau',
'+855' => 'Cambodia',
'+886' => 'Taiwan',
'+960' => 'Maldives',
'+965' => 'Kuwait',
'+966' => 'Saudi Arabia',
'+967' => 'Yemen',
'+968' => 'Oman',
'+970' => 'Palestine',
'+971' => 'United Arab Emirates',
'+974' => 'Qatar',
'+977' => 'Nepal',
'+975' => 'Bhutan',
'+976' => 'Mongolia',
'+977' => 'Nepal',
'+992' => 'Tajikistan',
'+993' => 'Turkmenistan',
'+994' => 'Azerbaijan',
'+995' => 'Georgia',
'+996' => 'Kyrgyzstan',
'+998' => 'Uzbekistan',
],
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!