| @@ -1,19 +1,23 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Returns an array of all countries, with the country code as the key. |
| 4 | 4 | * |
| 5 | + * Country codes and names should follow the Unicode CLDR recommendation (http://cldr.unicode.org/translation/country-names). | |
| 6 | + * | |
| 5 | 7 | * Credit to WooThemes, mikejolly and shivapoudel. This is shamelessly based on their implementation in WooCommerce. |
| 6 | 8 | * |
| 7 | - * @since 1.0.0 | |
| 8 | - * @package Charitable/i18n | |
| 9 | - * @author Eric Daams | |
| 10 | - * @copyright Copyright (c) 2018, Studio 164a | |
| 11 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License | |
| 9 | + * @package Charitable/i18n | |
| 10 | + * @author David Bisset | |
| 11 | + * @copyright Copyright (c) 2023, WP Charitable LLC | |
| 12 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License | |
| 13 | + * @since 1.0.0 | |
| 14 | + * @version 1.6.24 | |
| 12 | 15 | */ |
| 13 | 16 | |
| 14 | -// Exit if accessed directly. | |
| 15 | -if ( ! defined( 'ABSPATH' ) ) { exit; } | |
| 17 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 18 | + exit; | |
| 19 | +} | |
| 16 | 20 | |
| 17 | 21 | return array( |
| 18 | 22 | 'AF' => __( 'Afghanistan', 'charitable' ), |
| 19 | 23 | 'AX' => __( 'Åland Islands', 'charitable' ), |
| @@ -84,8 +88,9 @@ | ||
| 84 | 88 | 'SV' => __( 'El Salvador', 'charitable' ), |
| 85 | 89 | 'GQ' => __( 'Equatorial Guinea', 'charitable' ), |
| 86 | 90 | 'ER' => __( 'Eritrea', 'charitable' ), |
| 87 | 91 | 'EE' => __( 'Estonia', 'charitable' ), |
| 92 | + 'SZ' => __( 'Eswatini', 'charitable' ), | |
| 88 | 93 | 'ET' => __( 'Ethiopia', 'charitable' ), |
| 89 | 94 | 'FK' => __( 'Falkland Islands', 'charitable' ), |
| 90 | 95 | 'FO' => __( 'Faroe Islands', 'charitable' ), |
| 91 | 96 | 'FJ' => __( 'Fiji', 'charitable' ), |
| @@ -141,10 +146,9 @@ | ||
| 141 | 146 | 'LY' => __( 'Libya', 'charitable' ), |
| 142 | 147 | 'LI' => __( 'Liechtenstein', 'charitable' ), |
| 143 | 148 | 'LT' => __( 'Lithuania', 'charitable' ), |
| 144 | 149 | 'LU' => __( 'Luxembourg', 'charitable' ), |
| 145 | - 'MO' => __( 'Macao S.A.R., China', 'charitable' ), | |
| 146 | - 'MK' => __( 'Macedonia', 'charitable' ), | |
| 150 | + 'MO' => __( 'Macau', 'charitable' ), | |
| 147 | 151 | 'MG' => __( 'Madagascar', 'charitable' ), |
| 148 | 152 | 'MW' => __( 'Malawi', 'charitable' ), |
| 149 | 153 | 'MY' => __( 'Malaysia', 'charitable' ), |
| 150 | 154 | 'MV' => __( 'Maldives', 'charitable' ), |
| @@ -177,12 +181,13 @@ | ||
| 177 | 181 | 'NG' => __( 'Nigeria', 'charitable' ), |
| 178 | 182 | 'NU' => __( 'Niue', 'charitable' ), |
| 179 | 183 | 'NF' => __( 'Norfolk Island', 'charitable' ), |
| 180 | 184 | 'KP' => __( 'North Korea', 'charitable' ), |
| 185 | + 'MK' => __( 'North Macedonia', 'charitable' ), | |
| 181 | 186 | 'NO' => __( 'Norway', 'charitable' ), |
| 182 | 187 | 'OM' => __( 'Oman', 'charitable' ), |
| 183 | 188 | 'PK' => __( 'Pakistan', 'charitable' ), |
| 184 | - 'PS' => __( 'Palestinian Territory', 'charitable' ), | |
| 189 | + 'PS' => __( 'Palestinian Territories', 'charitable' ), | |
| 185 | 190 | 'PA' => __( 'Panama', 'charitable' ), |
| 186 | 191 | 'PG' => __( 'Papua New Guinea', 'charitable' ), |
| 187 | 192 | 'PY' => __( 'Paraguay', 'charitable' ), |
| 188 | 193 | 'PE' => __( 'Peru', 'charitable' ), |
| @@ -223,9 +228,8 @@ | ||
| 223 | 228 | 'LK' => __( 'Sri Lanka', 'charitable' ), |
| 224 | 229 | 'SD' => __( 'Sudan', 'charitable' ), |
| 225 | 230 | 'SR' => __( 'Suriname', 'charitable' ), |
| 226 | 231 | 'SJ' => __( 'Svalbard and Jan Mayen', 'charitable' ), |
| 227 | - 'SZ' => __( 'Swaziland', 'charitable' ), | |
| 228 | 232 | 'SE' => __( 'Sweden', 'charitable' ), |
| 229 | 233 | 'CH' => __( 'Switzerland', 'charitable' ), |
| 230 | 234 | 'SY' => __( 'Syria', 'charitable' ), |
| 231 | 235 | 'TW' => __( 'Taiwan', 'charitable' ), |