WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru

Код для добавления всех стран мира в таксономию country (с переводами)

Код ниже, добавляет все страны мира в таксономию country, с переводами на 5 языков. Таксономия должна быть уже зарегистрирована.

Переводы добавляются в метаполя с названиями name_en, name_ru и т.д.

В метаполе ccode (country_code) добавляется код страны (двухбуквенное обозначение страны: RU, US, ...).

## Заполняет таксономию country всеми странами мира, с переводами.
## @ver 1.1
if( isset($_GET['create_countries_terms']) ){

	function create_countries_terms(){

		$taxname         = 'country';
		$transl_to_langs = [ 'en', 'ru', 'de', 'fr', 'es' ];

		$country_code_name = [
			'AX' => [
				'asciiname' => 'Ahvenanmaan Laeaeni',
				'en'        => 'Åland Islands',
				'ru'        => 'Аландские острова',
				'de'        => 'Alandinseln',
				'es'        => 'Islas de Åland',
				'fr'        => 'Îles Åland',
			],
			'AS' => [
				'asciiname' => 'American Samoa, Territory of',
				'en'        => 'American Samoa',
				'ru'        => 'Американское Самоа',
				'de'        => 'Amerikanisch-Samoa',
				'es'        => 'Samoa Americana',
				'fr'        => 'Samoa américaines',
			],
			'AI' => [
				'asciiname' => 'Anguilla',
				'en'        => 'Anguilla',
				'ru'        => 'Ангилья',
				'de'        => 'Anguilla',
				'es'        => 'Anguila',
				'fr'        => 'Anguilla',
			],
			'AQ' => [
				'asciiname' => 'Antarctica',
				'en'        => 'Antarctica',
				'ru'        => 'Антарктида',
				'de'        => 'Antarktis',
				'es'        => 'Antártida',
				'fr'        => 'Antarctique',
			],
			'AG' => [
				'asciiname' => 'Antigua and Barbuda',
				'en'        => 'Antigua and Barbuda',
				'ru'        => 'Антигуа и Барбуда',
				'de'        => 'Antigua und Barbuda',
				'es'        => 'Antigua y Barbuda',
				'fr'        => 'Antigua et Barbuda',
			],
			'EG' => [
				'asciiname' => 'Arab Republic of Egypt',
				'en'        => 'Egypt',
				'ru'        => 'Египет',
				'de'        => 'Ägypten',
				'es'        => 'Egipto',
				'fr'        => 'Égypte',
			],
			'AR' => [
				'asciiname' => 'Argentine Republic',
				'en'        => 'Argentina',
				'ru'        => 'Аргентина',
				'de'        => 'Argentinien',
				'es'        => 'Argentina',
				'fr'        => 'Argentine',
			],
			'AW' => [
				'asciiname' => 'Aruba',
				'en'        => 'Aruba',
				'ru'        => 'Аруба',
				'de'        => 'Aruba',
				'es'        => 'Aruba',
				'fr'        => 'Aruba',
			],
			'GG' => [
				'asciiname' => 'Bailiwick of Guernsey',
				'en'        => 'Guernsey',
				'ru'        => 'Гернси',
				'de'        => 'Guernsey',
				'es'        => 'Guernsey',
				'fr'        => 'Bailliage de Guernesey',
			],
			'JE' => [
				'asciiname' => 'Bailiwick of Jersey',
				'en'        => 'Jersey',
				'ru'        => 'Джерси',
				'de'        => 'Jersey',
				'es'        => 'Jersey',
				'fr'        => 'Bailliage de Jersey',
			],
			'BD' => [
				'asciiname' => 'Bangladesh',
				'en'        => 'Bangladesh',
				'ru'        => 'Бангладеш',
				'de'        => 'Bangladesch',
				'es'        => 'Bangladés',
				'fr'        => 'Pakistan oriental',
			],
			'BB' => [
				'asciiname' => 'Barbados',
				'en'        => 'Barbados',
				'ru'        => 'Барбадос',
				'de'        => 'Barbados',
				'es'        => 'Barbados',
				'fr'        => 'Barbade',
			],
			'BZ' => [
				'asciiname' => 'Belize',
				'en'        => 'Belize',
				'ru'        => 'Белиз',
				'de'        => 'Belize',
				'es'        => 'Belice',
				'fr'        => 'Belize',
			],
			'BM' => [
				'asciiname' => 'Bermuda',
				'en'        => 'Bermuda',
				'ru'        => 'Бермудские о-ва',
				'de'        => 'Bermuda',
				'es'        => 'Bermudas',
				'fr'        => 'Bermudes',
			],
			'VE' => [
				'asciiname' => 'Bolivarian Republic of Venezuela',
				'en'        => 'Venezuela',
				'ru'        => 'Венесуэла',
				'de'        => 'Venezuela',
				'es'        => 'Venezuela',
				'fr'        => 'Venezuela',
			],
			'BQ' => [
				'asciiname' => 'Bonaire, Saint Eustatius and Saba',
				'en'        => 'BES Islands',
				'ru'        => 'Бонайре Синт-Эстатиус и Саба',
				'de'        => 'Bonaire',
				'es'        => 'Bonaire',
				'fr'        => 'Bonaire, Saint-Eustache et Saba',
			],
			'BA' => [
				'asciiname' => 'Bosnia and Herzegovina',
				'en'        => 'Bosnia and Herzegovina',
				'ru'        => 'Босния',
				'de'        => 'Bosnien und Herzegowina',
				'es'        => 'Bosnia y Herzegovina',
				'fr'        => 'Bosnie-Herzégovine',
			],
			'IO' => [
				'asciiname' => 'British Indian Ocean Territory',
				'en'        => 'British Indian Ocean Territory',
				'ru'        => 'Британская территория в Индийском океане',
				'de'        => 'Britisches Territorium im Indischen Ozean',
				'es'        => 'Territorio Británico del Océano Índico',
				'fr'        => 'Territoire britannique de l`océan Indien',
			],
			'VG' => [
				'asciiname' => 'British Virgin Islands',
				'en'        => 'British Virgin Islands',
				'ru'        => 'Британские Виргинские о-ва',
				'de'        => 'Britische Jungferninseln',
				'es'        => 'Islas Vírgenes Británicas',
				'fr'        => 'Îles Vierges britanniques',
			],
			'BN' => [
				'asciiname' => 'Brunei Darussalam',
				'en'        => 'Brunei Darussalam',
				'ru'        => 'Бруней Даруссалам',
				'de'        => 'Brunei',
				'es'        => 'Brunéi',
				'fr'        => 'Brunéi Darussalam',
			],
			'BF' => [
				'asciiname' => 'Burkina Faso',
				'en'        => 'Burkina Faso',
				'ru'        => 'Буркина Фасо',
				'de'        => 'Burkina Faso',
				'es'        => 'Burkina Fasso (Alto Volta)',
				'fr'        => 'Burkina Faso',
			],
			'CA' => [
				'asciiname' => 'Canada',
				'en'        => 'Canada',
				'ru'        => 'Канада',
				'de'        => 'Kanada',
				'es'        => 'Canadá',
				'fr'        => 'Canada',
			],
			'KY' => [
				'asciiname' => 'Cayman Islands',
				'en'        => 'Cayman Islands',
				'ru'        => 'Каймановы Острова',
				'de'        => 'Kaimaninseln',
				'es'        => 'Islas Caimán',
				'fr'        => 'Îles Caïmanes',
			],
			'CF' => [
				'asciiname' => 'Central African Republic',
				'en'        => 'Central African Republic',
				'ru'        => 'ЦАР',
				'de'        => 'Zentralafrikanische Republik',
				'es'        => 'República Centroafricana',
				'fr'        => 'Centrafrique',
			],
			'GY' => [
				'asciiname' => 'Co-operative Republic of Guyana',
				'en'        => 'Guyana',
				'ru'        => 'Гайана',
				'de'        => 'Guyana',
				'es'        => 'Guyana',
				'fr'        => 'Guyane britannique',
			],
			'AU' => [
				'asciiname' => 'Commonwealth of Australia',
				'en'        => 'Australia',
				'ru'        => 'Австралия',
				'de'        => 'Australien',
				'es'        => 'Australia',
				'fr'        => 'Australie',
			],
			'BS' => [
				'asciiname' => 'Commonwealth of The Bahamas',
				'en'        => 'Bahamas',
				'ru'        => 'Багамы',
				'de'        => 'Bahamas',
				'es'        => 'Bahamas',
				'fr'        => 'Bahamas',
			],
			'MP' => [
				'asciiname' => 'Commonwealth of the Northern Mariana Islands',
				'en'        => 'Northern Mariana Islands',
				'ru'        => 'Северные Марианские о-ва',
				'de'        => 'Nördliche Marianen',
				'es'        => 'Islas Marianas del Norte',
				'fr'        => 'Îles Mariannes du Nord',
			],
			'CK' => [
				'asciiname' => 'Cook Islands',
				'en'        => 'Cook Islands',
				'ru'        => 'Острова Кука',
				'de'        => 'Cookinseln',
				'es'        => 'Islas Cook',
				'fr'        => 'Iles Cook',
			],
			'CW' => [
				'asciiname' => 'Country of Curacao',
				'en'        => 'Country of Curaçao',
				'ru'        => 'Кюрасао',
				'de'        => 'Curaçao',
				'es'        => 'País de Curazao',
				'fr'        => 'Curaçao',
			],
			'CZ' => [
				'asciiname' => 'Czechia',
				'en'        => 'Czechia',
				'ru'        => 'Чехия',
				'de'        => 'Tschechien',
				'es'        => 'Chequia',
				'fr'        => 'Tchéquie',
			],
			'KP' => [
				'asciiname' => 'Democratic People\'s Republic of Korea',
				'en'        => 'Korea',
				'ru'        => 'Северная Корея',
				'de'        => 'Nordkorea',
				'es'        => 'Corea del Norte',
				'fr'        => 'Corée du Nord',
			],
			'CD' => [
				'asciiname' => 'Democratic Republic of the Congo',
				'en'        => 'Congo',
				'ru'        => 'Конго',
				'de'        => 'Kongo',
				'es'        => 'Congo',
				'fr'        => 'Congo-Kinshasa',
			],
			'TL' => [
				'asciiname' => 'Democratic Republic of Timor-Leste',
				'en'        => 'Timor-Leste',
				'ru'        => 'Восточный Тимор',
				'de'        => 'Timor-Leste',
				'es'        => 'Timor Oriental',
				'fr'        => 'Timor-Leste',
			],
			'LK' => [
				'asciiname' => 'Democratic Socialist Republic of Sri Lanka',
				'en'        => 'Sri Lanka',
				'ru'        => 'Шри-Ланка',
				'de'        => 'Sri Lanka',
				'es'        => 'Ceilán',
				'fr'        => 'Sri Lanka',
			],
			'DM' => [
				'asciiname' => 'Dominica',
				'en'        => 'Commonwealth of Dominica',
				'ru'        => 'Остров Доминика',
				'de'        => 'Dominica',
				'es'        => 'Dominica',
				'fr'        => 'Dominique',
			],
			'DO' => [
				'asciiname' => 'Dominican Republic',
				'en'        => 'Dominican Republic',
				'ru'        => 'Доминиканская Республика',
				'de'        => 'Dominikanische Republik',
				'es'        => 'Santo Domingo',
				'fr'        => 'Dominicaine, république',
			],
			'FK' => [
				'asciiname' => 'Falkland Islands (Islas Malvinas)',
				'en'        => 'Falkland Islands',
				'ru'        => 'Фолклендские о-ва',
				'de'        => 'Falklandinseln',
				'es'        => 'Islas Falkland (Malvinas)',
				'fr'        => 'Îles Falkland',
			],
			'FO' => [
				'asciiname' => 'Faroe Islands',
				'en'        => 'Faroe Islands',
				'ru'        => 'Фарерские о-ва',
				'de'        => 'Färöer-Inseln',
				'es'        => 'Islas Feroe',
				'fr'        => 'Îles Féroé',
			],
			'ET' => [
				'asciiname' => 'Federal Democratic Republic of Ethiopia',
				'en'        => 'Ethiopia',
				'ru'        => 'Эфиопия',
				'de'        => 'Äthiopien',
				'es'        => 'Etiopía',
				'fr'        => 'Éthiopie',
			],
			'NP' => [
				'asciiname' => 'Federal Democratic Republic of Nepal',
				'en'        => 'Nepal',
				'ru'        => 'Непал',
				'de'        => 'Nepal',
				'es'        => 'Nepal',
				'fr'        => 'Népal',
			],
			'DE' => [
				'asciiname' => 'Federal Republic of Germany',
				'en'        => 'Germany',
				'ru'        => 'Германия',
				'de'        => 'Deutschland',
				'es'        => 'Alemania',
				'fr'        => 'Allemagne',
			],
			'NG' => [
				'asciiname' => 'Federal Republic of Nigeria',
				'en'        => 'Nigeria',
				'ru'        => 'Нигерия',
				'de'        => 'Nigeria',
				'es'        => 'Nigeria',
				'fr'        => 'Nigeria',
			],
			'FM' => [
				'asciiname' => 'Federated States of Micronesia',
				'en'        => 'Micronesia',
				'ru'        => 'Микронезия',
				'de'        => 'Mikronesien',
				'es'        => 'Micronesia',
				'fr'        => 'États fédérés de Micronésie',
			],
			'KN' => [
				'asciiname' => 'Federation of Saint Kitts and Nevis',
				'en'        => 'St Kitts and Nevis',
				'ru'        => 'Сент-Киттс и Невис',
				'de'        => 'Saint Kitts und Nevis',
				'es'        => 'San Cristóbal y Nevis',
				'fr'        => 'Saint-Christophe-et-Niévès',
			],
			'BR' => [
				'asciiname' => 'Federative Republic of Brazil',
				'en'        => 'Brazil',
				'ru'        => 'Бразилия',
				'de'        => 'Brasilien',
				'es'        => 'Brasil',
				'fr'        => 'Brésil',
			],
			'GA' => [
				'asciiname' => 'Gabonese Republic',
				'en'        => 'Gabonese Republic',
				'ru'        => 'Габон',
				'de'        => 'Gabun',
				'es'        => 'Gabón',
				'fr'        => 'Gabon',
			],
			'GM' => [
				'asciiname' => 'Gambia',
				'en'        => 'Gambia',
				'ru'        => 'Гамбия',
				'de'        => 'Gambia',
				'es'        => 'Gambia',
				'fr'        => 'Gambie',
			],
			'GE' => [
				'asciiname' => 'Georgia',
				'en'        => 'Georgia',
				'ru'        => 'Грузия',
				'de'        => 'Georgien',
				'es'        => 'Georgia',
				'fr'        => 'Géorgie',
			],
			'GI' => [
				'asciiname' => 'Gibraltar',
				'en'        => 'Gibraltar',
				'ru'        => 'Гибралтар',
				'de'        => 'Gibraltar',
				'es'        => 'Gibraltar',
				'fr'        => 'Gibraltar',
			],
			'LU' => [
				'asciiname' => 'Grand Duchy of Luxembourg',
				'en'        => 'Grand Duchy of Luxembourg',
				'ru'        => 'Люксембург',
				'de'        => 'Großherzogtum Luxemburg',
				'es'        => 'Luxemburgo',
				'fr'        => 'Grand-Duché de Luxembourg',
			],
			'GL' => [
				'asciiname' => 'Greenland',
				'en'        => 'Greenland',
				'ru'        => 'Гренландия',
				'de'        => 'Grönland',
				'es'        => 'Groenlandia',
				'fr'        => 'Groenland',
			],
			'GD' => [
				'asciiname' => 'Grenada',
				'en'        => 'Grenada',
				'ru'        => 'Гренада',
				'de'        => 'Grenada',
				'es'        => 'Granada',
				'fr'        => 'Grenade',
			],
			'GP' => [
				'asciiname' => 'Guadeloupe',
				'en'        => 'Guadeloupe',
				'ru'        => 'Гваделупа',
				'de'        => 'Guadeloupe',
				'es'        => 'Guadalupe',
				'fr'        => 'Guadeloupe',
			],
			'GU' => [
				'asciiname' => 'Guam',
				'en'        => 'Guam',
				'ru'        => 'Гуам',
				'de'        => 'Guam',
				'es'        => 'Guam',
				'fr'        => 'Guam',
			],
			'GF' => [
				'asciiname' => 'Guyane',
				'en'        => 'French Guiana',
				'ru'        => 'Французская Гвиана',
				'de'        => 'Französisch-Guayana',
				'es'        => 'Guayana Francesa',
				'fr'        => 'Guyane Française',
			],
			'JO' => [
				'asciiname' => 'Hashemite Kingdom of Jordan',
				'en'        => 'Jordan',
				'ru'        => 'Иордания',
				'de'        => 'Jordanien',
				'es'        => 'Jordania',
				'fr'        => 'Jordanie',
			],
			'GR' => [
				'asciiname' => 'Hellenic Republic',
				'en'        => 'Greece',
				'ru'        => 'Греция',
				'de'        => 'Griechenland',
				'es'        => 'Grecia',
				'fr'        => 'Grèce',
			],
			'HK' => [
				'asciiname' => 'Hong Kong Special Administrative Region',
				'en'        => 'Hong Kong',
				'ru'        => 'Гонконг',
				'de'        => 'Hongkong',
				'es'        => 'Hong Kong',
				'fr'        => 'Hong Kong',
			],
			'HU' => [
				'asciiname' => 'Hungary',
				'en'        => 'Hungary',
				'ru'        => 'Венгрия',
				'de'        => 'Ungarn',
				'es'        => 'Hungría',
				'fr'        => 'Hongrie',
			],
			'PG' => [
				'asciiname' => 'Independent State of Papua New Guinea',
				'en'        => 'Papua New Guinea',
				'ru'        => 'Папуа  Новая Гвинея',
				'de'        => 'Papua-Neuguinea',
				'es'        => 'Papúa Nueva Guinea',
				'fr'        => 'Papouasie-Nouvelle Guinée',
			],
			'WS' => [
				'asciiname' => 'Independent State of Samoa',
				'en'        => 'Samoa',
				'ru'        => 'Самоа',
				'de'        => 'Samoa',
				'es'        => 'Samoa',
				'fr'        => 'Samoa',
			],
			'IE' => [
				'asciiname' => 'Ireland',
				'en'        => 'Ireland',
				'ru'        => 'Ирландия',
				'de'        => 'Irland',
				'es'        => 'Irlanda',
				'fr'        => 'Irlande',
			],
			'AF' => [
				'asciiname' => 'Islamic Republic of Afghanistan',
				'en'        => 'Afghanistan',
				'ru'        => 'Афганистан',
				'de'        => 'Afghanistan',
				'es'        => 'Afganistán',
				'fr'        => 'Afghanistan',
			],
			'IR' => [
				'asciiname' => 'Islamic Republic of Iran',
				'en'        => 'Iran',
				'ru'        => 'Иран',
				'de'        => 'Iran',
				'es'        => 'Irán',
				'fr'        => 'Iran',
			],
			'MR' => [
				'asciiname' => 'Islamic Republic of Mauritania',
				'en'        => 'Mauritania',
				'ru'        => 'Мавритания',
				'de'        => 'Mauretanien',
				'es'        => 'Mauritania',
				'fr'        => 'Mauritanie',
			],
			'PK' => [
				'asciiname' => 'Islamic Republic of Pakistan',
				'en'        => 'Pakistan',
				'ru'        => 'Пакистан',
				'de'        => 'Pakistan',
				'es'        => 'Pakistán',
				'fr'        => 'Pakistan',
			],
			'IM' => [
				'asciiname' => 'Isle of Man',
				'en'        => 'Isle of Man',
				'ru'        => 'Мэн о-в',
				'de'        => 'Insel Man',
				'es'        => 'Isla de Man',
				'fr'        => 'Île de Man',
			],
			'JM' => [
				'asciiname' => 'Jamaica',
				'en'        => 'Jamaica',
				'ru'        => 'Ямайка',
				'de'        => 'Jamaika',
				'es'        => 'Jamaica',
				'fr'        => 'Jamaïque',
			],
			'JP' => [
				'asciiname' => 'Japan',
				'en'        => 'Japan',
				'ru'        => 'Япония',
				'de'        => 'Japan',
				'es'        => 'Japón',
				'fr'        => 'Japon',
			],
			'BH' => [
				'asciiname' => 'Kingdom of Bahrain',
				'en'        => 'Bahrain',
				'ru'        => 'Бахрейн',
				'de'        => 'Bahrain',
				'es'        => 'Bahréin',
				'fr'        => 'Bahreïn',
			],
			'BE' => [
				'asciiname' => 'Kingdom of Belgium',
				'en'        => 'Belgium',
				'ru'        => 'Бельгия',
				'de'        => 'Königreich Belgien',
				'es'        => 'Bélgica',
				'fr'        => 'Royaume de Belgique',
			],
			'BT' => [
				'asciiname' => 'Kingdom of Bhutan',
				'en'        => 'Bhutan',
				'ru'        => 'Бутан',
				'de'        => 'Bhutan',
				'es'        => 'Bután',
				'fr'        => 'Bhoutan',
			],
			'KH' => [
				'asciiname' => 'Kingdom of Cambodia',
				'en'        => 'Democratic Cambodia',
				'ru'        => 'Камбоджа',
				'de'        => 'Kambodscha',
				'es'        => 'Camboya',
				'fr'        => 'République Khmère',
			],
			'DK' => [
				'asciiname' => 'Kingdom of Denmark',
				'en'        => 'Denmark',
				'ru'        => 'Дания',
				'de'        => 'Dänemark',
				'es'        => 'Dinamarca',
				'fr'        => 'Danemark',
			],
			'LS' => [
				'asciiname' => 'Kingdom of Lesotho',
				'en'        => 'Lesotho',
				'ru'        => 'Лесото',
				'de'        => 'Lesotho',
				'es'        => 'Lesoto',
				'fr'        => 'Lesotho',
			],
			'MA' => [
				'asciiname' => 'Kingdom of Morocco',
				'en'        => 'Morocco',
				'ru'        => 'Марокко',
				'de'        => 'Marokko',
				'es'        => 'Marruecos',
				'fr'        => 'Royaume du Maroc',
			],
			'NO' => [
				'asciiname' => 'Kingdom of Norway',
				'en'        => 'Norway',
				'ru'        => 'Норвегия',
				'de'        => 'Norwegen',
				'es'        => 'Noruega',
				'fr'        => 'Norvège',
			],
			'SA' => [
				'asciiname' => 'Kingdom of Saudi Arabia',
				'en'        => 'Saudi Arabia',
				'ru'        => 'Саудовская Аравия',
				'de'        => 'Saudi-Arabien',
				'es'        => 'Arabia Saudita',
				'fr'        => 'Arabie saoudite',
			],
			'ES' => [
				'asciiname' => 'Kingdom of Spain',
				'en'        => 'Spain',
				'ru'        => 'Испания',
				'de'        => 'Spanien',
				'es'        => 'España',
				'fr'        => 'Espagne',
			],
			'SZ' => [
				'asciiname' => 'Kingdom of Swaziland',
				'en'        => 'Swaziland',
				'ru'        => 'Свазиленд',
				'de'        => 'Swasiland',
				'es'        => 'Swazilandia',
				'fr'        => 'Swaziland',
			],
			'SE' => [
				'asciiname' => 'Kingdom of Sweden',
				'en'        => 'Sweden',
				'ru'        => 'Швеция',
				'de'        => 'Schweden',
				'es'        => 'Suecia',
				'fr'        => 'Suède',
			],
			'TH' => [
				'asciiname' => 'Kingdom of Thailand',
				'en'        => 'Thailand',
				'ru'        => 'Таиланд',
				'de'        => 'Thailand',
				'es'        => 'Siam',
				'fr'        => 'Thaïlande',
			],
			'NL' => [
				'asciiname' => 'Kingdom of the Netherlands',
				'en'        => 'Holland',
				'ru'        => 'Нидерланды',
				'de'        => 'Niederlande',
				'es'        => 'Países Bajos',
				'fr'        => 'Pays-Bas',
			],
			'TO' => [
				'asciiname' => 'Kingdom of Tonga',
				'en'        => 'Tonga',
				'ru'        => 'Тонга',
				'de'        => 'Tonga',
				'es'        => 'Tonga',
				'fr'        => 'Tonga',
			],
			'KG' => [
				'asciiname' => 'Kyrgyz Republic',
				'en'        => 'Kyrgyzstan',
				'ru'        => 'Кыргызстан',
				'de'        => 'Kirgistan',
				'es'        => 'Kirguizistán',
				'fr'        => 'Kirghizistan',
			],
			'LA' => [
				'asciiname' => 'Lao People\'s Democratic Republic',
				'en'        => 'Laos',
				'ru'        => 'Лаос',
				'de'        => 'Laos',
				'es'        => 'Laos',
				'fr'        => 'Laos',
			],
			'LB' => [
				'asciiname' => 'Lebanon',
				'en'        => 'Lebanon',
				'ru'        => 'Ливан',
				'de'        => 'Libanon',
				'es'        => 'Líbano',
				'fr'        => 'Liban',
			],
			'LY' => [
				'asciiname' => 'Libya',
				'en'        => 'Libya',
				'ru'        => 'Ливия',
				'de'        => 'Libysch-Arabische Dschamahirija',
				'es'        => 'Libia, República Árabe',
				'fr'        => 'Libye',
			],
			'MO' => [
				'asciiname' => 'Macau Special Administrative Region',
				'en'        => 'Macao',
				'ru'        => 'Макао',
				'de'        => 'Macau',
				'es'        => 'Macao',
				'fr'        => 'Macao',
			],
			'MY' => [
				'asciiname' => 'Malaysia',
				'en'        => 'Malaysia',
				'ru'        => 'Малайзия',
				'de'        => 'Malaysia',
				'es'        => 'Malasia',
				'fr'        => 'Malaisie',
			],
			'MQ' => [
				'asciiname' => 'Martinique',
				'en'        => 'Martinique',
				'ru'        => 'Мартиника',
				'de'        => 'Martinique',
				'es'        => 'Martinica',
				'fr'        => 'Martinique',
			],
			'YT' => [
				'asciiname' => 'Mayotte',
				'en'        => 'Mayotte',
				'ru'        => 'Майотта',
				'de'        => 'Mayotte',
				'es'        => 'Mayotte',
				'fr'        => 'Mayotte',
			],
			'MX' => [
				'asciiname' => 'Mexico',
				'en'        => 'United Mexican States',
				'ru'        => 'Мексика',
				'de'        => 'Mexiko',
				'es'        => 'Estados Unidos Mexicanos',
				'fr'        => 'Mexique',
			],
			'MN' => [
				'asciiname' => 'Mongolia',
				'en'        => 'Mongolia',
				'ru'        => 'Монголия',
				'de'        => 'Mongolei',
				'es'        => 'Mongolia',
				'fr'        => 'Mongolie',
			],
			'ME' => [
				'asciiname' => 'Montenegro',
				'en'        => 'Montenegro',
				'ru'        => 'Черногория',
				'de'        => 'Montenegro',
				'es'        => 'Montenegro',
				'fr'        => 'Monténégro',
			],
			'MS' => [
				'asciiname' => 'Montserrat',
				'en'        => 'Montserrat',
				'ru'        => 'Монсеррат',
				'de'        => 'Montserrat',
				'es'        => 'Montserrat',
				'fr'        => 'Montserrat',
			],
			'NR' => [
				'asciiname' => 'Nauru',
				'en'        => 'Nauru',
				'ru'        => 'Науру',
				'de'        => 'Nauru',
				'es'        => 'Nauru',
				'fr'        => 'Nauru',
			],
			'NZ' => [
				'asciiname' => 'New Zealand',
				'en'        => 'New Zealand',
				'ru'        => 'Новая Зеландия',
				'de'        => 'Neuseeland',
				'es'        => 'Nueva Zelanda',
				'fr'        => 'Nouvelle-Zélande',
			],
			'NU' => [
				'asciiname' => 'Niue',
				'en'        => 'Niue',
				'ru'        => 'Ниуе',
				'de'        => 'Niue',
				'es'        => 'Isla Niue',
				'fr'        => 'Nioué',
			],
			'NC' => [
				'asciiname' => 'Nouvelle-Caledonie',
				'en'        => 'New Caledonia',
				'ru'        => 'Новая Каледония',
				'de'        => 'Neukaledonien',
				'es'        => 'Nueva Caledonia',
				'fr'        => 'Nouvelle-Calédonie',
			],
			'UY' => [
				'asciiname' => 'Oriental Republic of Uruguay',
				'en'        => 'Uruguay',
				'ru'        => 'Уругвай',
				'de'        => 'Uruguay',
				'es'        => 'Uruguay',
				'fr'        => 'Uruguay',
			],
			'PS' => [
				'asciiname' => 'Palestine',
				'en'        => 'Palestinian Territories',
				'ru'        => 'Палестинские территории',
				'de'        => 'Palästinensische Autonomiegebiete',
				'es'        => 'Territorios Palestinos',
				'fr'        => 'Territoire palestinien',
			],
			'DZ' => [
				'asciiname' => 'People\'s Democratic Republic of Algeria',
				'en'        => 'Algeria',
				'ru'        => 'Алжир',
				'de'        => 'Algerien',
				'es'        => 'Argelia',
				'fr'        => 'Algérie',
			],
			'CN' => [
				'asciiname' => 'People\'s Republic of China',
				'en'        => 'China',
				'ru'        => 'Китай',
				'de'        => 'China',
				'es'        => 'China',
				'fr'        => 'Chine',
			],
			'PN' => [
				'asciiname' => 'Pitcairn, Henderson, Ducie and Oeno Islands',
				'en'        => 'Pitcairn Islands',
				'ru'        => 'Питкэрн',
				'de'        => 'Pitcairn',
				'es'        => 'Islas Pitcairn',
				'fr'        => 'Îles Pitcairn',
			],
			'BO' => [
				'asciiname' => 'Plurinational State of Bolivia',
				'en'        => 'Bolivia',
				'ru'        => 'Боливия',
				'de'        => 'Bolivien',
				'es'        => 'Bolivia',
				'fr'        => 'Bolivie',
			],
			'PF' => [
				'asciiname' => 'Polynesie Francaise',
				'en'        => 'French Polynesia',
				'ru'        => 'Французская Полинезия',
				'de'        => 'Französisch-Polynesien',
				'es'        => 'Polinesia Francesa',
				'fr'        => 'Territoire de la Polynésie Française',
			],
			'PT' => [
				'asciiname' => 'Portuguese Republic',
				'en'        => 'Portugal',
				'ru'        => 'Португалия',
				'de'        => 'Portugal',
				'es'        => 'Portugal',
				'fr'        => 'Portugal',
			],
			'AD' => [
				'asciiname' => 'Principality of Andorra',
				'en'        => 'Andorra',
				'ru'        => 'Андорра',
				'de'        => 'Andorra',
				'es'        => 'Andorra',
				'fr'        => 'Andorre',
			],
			'LI' => [
				'asciiname' => 'Principality of Liechtenstein',
				'en'        => 'Liechtenstein',
				'ru'        => 'Лихтенштейн',
				'de'        => 'Fürstentum Liechtenstein',
				'es'        => 'Liechtenstein',
				'fr'        => 'Liechtenstein',
			],
			'MC' => [
				'asciiname' => 'Principality of Monaco',
				'en'        => 'Monaco',
				'ru'        => 'Монако',
				'de'        => 'Monaco',
				'es'        => 'Mónaco',
				'fr'        => 'Monaco',
			],
			'PR' => [
				'asciiname' => 'Puerto Rico',
				'en'        => 'Commonwealth of Puerto Rico',
				'ru'        => 'Пуэрто-Рико',
				'de'        => 'Puerto Rico',
				'es'        => 'Estado Libre Asociado de Puerto Rico',
				'fr'        => 'Porto Rico',
			],
			'SM' => [
				'asciiname' => 'Repubblica di San Marino',
				'en'        => 'San Marino',
				'ru'        => 'Сан-Марино',
				'de'        => 'San Marino',
				'es'        => 'San Marino',
				'fr'        => 'Saint-Marin',
			],
			'IT' => [
				'asciiname' => 'Repubblica Italiana',
				'en'        => 'Italy',
				'ru'        => 'Италия',
				'de'        => 'Italien',
				'es'        => 'Italia',
				'fr'        => 'Italie',
			],
			'AL' => [
				'asciiname' => 'Republic of Albania',
				'en'        => 'Albania',
				'ru'        => 'Албания',
				'de'        => 'Albanien',
				'es'        => 'Albania',
				'fr'        => 'Albanie',
			],
			'AO' => [
				'asciiname' => 'Republic of Angola',
				'en'        => 'Angola',
				'ru'        => 'Ангола',
				'de'        => 'Angola',
				'es'        => 'Angola',
				'fr'        => 'Angola',
			],
			'AM' => [
				'asciiname' => 'Republic of Armenia',
				'en'        => 'Armenia',
				'ru'        => 'Армения',
				'de'        => 'Armenien',
				'es'        => 'Armenia',
				'fr'        => 'Arménie',
			],
			'AT' => [
				'asciiname' => 'Republic of Austria',
				'en'        => 'Austria',
				'ru'        => 'Австрия',
				'de'        => 'Republik Österreich',
				'es'        => 'Austria',
				'fr'        => 'Autriche',
			],
			'AZ' => [
				'asciiname' => 'Republic of Azerbaijan',
				'en'        => 'Azerbaijan',
				'ru'        => 'Азербайджан',
				'de'        => 'Aserbaidschan',
				'es'        => 'Azerbaiyán',
				'fr'        => 'Azerbaïdjan',
			],
			'BY' => [
				'asciiname' => 'Republic of Belarus',
				'en'        => 'Belarus',
				'ru'        => 'Беларусь',
				'de'        => 'Weißrussland',
				'es'        => 'Bielorrusia',
				'fr'        => 'Bélarus',
			],
			'BJ' => [
				'asciiname' => 'Republic of Benin',
				'en'        => 'Benin',
				'ru'        => 'Бенин',
				'de'        => 'Benin',
				'es'        => 'Benín',
				'fr'        => 'Bénin',
			],
			'BW' => [
				'asciiname' => 'Republic of Botswana',
				'en'        => 'Botswana',
				'ru'        => 'Ботсвана',
				'de'        => 'Botswana',
				'es'        => 'Botsuana',
				'fr'        => 'Botswana',
			],
			'BG' => [
				'asciiname' => 'Republic of Bulgaria',
				'en'        => 'Bulgaria',
				'ru'        => 'Болгария',
				'de'        => 'Bulgarien',
				'es'        => 'Bulgaria',
				'fr'        => 'Bulgarie',
			],
			'BI' => [
				'asciiname' => 'Republic of Burundi',
				'en'        => 'Burundi',
				'ru'        => 'Бурунди',
				'de'        => 'Burundi',
				'es'        => 'Burundi',
				'fr'        => 'Burundi',
			],
			'CV' => [
				'asciiname' => 'Republic of Cabo Verde',
				'en'        => 'Cabo Verde',
				'ru'        => 'Острова Зеленого Мыса',
				'de'        => 'Kapverden',
				'es'        => 'Cabo Verde',
				'fr'        => 'Cap-Vert',
			],
			'CM' => [
				'asciiname' => 'Republic of Cameroon',
				'en'        => 'Cameroon',
				'ru'        => 'Камерун',
				'de'        => 'Kamerun',
				'es'        => 'Camerún',
				'fr'        => 'Cameroun',
			],
			'TD' => [
				'asciiname' => 'Republic of Chad',
				'en'        => 'Chad',
				'ru'        => 'Чад',
				'de'        => 'Tschad',
				'es'        => 'Chad',
				'fr'        => 'Tchad',
			],
			'CL' => [
				'asciiname' => 'Republic of Chile',
				'en'        => 'Chile',
				'ru'        => 'Чили',
				'de'        => 'Chile',
				'es'        => 'Chile',
				'fr'        => 'Chili',
			],
			'CO' => [
				'asciiname' => 'Republic of Colombia',
				'en'        => 'Colombia',
				'ru'        => 'Колумбия',
				'de'        => 'Kolumbien',
				'es'        => 'Colombia',
				'fr'        => 'Colombie',
			],
			'CR' => [
				'asciiname' => 'Republic of Costa Rica',
				'en'        => 'Costa Rica',
				'ru'        => 'Коста-Рика',
				'de'        => 'Costa Rica',
				'es'        => 'Costa Rica',
				'fr'        => 'Costa Rica',
			],
			'CI' => [
				'asciiname' => 'Republic of Cote d\'Ivoire',
				'en'        => 'Ivory Coast',
				'ru'        => 'Кот-дИвуар',
				'de'        => 'Elfenbeinküste',
				'es'        => 'Costa de Marfil',
				'fr'        => 'Côte d`Ivoire',
			],
			'HR' => [
				'asciiname' => 'Republic of Croatia',
				'en'        => 'Croatia',
				'ru'        => 'Хорватия',
				'de'        => 'Kroatien',
				'es'        => 'Croacia',
				'fr'        => 'Croatie',
			],
			'CU' => [
				'asciiname' => 'Republic of Cuba',
				'en'        => 'Cuba',
				'ru'        => 'Куба',
				'de'        => 'Kuba',
				'es'        => 'Cuba',
				'fr'        => 'Cuba',
			],
			'CY' => [
				'asciiname' => 'Republic of Cyprus',
				'en'        => 'Cyprus',
				'ru'        => 'Кипр',
				'de'        => 'Zypern',
				'es'        => 'Chipre',
				'fr'        => 'Chypre',
			],
			'DJ' => [
				'asciiname' => 'Republic of Djibouti',
				'en'        => 'Djibouti',
				'ru'        => 'Джибути',
				'de'        => 'Dschibuti',
				'es'        => 'Djibuti',
				'fr'        => 'République de Djibouti',
			],
			'EC' => [
				'asciiname' => 'Republic of Ecuador',
				'en'        => 'Ecuador',
				'ru'        => 'Эквадор',
				'de'        => 'Ecuador',
				'es'        => 'Ecuador',
				'fr'        => 'Équateur',
			],
			'SV' => [
				'asciiname' => 'Republic of El Salvador',
				'en'        => 'El Salvador',
				'ru'        => 'Сальвадор',
				'de'        => 'El Salvador',
				'es'        => 'El Salvador',
				'fr'        => 'Salvador',
			],
			'GQ' => [
				'asciiname' => 'Republic of Equatorial Guinea',
				'en'        => 'Spanish Guinea',
				'ru'        => 'Экваториальная Гвинея',
				'de'        => 'Äquatorialguinea',
				'es'        => 'Guinea Ecuatorial',
				'fr'        => 'Guinée équatoriale',
			],
			'EE' => [
				'asciiname' => 'Republic of Estonia',
				'en'        => 'Estonia',
				'ru'        => 'Эстония',
				'de'        => 'Estland',
				'es'        => 'Estonia',
				'fr'        => 'Estonie',
			],
			'FJ' => [
				'asciiname' => 'Republic of Fiji',
				'en'        => 'Fiji',
				'ru'        => 'Фиджи',
				'de'        => 'Fidschi',
				'es'        => 'Fiyi',
				'fr'        => 'Îles Fidji',
			],
			'FI' => [
				'asciiname' => 'Republic of Finland',
				'en'        => 'Finland',
				'ru'        => 'Финляндия',
				'de'        => 'Finnland',
				'es'        => 'Finlandia',
				'fr'        => 'Finlande',
			],
			'FR' => [
				'asciiname' => 'Republic of France',
				'en'        => 'France',
				'ru'        => 'Франция',
				'de'        => 'Frankreich',
				'es'        => 'Francia',
				'fr'        => 'France',
			],
			'GH' => [
				'asciiname' => 'Republic of Ghana',
				'en'        => 'Ghana',
				'ru'        => 'Гана',
				'de'        => 'Ghana',
				'es'        => 'Ghana',
				'fr'        => 'Ghana',
			],
			'GT' => [
				'asciiname' => 'Republic of Guatemala',
				'en'        => 'Guatemala',
				'ru'        => 'Гватемала',
				'de'        => 'Guatemala',
				'es'        => 'Guatemala',
				'fr'        => 'Guatemala',
			],
			'GN' => [
				'asciiname' => 'Republic of Guinea',
				'en'        => 'Guinea',
				'ru'        => 'Гвинея',
				'de'        => 'Guinea',
				'es'        => 'Guinea',
				'fr'        => 'Guinée',
			],
			'GW' => [
				'asciiname' => 'Republic of Guinea-Bissau',
				'en'        => 'Guinea-Bissau',
				'ru'        => 'Гвинея-Биссау',
				'de'        => 'Guinea-Bissau',
				'es'        => 'Guinea-Bissau',
				'fr'        => 'Guinée-Bissau',
			],
			'HT' => [
				'asciiname' => 'Republic of Haiti',
				'en'        => 'Haiti',
				'ru'        => 'Гаити',
				'de'        => 'Haiti',
				'es'        => 'Haití',
				'fr'        => 'République d`Haïti',
			],
			'HN' => [
				'asciiname' => 'Republic of Honduras',
				'en'        => 'Honduras',
				'ru'        => 'Гондурас',
				'de'        => 'Honduras',
				'es'        => 'Honduras',
				'fr'        => 'Honduras',
			],
			'IS' => [
				'asciiname' => 'Republic of Iceland',
				'en'        => 'Iceland',
				'ru'        => 'Исландия',
				'de'        => 'Island',
				'es'        => 'Islandia',
				'fr'        => 'Islande',
			],
			'IN' => [
				'asciiname' => 'Republic of India',
				'en'        => 'India',
				'ru'        => 'Индия',
				'de'        => 'Indien',
				'es'        => 'Unión India',
				'fr'        => 'Inde',
			],
			'ID' => [
				'asciiname' => 'Republic of Indonesia',
				'en'        => 'Indonesia',
				'ru'        => 'Индонезия',
				'de'        => 'Indonesien',
				'es'        => 'Indonesia',
				'fr'        => 'Indes orientales néerlandaises',
			],
			'IQ' => [
				'asciiname' => 'Republic of Iraq',
				'en'        => 'Iraq',
				'ru'        => 'Ирак',
				'de'        => 'Irak',
				'es'        => 'Iraq',
				'fr'        => 'Iraq',
			],
			'KZ' => [
				'asciiname' => 'Republic of Kazakhstan',
				'en'        => 'Kazakhstan',
				'ru'        => 'Республика Казахстан',
				'de'        => 'Kasachstan',
				'es'        => 'Kazajistán',
				'fr'        => 'Kazakhstan',
			],
			'KE' => [
				'asciiname' => 'Republic of Kenya',
				'en'        => 'Kenya',
				'ru'        => 'Кения',
				'de'        => 'Kenia',
				'es'        => 'Kenia',
				'fr'        => 'Kenya',
			],
			'KI' => [
				'asciiname' => 'Republic of Kiribati',
				'en'        => 'Kiribati',
				'ru'        => 'Кирибати',
				'de'        => 'Kiribati',
				'es'        => 'Kiribati',
				'fr'        => 'Kiribati',
			],
			'KR' => [
				'asciiname' => 'Republic of Korea',
				'en'        => 'Korea',
				'ru'        => 'Южная Корея',
				'de'        => 'Republik Korea',
				'es'        => 'Corea',
				'fr'        => 'Corée du Sud',
			],
			'XK' => [
				'asciiname' => 'Republic of Kosovo',
				'en'        => 'Kosovo',
				'ru'        => 'Косово',
				'de'        => 'Kosovo',
				'es'        => 'Kosovo',
				'fr'        => 'Kosovo',
			],
			'LV' => [
				'asciiname' => 'Republic of Latvia',
				'en'        => 'Latvia',
				'ru'        => 'Латвия',
				'de'        => 'Lettland',
				'es'        => 'Letonia',
				'fr'        => 'Lettonie',
			],
			'LR' => [
				'asciiname' => 'Republic of Liberia',
				'en'        => 'Liberia',
				'ru'        => 'Либерия',
				'de'        => 'Liberia',
				'es'        => 'Liberia',
				'fr'        => 'Liberia',
			],
			'LT' => [
				'asciiname' => 'Republic of Lithuania',
				'en'        => 'Lithuania',
				'ru'        => 'Литва',
				'de'        => 'Litauen',
				'es'        => 'Lituania',
				'fr'        => 'Lituanie',
			],
			'MK' => [
				'asciiname' => 'Republic of Macedonia',
				'en'        => 'Macedonia',
				'ru'        => 'Македония',
				'de'        => 'Mazedonien',
				'es'        => 'Macedonia',
				'fr'        => 'Macédoine',
			],
			'MG' => [
				'asciiname' => 'Republic of Madagascar',
				'en'        => 'Madagascar',
				'ru'        => 'Мадагаскар',
				'de'        => 'Madagaskar',
				'es'        => 'Madagascar',
				'fr'        => 'République de Madagascar',
			],
			'MW' => [
				'asciiname' => 'Republic of Malawi',
				'en'        => 'Malawi',
				'ru'        => 'Малави',
				'de'        => 'Malawi',
				'es'        => 'Malaui',
				'fr'        => 'Malawi',
			],
			'MV' => [
				'asciiname' => 'Republic of Maldives',
				'en'        => 'Maldives',
				'ru'        => 'Мальдивские о-ва',
				'de'        => 'Malediven',
				'es'        => 'Maldivas',
				'fr'        => 'Maldives',
			],
			'ML' => [
				'asciiname' => 'Republic of Mali',
				'en'        => 'Mali',
				'ru'        => 'Мали',
				'de'        => 'Mali',
				'es'        => 'Mali',
				'fr'        => 'Mali',
			],
			'MT' => [
				'asciiname' => 'Republic of Malta',
				'en'        => 'Malta',
				'ru'        => 'Мальта',
				'de'        => 'Malta',
				'es'        => 'Isla de Malta',
				'fr'        => 'Malte',
			],
			'MU' => [
				'asciiname' => 'Republic of Mauritius',
				'en'        => 'Mauritius',
				'ru'        => 'Маврикий',
				'de'        => 'Mauritius',
				'es'        => 'Mauricio',
				'fr'        => 'Île Maurice',
			],
			'MD' => [
				'asciiname' => 'Republic of Moldova',
				'en'        => 'Moldova',
				'ru'        => 'Молдова',
				'de'        => 'Moldau (Republik Moldau)',
				'es'        => 'Moldavia',
				'fr'        => 'Moldova',
			],
			'MZ' => [
				'asciiname' => 'Republic of Mozambique',
				'en'        => 'Mozambique',
				'ru'        => 'Мозамбик',
				'de'        => 'Mosambik',
				'es'        => 'Mozambique',
				'fr'        => 'Mozambique',
			],
			'NA' => [
				'asciiname' => 'Republic of Namibia',
				'en'        => 'Namibia',
				'ru'        => 'Намибия',
				'de'        => 'Namibia',
				'es'        => 'Namibia',
				'fr'        => 'Namibie',
			],
			'NI' => [
				'asciiname' => 'Republic of Nicaragua',
				'en'        => 'Nicaragua',
				'ru'        => 'Никарагуа',
				'de'        => 'Nikaragua',
				'es'        => 'Nicaragua',
				'fr'        => 'Nicaragua',
			],
			'NE' => [
				'asciiname' => 'Republic of Niger',
				'en'        => 'Niger',
				'ru'        => 'Нигер',
				'de'        => 'Niger',
				'es'        => 'Níger',
				'fr'        => 'Niger',
			],
			'PW' => [
				'asciiname' => 'Republic of Palau',
				'en'        => 'Palau',
				'ru'        => 'Палау',
				'de'        => 'Palau',
				'es'        => 'Palaos',
				'fr'        => 'Palaos',
			],
			'PA' => [
				'asciiname' => 'Republic of Panama',
				'en'        => 'Panama',
				'ru'        => 'Панама',
				'de'        => 'Panama',
				'es'        => 'Panamá',
				'fr'        => 'Panama',
			],
			'PY' => [
				'asciiname' => 'Republic of Paraguay',
				'en'        => 'Paraguay',
				'ru'        => 'Парагвай',
				'de'        => 'Paraguay',
				'es'        => 'Paraguay',
				'fr'        => 'Paraguay',
			],
			'PE' => [
				'asciiname' => 'Republic of Peru',
				'en'        => 'Peru',
				'ru'        => 'Перу',
				'de'        => 'Peru',
				'es'        => 'Perú',
				'fr'        => 'Pérou',
			],
			'PL' => [
				'asciiname' => 'Republic of Poland',
				'en'        => 'Poland',
				'ru'        => 'Польша',
				'de'        => 'Polen',
				'es'        => 'Polonia',
				'fr'        => 'Pologne',
			],
			'RW' => [
				'asciiname' => 'Republic of Rwanda',
				'en'        => 'Rwanda',
				'ru'        => 'Руанда',
				'de'        => 'Ruanda',
				'es'        => 'Ruanda',
				'fr'        => 'Rwanda',
			],
			'SN' => [
				'asciiname' => 'Republic of Senegal',
				'en'        => 'Senegal',
				'ru'        => 'Сенегал',
				'de'        => 'Senegal',
				'es'        => 'Senegal',
				'fr'        => 'Sénégal',
			],
			'SC' => [
				'asciiname' => 'Republic of Seychelles',
				'en'        => 'Seychelles',
				'ru'        => 'Сейшельские о-ва',
				'de'        => 'Seychellen',
				'es'        => 'Seychelles',
				'fr'        => 'Seychelles',
			],
			'SL' => [
				'asciiname' => 'Republic of Sierra Leone',
				'en'        => 'Sierra Leone',
				'ru'        => 'Сьерра-Леоне',
				'de'        => 'Sierra Leone',
				'es'        => 'Sierra Leona',
				'fr'        => 'Sierra Leone',
			],
			'SG' => [
				'asciiname' => 'Republic of Singapore',
				'en'        => 'Singapore',
				'ru'        => 'Сингапур',
				'de'        => 'Singapur',
				'es'        => 'Singapur',
				'fr'        => 'Singapour',
			],
			'SI' => [
				'asciiname' => 'Republic of Slovenia',
				'en'        => 'Slovenia',
				'ru'        => 'Словения',
				'de'        => 'Slowenien',
				'es'        => 'Eslovenia',
				'fr'        => 'Slovénie',
			],
			'ZA' => [
				'asciiname' => 'Republic of South Africa',
				'en'        => 'South Africa',
				'ru'        => 'ЮАР',
				'de'        => 'Republik Südafrika',
				'es'        => 'Sudáfrica',
				'fr'        => 'Afrique du Sud',
			],
			'SR' => [
				'asciiname' => 'Republic of Suriname',
				'en'        => 'Suriname',
				'ru'        => 'Суринам',
				'de'        => 'Suriname',
				'es'        => 'Surinam',
				'fr'        => 'Surinam',
			],
			'TJ' => [
				'asciiname' => 'Republic of Tajikistan',
				'en'        => 'Tajikistan',
				'ru'        => 'Таджикистан',
				'de'        => 'Tadschikistan',
				'es'        => 'Tayikistán',
				'fr'        => 'Tadjikistan',
			],
			'CG' => [
				'asciiname' => 'Republic of the Congo',
				'en'        => 'Congo',
				'ru'        => 'Конго',
				'de'        => 'Kongo (Republik Kongo)',
				'es'        => 'Congo [República]',
				'fr'        => 'Congo-Brazzaville',
			],
			'MH' => [
				'asciiname' => 'Republic of the Marshall Islands',
				'en'        => 'Marshall Islands',
				'ru'        => 'Маршалловы о-ва',
				'de'        => 'Marshall-Inseln',
				'es'        => 'Marshall',
				'fr'        => 'Îles Marshall',
			],
			'PH' => [
				'asciiname' => 'Republic of the Philippines',
				'en'        => 'Philippines',
				'ru'        => 'Филиппины',
				'de'        => 'Philippinen',
				'es'        => 'Filipinas',
				'fr'        => 'Philippines',
			],
			'SD' => [
				'asciiname' => 'Republic of the Sudan',
				'en'        => 'Sudan',
				'ru'        => 'Судан',
				'de'        => 'Sudan',
				'es'        => 'Sudán',
				'fr'        => 'Soudan',
			],
			'TT' => [
				'asciiname' => 'Republic of Trinidad and Tobago',
				'en'        => 'Trinidad and Tobago',
				'ru'        => 'Тринидад и Тобаго',
				'de'        => 'Trinidad und Tobago',
				'es'        => 'Trinidad y Tobago',
				'fr'        => 'Trinidad et Tobago',
			],
			'TN' => [
				'asciiname' => 'Republic of Tunisia',
				'en'        => 'Tunisian Republic',
				'ru'        => 'Тунис',
				'de'        => 'Tunesien',
				'es'        => 'Túnez',
				'fr'        => 'Tunisie',
			],
			'TR' => [
				'asciiname' => 'Republic of Turkey',
				'en'        => 'Turkey',
				'ru'        => 'Турция',
				'de'        => 'Türkei',
				'es'        => 'Turquía',
				'fr'        => 'Turquie',
			],
			'UG' => [
				'asciiname' => 'Republic of Uganda',
				'en'        => 'Uganda',
				'ru'        => 'Уганда',
				'de'        => 'Uganda',
				'es'        => 'Uganda',
				'fr'        => 'Ouganda',
			],
			'UZ' => [
				'asciiname' => 'Republic of Uzbekistan',
				'en'        => 'Uzbekistan',
				'ru'        => 'Узбекистан',
				'de'        => 'Usbekistan',
				'es'        => 'Uzbekistán',
				'fr'        => 'Ouzbékistan',
			],
			'VU' => [
				'asciiname' => 'Republic of Vanuatu',
				'en'        => 'Vanuatu',
				'ru'        => 'Вануату',
				'de'        => 'Vanuatu',
				'es'        => 'Vanuatu',
				'fr'        => 'République de Vanuatu',
			],
			'YE' => [
				'asciiname' => 'Republic of Yemen',
				'en'        => 'Yemen',
				'ru'        => 'Йемен',
				'de'        => 'Jemen',
				'es'        => 'Yemen',
				'fr'        => 'Yémen',
			],
			'ZM' => [
				'asciiname' => 'Republic of Zambia',
				'en'        => 'Zambia',
				'ru'        => 'Замбия',
				'de'        => 'Sambia',
				'es'        => 'Zambia',
				'fr'        => 'Zambie',
			],
			'ZW' => [
				'asciiname' => 'Republic of Zimbabwe',
				'en'        => 'Zimbabwe',
				'ru'        => 'Зимбабве',
				'de'        => 'Simbabwe',
				'es'        => 'Zimbabue',
				'fr'        => 'Zimbabwe',
			],
			'RE' => [
				'asciiname' => 'Reunion',
				'en'        => 'Réunion',
				'ru'        => 'Реюньон',
				'de'        => 'Réunion',
				'es'        => 'Reunión',
				'fr'        => 'La Réunion',
			],
			'RO' => [
				'asciiname' => 'Romania',
				'en'        => 'Romania',
				'ru'        => 'Румыния',
				'de'        => 'Rumänien',
				'es'        => 'Rumanía',
				'fr'        => 'Roumanie',
			],
			'RU' => [
				'asciiname' => 'Russian Federation',
				'en'        => 'Russia',
				'ru'        => 'Россия',
				'de'        => 'Russland',
				'es'        => 'Rusia',
				'fr'        => 'Russie',
			],
			'SH' => [
				'asciiname' => 'Saint Helena, Ascension, and Tristan da Cunha',
				'en'        => 'Saint Helena',
				'ru'        => 'Остров Святой Елены',
				'de'        => 'St. Helena',
				'es'        => 'Santa Elena',
				'fr'        => 'Sainte-Hélène',
			],
			'LC' => [
				'asciiname' => 'Saint Lucia',
				'en'        => 'St Lucia',
				'ru'        => 'Сент-Люсия',
				'de'        => 'St. Lucia',
				'es'        => 'Saint Lucia',
				'fr'        => 'Sainte-Lucie',
			],
			'VC' => [
				'asciiname' => 'Saint Vincent and the Grenadines',
				'en'        => 'St Vincent and Grenadines',
				'ru'        => 'Сент-Винсент и Гренадины',
				'de'        => 'St. Vincent und die Grenadinen',
				'es'        => 'San Vicente y las Granadinas',
				'fr'        => 'Saint-Vincent-et-les Grenadines',
			],
			'BL' => [
				'asciiname' => 'Saint-Barthelemy',
				'en'        => 'Saint Barthélemy',
				'ru'        => 'Остров Святого Бартоломея',
				'de'        => 'St. Barthélemy',
				'es'        => 'San Bartolomé',
				'fr'        => 'Saint-Barthélémy',
			],
			'MF' => [
				'asciiname' => 'Saint-Martin',
				'en'        => 'Saint Martin',
				'ru'        => 'Остров Святого Мартина',
				'de'        => 'St. Martin',
				'es'        => 'San Martín',
				'fr'        => 'Saint-Martin (Antilles françaises)',
			],
			'PM' => [
				'asciiname' => 'Saint-Pierre et Miquelon',
				'en'        => 'Saint Pierre and Miquelon',
				'ru'        => 'Сен-Пьер и Микелон',
				'de'        => 'St. Pierre und Miquelon',
				'es'        => 'San Pedro y Miquelón',
				'fr'        => 'Saint-Pierre-et-Miquelon',
			],
			'ST' => [
				'asciiname' => 'Sao Tome and Principe',
				'en'        => 'Sao Tome and Principe',
				'ru'        => 'Сан-Томе и Принсипе',
				'de'        => 'Sao Tomé und Principe',
				'es'        => 'Santo Tomé y Príncipe',
				'fr'        => 'São Tomé-et-Príncipe',
			],
			'RS' => [
				'asciiname' => 'Serbia',
				'en'        => 'Serbia',
				'ru'        => 'Сербия',
				'de'        => 'Serbien',
				'es'        => 'Serbia',
				'fr'        => 'Serbie',
			],
			'SX' => [
				'asciiname' => 'Sint Maarten',
				'en'        => 'Sint Maarten',
				'ru'        => 'Синт-Мартен',
				'de'        => 'Sint Maarten',
				'es'        => 'Isla de San Martín',
				'fr'        => 'État de Saint-Martin',
			],
			'SK' => [
				'asciiname' => 'Slovak Republic',
				'en'        => 'Slovakia',
				'ru'        => 'Словакия',
				'de'        => 'Slowakei',
				'es'        => 'Eslovaquia',
				'fr'        => 'Slovaquie',
			],
			'VN' => [
				'asciiname' => 'Socialist Republic of Vietnam',
				'en'        => 'Vietnam',
				'ru'        => 'Вьетнам',
				'de'        => 'Vietnam',
				'es'        => 'Vietnam',
				'fr'        => 'Vietnam',
			],
			'SB' => [
				'asciiname' => 'Solomon Islands',
				'en'        => 'Solomon Islands',
				'ru'        => 'Соломонские острова',
				'de'        => 'Solomon-Inseln',
				'es'        => 'Salomón',
				'fr'        => 'Iles Salomon',
			],
			'SO' => [
				'asciiname' => 'Somalia',
				'en'        => 'Somalia',
				'ru'        => 'Сомали',
				'de'        => 'Somalia',
				'es'        => 'Somalia',
				'fr'        => 'Somalie',
			],
			'GS' => [
				'asciiname' => 'South Georgia and the South Sandwich Islands',
				'en'        => 'South Sandwich Islands',
				'ru'        => 'Южная Джорджия и Южные Сандвичевы Острова',
				'de'        => 'Südgeorgien und die Südlichen Sandwichinseln',
				'es'        => 'Islas Georgia del Sur y Sandwich del Sur',
				'fr'        => 'Géorgie du Sud-et-les îles Sandwich du Sud',
			],
			'SS' => [
				'asciiname' => 'South Sudan',
				'en'        => 'South Sudan',
				'ru'        => 'Южный Судан',
				'de'        => 'Südsudan',
				'es'        => 'Sudán del Sur',
				'fr'        => 'Sud-Soudan',
			],
			'ER' => [
				'asciiname' => 'State of Eritrea',
				'en'        => 'Eritrea',
				'ru'        => 'Эритрея',
				'de'        => 'Eritrea',
				'es'        => 'Eritrea',
				'fr'        => 'Érythrée',
			],
			'IL' => [
				'asciiname' => 'State of Israel',
				'en'        => 'Israel',
				'ru'        => 'Израиль',
				'de'        => 'Israel',
				'es'        => 'Israel',
				'fr'        => 'Israël',
			],
			'KW' => [
				'asciiname' => 'State of Kuwait',
				'en'        => 'Kuwait',
				'ru'        => 'Кувейт',
				'de'        => 'Kuwait',
				'es'        => 'Kuwait',
				'fr'        => 'Koweït',
			],
			'QA' => [
				'asciiname' => 'State of Qatar',
				'en'        => 'Qatar',
				'ru'        => 'Катар',
				'de'        => 'Katar',
				'es'        => 'Qatar',
				'fr'        => 'Qatar',
			],
			'VA' => [
				'asciiname' => 'State of the Vatican City',
				'en'        => 'Holy See',
				'ru'        => 'Ватикан',
				'de'        => 'Vatikanstadt',
				'es'        => 'El Vaticano',
				'fr'        => 'Vatican',
			],
			'OM' => [
				'asciiname' => 'Sultanate of Oman',
				'en'        => 'Sultanate of Oman',
				'ru'        => 'Оман',
				'de'        => 'Oman',
				'es'        => 'Omán',
				'fr'        => 'Oman',
			],
			'SJ' => [
				'asciiname' => 'Svalbard and Jan Mayen',
				'en'        => 'Svalbard and Jan Mayen',
				'ru'        => 'Свальбард и Ян-Майен',
				'de'        => 'Svalbard und Jan Mayen',
				'es'        => 'Svalbard y Jan Mayen',
				'fr'        => 'Svalbard et Jan Mayen',
			],
			'CH' => [
				'asciiname' => 'Switzerland',
				'en'        => 'Switzerland',
				'ru'        => 'Швейцария',
				'de'        => 'Schweizerische Eidgenossenschaft',
				'es'        => 'Suiza',
				'fr'        => 'Confédération Suisse',
			],
			'SY' => [
				'asciiname' => 'Syrian Arab Republic',
				'en'        => 'Syrian Arab Republic',
				'ru'        => 'Сирийская Арабская Республика',
				'de'        => 'Syrien',
				'es'        => 'Siria',
				'fr'        => 'Syrie',
			],
			'TW' => [
				'asciiname' => 'Taiwan',
				'en'        => 'Taiwan',
				'ru'        => 'Тайвань',
				'de'        => 'Taiwan',
				'es'        => 'Taiwán',
				'fr'        => 'Taïwan',
			],
			'CX' => [
				'asciiname' => 'Territory of Christmas Island',
				'en'        => 'Christmas Island',
				'ru'        => 'Остров Рождества',
				'de'        => 'Weihnachtsinsel',
				'es'        => 'Isla Christmas',
				'fr'        => 'Territoire de l`Île Christmas',
			],
			'CC' => [
				'asciiname' => 'Territory of Cocos (Keeling) Islands',
				'en'        => 'Cocos [Keeling] Islands',
				'ru'        => 'Кокосовые о-ва',
				'de'        => 'Kokosinseln',
				'es'        => 'Islas Cocos',
				'fr'        => 'Îles Cocos - Keeling',
			],
			'NF' => [
				'asciiname' => 'Territory of Norfolk Island',
				'en'        => 'Norfolk Island',
				'ru'        => 'Остров Норфолк',
				'de'        => 'Norfolkinsel',
				'es'        => 'Isla Norfolk',
				'fr'        => 'Ile de Norfolk',
			],
			'TF' => [
				'asciiname' => 'Territory of the French Southern and Antarctic Lands',
				'en'        => 'French Southern Territories',
				'ru'        => 'Французские Южные Территории',
				'de'        => 'Französische Süd- und Antarktisgebiete',
				'es'        => 'Territorios Australes Franceses',
				'fr'        => 'Terres australes françaises',
			],
			'TG' => [
				'asciiname' => 'Togolese Republic',
				'en'        => 'Togo',
				'ru'        => 'Того',
				'de'        => 'Togo',
				'es'        => 'Togo',
				'fr'        => 'Togo',
			],
			'TK' => [
				'asciiname' => 'Tokelau',
				'en'        => 'Tokelau',
				'ru'        => 'Токелау',
				'de'        => 'Tokelau',
				'es'        => 'Tokelau',
				'fr'        => 'Tokelau',
			],
			'TM' => [
				'asciiname' => 'Turkmenistan',
				'en'        => 'Turkmenistan',
				'ru'        => 'Туркменистан',
				'de'        => 'Turkmenistan',
				'es'        => 'Turkmenistán',
				'fr'        => 'Turkménistan',
			],
			'TC' => [
				'asciiname' => 'Turks and Caicos Islands',
				'en'        => 'Turks and Caicos Islands',
				'ru'        => 'Острова Тёркс и Кайкос',
				'de'        => 'Turks- und Caicosinseln',
				'es'        => 'Islas Turcas y Caicos',
				'fr'        => 'Îles Turks et Caïques',
			],
			'TV' => [
				'asciiname' => 'Tuvalu',
				'en'        => 'Tuvalu',
				'ru'        => 'Тувалу',
				'de'        => 'Tuwalu',
				'es'        => 'Tuvalu',
				'fr'        => 'Tuvalu',
			],
			'UA' => [
				'asciiname' => 'Ukraine',
				'en'        => 'Ukraine',
				'ru'        => 'Украина',
				'de'        => 'Ukraine',
				'es'        => 'Ucrania',
				'fr'        => 'Ukraine',
			],
			'MM' => [
				'asciiname' => 'Union of Burma',
				'en'        => 'Myanmar [Burma]',
				'ru'        => 'Мьянма',
				'de'        => 'Birma (Myanmar)',
				'es'        => 'Myanmar [Birmania]',
				'fr'        => 'Birmanie',
			],
			'KM' => [
				'asciiname' => 'Union of the Comoros',
				'en'        => 'Comoros',
				'ru'        => 'Коморские о-ва',
				'de'        => 'Komoren',
				'es'        => 'Comoras',
				'fr'        => 'Union des Comores',
			],
			'AE' => [
				'asciiname' => 'United Arab Emirates',
				'en'        => 'Arab Emirates',
				'ru'        => 'Арабские Эмираты',
				'de'        => 'Arabische Emirate',
				'es'        => 'Árabes Unidos',
				'fr'        => 'Arabes Unis',
			],
			'GB' => [
				'asciiname' => 'United Kingdom of Great Britain and Northern Ireland',
				'en'        => 'Britain',
				'ru'        => 'Великобритания',
				'de'        => 'Vereinigtes Königreich',
				'es'        => 'Reino Unido',
				'fr'        => 'Royaume-Uni',
			],
			'TZ' => [
				'asciiname' => 'United Republic of Tanzania',
				'en'        => 'Tanzania',
				'ru'        => 'Танзания',
				'de'        => 'Tansania',
				'es'        => 'Tanzania',
				'fr'        => 'Tanzanie',
			],
			'US' => [
				'asciiname' => 'United States',
				'en'        => 'USA',
				'ru'        => 'США',
				'de'        => 'USA',
				'es'        => 'Estados Unidos',
				'fr'        => 'États-Unis',
			],
			'VI' => [
				'asciiname' => 'Virgin Islands of the United States',
				'en'        => 'U.S. Virgin Islands',
				'ru'        => 'Виргинские о-ва США',
				'de'        => 'Amerikanische Jungferninseln',
				'es'        => 'Islas Vírgenes de los Estados Unidos',
				'fr'        => 'Îles Vierges des États-Unis',
			],
			'WF' => [
				'asciiname' => 'Wallis et Futuna',
				'en'        => 'Wallis and Futuna',
				'ru'        => 'Уоллис и Футуна',
				'de'        => 'Wallis und Futuna',
				'es'        => 'Wallis y Futuna',
				'fr'        => 'Wallis et Futuna',
			],
			'EH' => [
				'asciiname' => 'Western Sahara',
				'en'        => 'Western Sahara',
				'ru'        => 'Западная Сахара',
				'de'        => 'Westsahara',
				'es'        => 'Sáhara Occidental',
				'fr'        => 'Sahara Occidental',
			],
		];

		$created = $errors = [];
		foreach( $country_code_name as $ccode => $country_data ){

			//if( 'AI' === $ccode ) break; // for tests

			$name = $country_data['en'];

			$inserted = wp_insert_term( $name, $taxname, [
				'parent' => 0
			] );

			// ok
			if( ! is_wp_error($inserted) && isset($inserted['term_id']) ){

				update_term_meta( $inserted['term_id'], 'ccode', $ccode );

				foreach( $transl_to_langs as $lang ){

					if( isset($country_data[ $lang ]) ){
						update_term_meta( $inserted['term_id'], "name_$lang", $country_data[ $lang ] );
					}
				}

				$created[] = $inserted;
			}
			// error
			else
				$errors[] = $inserted->get_error_message();
		}

		$errors && print_r( $errors );
		print_r( $created );

		exit;
	}

	did_action('init') ? create_countries_terms() : add_action( 'init', 'create_countries_terms', 99 );
}
Комментариев нет