[ Index ] |
PHP Cross Reference of GlotPress |
[Summary view] [Print] [Text view]
1 <?php 2 if ( ! class_exists( 'GP_Locale' ) ) : 3 4 class GP_Locale { 5 public $english_name; 6 public $native_name; 7 public $text_direction = 'ltr'; 8 public $lang_code_iso_639_1 = null; 9 public $lang_code_iso_639_2 = null; 10 public $lang_code_iso_639_3 = null; 11 public $country_code; 12 public $wp_locale; 13 public $slug; 14 public $nplurals = 2; 15 public $plural_expression = 'n != 1'; 16 public $google_code = null; 17 public $preferred_sans_serif_font_family = null; 18 public $facebook_locale = null; 19 20 /** 21 * The variant root for this locale. 22 * 23 * @since 3.0.0 24 * 25 * @var string 26 */ 27 public $variant_root = null; 28 29 /** 30 * The variants of this locale. 31 * 32 * @since 3.0.0 33 * 34 * @var array 35 */ 36 public $variants = null; 37 38 // TODO: days, months, decimals, quotes 39 40 private $_index_for_number; 41 42 public function __construct( $args = array() ) { 43 foreach( $args as $key => $value ) { 44 $this->$key = $value; 45 } 46 } 47 48 public static function __set_state( $state ) { 49 return new GP_Locale( $state ); 50 } 51 52 /** 53 * Make deprecated properties checkable for backwards compatibility. 54 * 55 * @param string $name Property to check if set. 56 * @return bool Whether the property is set. 57 */ 58 public function __isset( $name ) { 59 if ( 'rtl' == $name ) { 60 return isset( $this->text_direction ); 61 } 62 return false; 63 } 64 65 /** 66 * Make deprecated properties readable for backwards compatibility. 67 * 68 * @param string $name Property to get. 69 * @return mixed Property. 70 */ 71 public function __get( $name ) { 72 if ( 'rtl' == $name ) { 73 return ( 'rtl' === $this->text_direction ); 74 } 75 76 return null; 77 } 78 79 public function combined_name() { 80 /* translators: combined name for locales: 1: name in English, 2: native name */ 81 return sprintf( _x( '%1$s/%2$s', 'locales' ), $this->english_name, $this->native_name ); 82 } 83 84 public function numbers_for_index( $index, $how_many = 3, $test_up_to = 1000 ) { 85 $numbers = array(); 86 87 for( $number = 0; $number < $test_up_to; ++$number ) { 88 if ( $this->index_for_number( $number ) == $index ) { 89 $numbers[] = $number; 90 91 if ( count( $numbers ) >= $how_many ) { 92 break; 93 } 94 } 95 } 96 97 return $numbers; 98 } 99 100 public function index_for_number( $number ) { 101 if ( ! isset( $this->_index_for_number ) ) { 102 $gettext = new Gettext_Translations; 103 $expression = $gettext->parenthesize_plural_exression( $this->plural_expression ); 104 $this->_index_for_number = $gettext->make_plural_form_function( $this->nplurals, $expression ); 105 } 106 107 $f = $this->_index_for_number; 108 109 return $f( $number ); 110 } 111 112 /** 113 * When converting the object to a string, the combined name is returned. 114 * 115 * @since 3.0.0 116 * 117 * @return string Combined name of locale. 118 */ 119 public function __toString() { 120 return $this->combined_name(); 121 } 122 } 123 124 endif; 125 126 if ( ! class_exists( 'GP_Locales' ) ) : 127 128 class GP_Locales { 129 130 public $locales = array(); 131 132 public function __construct() { 133 $aa = new GP_Locale(); 134 $aa->english_name = 'Afar'; 135 $aa->native_name = 'Afaraf'; 136 $aa->lang_code_iso_639_1 = 'aa'; 137 $aa->lang_code_iso_639_2 = 'aar'; 138 $aa->slug = 'aa'; 139 140 $ae = new GP_Locale(); 141 $ae->english_name = 'Avestan'; 142 $ae->native_name = 'Avesta'; 143 $ae->lang_code_iso_639_1 = 'ae'; 144 $ae->lang_code_iso_639_2 = 'ave'; 145 $ae->slug = 'ae'; 146 147 $af = new GP_Locale(); 148 $af->english_name = 'Afrikaans'; 149 $af->native_name = 'Afrikaans'; 150 $af->lang_code_iso_639_1 = 'af'; 151 $af->lang_code_iso_639_2 = 'afr'; 152 $af->country_code = 'za'; 153 $af->wp_locale = 'af'; 154 $af->slug = 'af'; 155 $af->google_code = 'af'; 156 $af->facebook_locale = 'af_ZA'; 157 158 $ak = new GP_Locale(); 159 $ak->english_name = 'Akan'; 160 $ak->native_name = 'Akan'; 161 $ak->lang_code_iso_639_1 = 'ak'; 162 $ak->lang_code_iso_639_2 = 'aka'; 163 $ak->slug = 'ak'; 164 $ak->facebook_locale = 'ak_GH'; 165 166 $am = new GP_Locale(); 167 $am->english_name = 'Amharic'; 168 $am->native_name = 'አማርኛ'; 169 $am->lang_code_iso_639_1 = 'am'; 170 $am->lang_code_iso_639_2 = 'amh'; 171 $am->country_code = 'et'; 172 $am->wp_locale = 'am'; 173 $am->slug = 'am'; 174 $am->facebook_locale = 'am_ET'; 175 176 $an = new GP_Locale(); 177 $an->english_name = 'Aragonese'; 178 $an->native_name = 'Aragonés'; 179 $an->lang_code_iso_639_1 = 'an'; 180 $an->lang_code_iso_639_2 = 'arg'; 181 $an->lang_code_iso_639_3 = 'arg'; 182 $an->country_code = 'es'; 183 $an->wp_locale = 'arg'; 184 $an->slug = 'an'; 185 186 $ar = new GP_Locale(); 187 $ar->english_name = 'Arabic'; 188 $ar->native_name = 'العربية'; 189 $ar->lang_code_iso_639_1 = 'ar'; 190 $ar->lang_code_iso_639_2 = 'ara'; 191 $ar->wp_locale = 'ar'; 192 $ar->slug = 'ar'; 193 $ar->nplurals = 6; 194 $ar->plural_expression = '(n == 0) ? 0 : ((n == 1) ? 1 : ((n == 2) ? 2 : ((n % 100 >= 3 && n % 100 <= 10) ? 3 : ((n % 100 >= 11 && n % 100 <= 99) ? 4 : 5))))'; 195 $ar->text_direction = 'rtl'; 196 $ar->preferred_sans_serif_font_family = 'Tahoma'; 197 $ar->google_code = 'ar'; 198 $ar->facebook_locale = 'ar_AR'; 199 200 $arq = new GP_Locale(); 201 $arq->english_name = 'Algerian Arabic'; 202 $arq->native_name = 'الدارجة الجزايرية'; 203 $arq->lang_code_iso_639_1 = 'ar'; 204 $arq->lang_code_iso_639_3 = 'arq'; 205 $arq->country_code = 'dz'; 206 $arq->wp_locale = 'arq'; 207 $arq->slug = 'arq'; 208 $arq->nplurals = 6; 209 $arq->plural_expression = '(n == 0) ? 0 : ((n == 1) ? 1 : ((n == 2) ? 2 : ((n % 100 >= 3 && n % 100 <= 10) ? 3 : ((n % 100 >= 11 && n % 100 <= 99) ? 4 : 5))))'; 210 $arq->text_direction = 'rtl'; 211 $arq->variant_root = $ar->slug; 212 $ar->variants[ $arq->slug ] = $arq->english_name; 213 214 $ary = new GP_Locale(); 215 $ary->english_name = 'Moroccan Arabic'; 216 $ary->native_name = 'العربية المغربية'; 217 $ary->lang_code_iso_639_1 = 'ar'; 218 $ary->lang_code_iso_639_3 = 'ary'; 219 $ary->country_code = 'ma'; 220 $ary->wp_locale = 'ary'; 221 $ary->slug = 'ary'; 222 $ary->nplurals = 6; 223 $ary->plural_expression = '(n == 0) ? 0 : ((n == 1) ? 1 : ((n == 2) ? 2 : ((n % 100 >= 3 && n % 100 <= 10) ? 3 : ((n % 100 >= 11 && n % 100 <= 99) ? 4 : 5))))'; 224 $ary->text_direction = 'rtl'; 225 $ary->variant_root = $ar->slug; 226 $ar->variants[ $ary->slug ] = $ary->english_name; 227 228 $as = new GP_Locale(); 229 $as->english_name = 'Assamese'; 230 $as->native_name = 'অসমীয়া'; 231 $as->lang_code_iso_639_1 = 'as'; 232 $as->lang_code_iso_639_2 = 'asm'; 233 $as->lang_code_iso_639_3 = 'asm'; 234 $as->country_code = 'in'; 235 $as->wp_locale = 'as'; 236 $as->slug = 'as'; 237 $as->facebook_locale = 'as_IN'; 238 239 $ast = new GP_Locale(); 240 $ast->english_name = 'Asturian'; 241 $ast->native_name = 'Asturianu'; 242 $ast->lang_code_iso_639_2 = 'ast'; 243 $ast->lang_code_iso_639_3 = 'ast'; 244 $ast->country_code = 'es'; 245 $ast->wp_locale = 'ast'; 246 $ast->slug = 'ast'; 247 248 $av = new GP_Locale(); 249 $av->english_name = 'Avaric'; 250 $av->native_name = 'авар мацӀ'; 251 $av->lang_code_iso_639_1 = 'av'; 252 $av->lang_code_iso_639_2 = 'ava'; 253 $av->slug = 'av'; 254 255 $ay = new GP_Locale(); 256 $ay->english_name = 'Aymara'; 257 $ay->native_name = 'aymar aru'; 258 $ay->lang_code_iso_639_1 = 'ay'; 259 $ay->lang_code_iso_639_2 = 'aym'; 260 $ay->country_code = 'bo'; 261 $ay->slug = 'ay'; 262 $ay->nplurals = 1; 263 $ay->plural_expression = '0'; 264 $ay->facebook_locale = 'ay_BO'; 265 266 $az = new GP_Locale(); 267 $az->english_name = 'Azerbaijani'; 268 $az->native_name = 'Azərbaycan dili'; 269 $az->lang_code_iso_639_1 = 'az'; 270 $az->lang_code_iso_639_2 = 'aze'; 271 $az->country_code = 'az'; 272 $az->wp_locale = 'az'; 273 $az->slug = 'az'; 274 $az->google_code = 'az'; 275 $az->facebook_locale = 'az_AZ'; 276 277 $azb = new GP_Locale(); 278 $azb->english_name = 'South Azerbaijani'; 279 $azb->native_name = 'گؤنئی آذربایجان'; 280 $azb->lang_code_iso_639_1 = 'az'; 281 $azb->lang_code_iso_639_3 = 'azb'; 282 $azb->country_code = 'ir'; 283 $azb->wp_locale = 'azb'; 284 $azb->slug = 'azb'; 285 $azb->text_direction = 'rtl'; 286 $azb->variant_root = $az->slug; 287 $az->variants[ $azb->slug ] = $azb->english_name; 288 289 $az_tr = new GP_Locale(); 290 $az_tr->english_name = 'Azerbaijani (Turkey)'; 291 $az_tr->native_name = 'Azərbaycan Türkcəsi'; 292 $az_tr->lang_code_iso_639_1 = 'az'; 293 $az_tr->lang_code_iso_639_2 = 'aze'; 294 $az_tr->country_code = 'tr'; 295 $az_tr->wp_locale = 'az_TR'; 296 $az_tr->slug = 'az-tr'; 297 $az_tr->variant_root = $az->slug; 298 $az->variants[ $az_tr->slug ] = $az_tr->english_name; 299 300 $ba = new GP_Locale(); 301 $ba->english_name = 'Bashkir'; 302 $ba->native_name = 'башҡорт теле'; 303 $ba->lang_code_iso_639_1 = 'ba'; 304 $ba->lang_code_iso_639_2 = 'bak'; 305 $ba->wp_locale = 'ba'; 306 $ba->slug = 'ba'; 307 308 $bal = new GP_Locale(); 309 $bal->english_name = 'Catalan (Balear)'; 310 $bal->native_name = 'Català (Balear)'; 311 $bal->lang_code_iso_639_2 = 'bal'; 312 $bal->country_code = 'es'; 313 $bal->wp_locale = 'bal'; 314 $bal->slug = 'bal'; 315 316 $bcc = new GP_Locale(); 317 $bcc->english_name = 'Balochi Southern'; 318 $bcc->native_name = 'بلوچی مکرانی'; 319 $bcc->lang_code_iso_639_3 = 'bcc'; 320 $bcc->country_code = 'pk'; 321 $bcc->wp_locale = 'bcc'; 322 $bcc->slug = 'bcc'; 323 $bcc->nplurals = 1; 324 $bcc->plural_expression = '0'; 325 $bcc->text_direction = 'rtl'; 326 327 $be = new GP_Locale(); 328 $be->english_name = 'Belarusian'; 329 $be->native_name = 'Беларуская мова'; 330 $be->lang_code_iso_639_1 = 'be'; 331 $be->lang_code_iso_639_2 = 'bel'; 332 $be->country_code = 'by'; 333 $be->wp_locale = 'bel'; 334 $be->slug = 'bel'; 335 $be->nplurals = 3; 336 $be->plural_expression = '(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2)'; 337 $be->google_code = 'be'; 338 $be->facebook_locale = 'be_BY'; 339 340 $bg = new GP_Locale(); 341 $bg->english_name = 'Bulgarian'; 342 $bg->native_name = 'Български'; 343 $bg->lang_code_iso_639_1 = 'bg'; 344 $bg->lang_code_iso_639_2 = 'bul'; 345 $bg->country_code = 'bg'; 346 $bg->wp_locale = 'bg_BG'; 347 $bg->slug = 'bg'; 348 $bg->google_code = 'bg'; 349 $bg->facebook_locale = 'bg_BG'; 350 351 $bh = new GP_Locale(); 352 $bh->english_name = 'Bihari'; 353 $bh->native_name = 'भोजपुरी'; 354 $bh->lang_code_iso_639_1 = 'bh'; 355 $bh->lang_code_iso_639_2 = 'bih'; 356 $bh->slug = 'bh'; 357 358 $bho = new GP_Locale(); 359 $bho->english_name = 'Bhojpuri'; 360 $bho->native_name = 'भोजपुरी'; 361 $bho->lang_code_iso_639_3 = 'bho'; 362 $bho->country_code = 'in'; 363 $bho->wp_locale = 'bho'; 364 $bho->slug = 'bho'; 365 366 $bi = new GP_Locale(); 367 $bi->english_name = 'Bislama'; 368 $bi->native_name = 'Bislama'; 369 $bi->lang_code_iso_639_1 = 'bi'; 370 $bi->lang_code_iso_639_2 = 'bis'; 371 $bi->country_code = 'vu'; 372 $bi->slug = 'bi'; 373 374 $bm = new GP_Locale(); 375 $bm->english_name = 'Bambara'; 376 $bm->native_name = 'Bamanankan'; 377 $bm->lang_code_iso_639_1 = 'bm'; 378 $bm->lang_code_iso_639_2 = 'bam'; 379 $bm->slug = 'bm'; 380 381 $bn_bd = new GP_Locale(); 382 $bn_bd->english_name = 'Bengali (Bangladesh)'; 383 $bn_bd->native_name = 'বাংলা'; 384 $bn_bd->lang_code_iso_639_1 = 'bn'; 385 $bn_bd->country_code = 'bd'; 386 $bn_bd->wp_locale = 'bn_BD'; 387 $bn_bd->slug = 'bn'; 388 $bn_bd->google_code = 'bn'; 389 390 $bn_in = new GP_Locale(); 391 $bn_in->english_name = 'Bengali (India)'; 392 $bn_in->native_name = 'বাংলা (ভারত)'; 393 $bn_in->lang_code_iso_639_1 = 'bn'; 394 $bn_in->country_code = 'in'; 395 $bn_in->wp_locale = 'bn_IN'; 396 $bn_in->slug = 'bn-in'; 397 $bn_in->google_code = 'bn'; 398 $bn_in->facebook_locale = 'bn_IN'; 399 $bn_in->nplurals = 2; 400 $bn_in->plural_expression = 'n > 1'; 401 402 $bo = new GP_Locale(); 403 $bo->english_name = 'Tibetan'; 404 $bo->native_name = 'བོད་ཡིག'; 405 $bo->lang_code_iso_639_1 = 'bo'; 406 $bo->lang_code_iso_639_2 = 'tib'; 407 $bo->wp_locale = 'bo'; 408 $bo->slug = 'bo'; 409 $bo->nplurals = 1; 410 $bo->plural_expression = '0'; 411 412 $br = new GP_Locale(); 413 $br->english_name = 'Breton'; 414 $br->native_name = 'Brezhoneg'; 415 $br->lang_code_iso_639_1 = 'br'; 416 $br->lang_code_iso_639_2 = 'bre'; 417 $br->lang_code_iso_639_3 = 'bre'; 418 $br->country_code = 'fr'; 419 $br->wp_locale = 'bre'; 420 $br->slug = 'br'; 421 $br->nplurals = 2; 422 $br->plural_expression = 'n > 1'; 423 $br->facebook_locale = 'br_FR'; 424 425 $brx = new GP_Locale(); 426 $brx->english_name = 'Bodo'; 427 $brx->native_name = 'बोडो'; 428 $brx->lang_code_iso_639_3 = 'brx'; 429 $brx->country_code = 'in'; 430 $brx->wp_locale = 'brx'; 431 $brx->slug = 'brx'; 432 433 $bs = new GP_Locale(); 434 $bs->english_name = 'Bosnian'; 435 $bs->native_name = 'Bosanski'; 436 $bs->lang_code_iso_639_1 = 'bs'; 437 $bs->lang_code_iso_639_2 = 'bos'; 438 $bs->country_code = 'ba'; 439 $bs->wp_locale = 'bs_BA'; 440 $bs->slug = 'bs'; 441 $bs->nplurals = 3; 442 $bs->plural_expression = '(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2)'; 443 $bs->google_code = 'bs'; 444 $bs->facebook_locale = 'bs_BA'; 445 446 $ca = new GP_Locale(); 447 $ca->english_name = 'Catalan'; 448 $ca->native_name = 'Català'; 449 $ca->lang_code_iso_639_1 = 'ca'; 450 $ca->lang_code_iso_639_2 = 'cat'; 451 $ca->wp_locale = 'ca'; 452 $ca->slug = 'ca'; 453 $ca->google_code = 'ca'; 454 $ca->facebook_locale = 'ca_ES'; 455 456 $ce = new GP_Locale(); 457 $ce->english_name = 'Chechen'; 458 $ce->native_name = 'Нохчийн мотт'; 459 $ce->lang_code_iso_639_1 = 'ce'; 460 $ce->lang_code_iso_639_2 = 'che'; 461 $ce->slug = 'ce'; 462 463 $ceb = new GP_Locale(); 464 $ceb->english_name = 'Cebuano'; 465 $ceb->native_name = 'Cebuano'; 466 $ceb->lang_code_iso_639_2 = 'ceb'; 467 $ceb->lang_code_iso_639_3 = 'ceb'; 468 $ceb->country_code = 'ph'; 469 $ceb->wp_locale = 'ceb'; 470 $ceb->slug = 'ceb'; 471 $ceb->facebook_locale = 'cx_PH'; 472 473 $ch = new GP_Locale(); 474 $ch->english_name = 'Chamorro'; 475 $ch->native_name = 'Chamoru'; 476 $ch->lang_code_iso_639_1 = 'ch'; 477 $ch->lang_code_iso_639_2 = 'cha'; 478 $ch->slug = 'ch'; 479 480 $ckb = new GP_Locale(); 481 $ckb->english_name = 'Kurdish (Sorani)'; 482 $ckb->native_name = 'كوردی'; 483 $ckb->lang_code_iso_639_1 = 'ku'; 484 $ckb->lang_code_iso_639_3 = 'ckb'; 485 $ckb->country_code = 'iq'; 486 $ckb->wp_locale = 'ckb'; 487 $ckb->slug = 'ckb'; 488 $ckb->text_direction = 'rtl'; 489 $ckb->facebook_locale = 'cb_IQ'; 490 491 $co = new GP_Locale(); 492 $co->english_name = 'Corsican'; 493 $co->native_name = 'Corsu'; 494 $co->lang_code_iso_639_1 = 'co'; 495 $co->lang_code_iso_639_2 = 'cos'; 496 $co->country_code = 'it'; 497 $co->wp_locale = 'co'; 498 $co->slug = 'co'; 499 500 $cor = new GP_Locale(); 501 $cor->english_name = 'Cornish'; 502 $cor->native_name = 'Kernewek'; 503 $cor->lang_code_iso_639_1 = 'kw'; 504 $cor->lang_code_iso_639_2 = 'cor'; 505 $cor->lang_code_iso_639_2 = 'cor'; 506 $cor->country_code = 'gb'; 507 $cor->wp_locale = 'cor'; 508 $cor->slug = 'cor'; 509 $cor->nplurals = 6; 510 $cor->plural_expression = '(n == 0) ? 0 : ((n == 1) ? 1 : (((n % 100 == 2 || n % 100 == 22 || n % 100 == 42 || n % 100 == 62 || n % 100 == 82) || n % 1000 == 0 && (n % 100000 >= 1000 && n % 100000 <= 20000 || n % 100000 == 40000 || n % 100000 == 60000 || n % 100000 == 80000) || n != 0 && n % 1000000 == 100000) ? 2 : ((n % 100 == 3 || n % 100 == 23 || n % 100 == 43 || n % 100 == 63 || n % 100 == 83) ? 3 : ((n != 1 && (n % 100 == 1 || n % 100 == 21 || n % 100 == 41 || n % 100 == 61 || n % 100 == 81)) ? 4 : 5))))'; 511 512 $cr = new GP_Locale(); 513 $cr->english_name = 'Cree'; 514 $cr->native_name = 'ᓀᐦᐃᔭᐍᐏᐣ'; 515 $cr->lang_code_iso_639_1 = 'cr'; 516 $cr->lang_code_iso_639_2 = 'cre'; 517 $cr->country_code = 'ca'; 518 $cr->slug = 'cr'; 519 520 $cs = new GP_Locale(); 521 $cs->english_name = 'Czech'; 522 $cs->native_name = 'Čeština'; 523 $cs->lang_code_iso_639_1 = 'cs'; 524 $cs->lang_code_iso_639_2 = 'ces'; 525 $cs->country_code = 'cz'; 526 $cs->wp_locale = 'cs_CZ'; 527 $cs->slug = 'cs'; 528 $cs->nplurals = 3; 529 $cs->plural_expression = '(n == 1) ? 0 : ((n >= 2 && n <= 4) ? 1 : 2)'; 530 $cs->google_code = 'cs'; 531 $cs->facebook_locale = 'cs_CZ'; 532 533 $csb = new GP_Locale(); 534 $csb->english_name = 'Kashubian'; 535 $csb->native_name = 'Kaszëbsczi'; 536 $csb->lang_code_iso_639_2 = 'csb'; 537 $csb->slug = 'csb'; 538 $csb->nplurals = 3; 539 $csb->plural_expression = 'n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2'; 540 541 $cu = new GP_Locale(); 542 $cu->english_name = 'Church Slavic'; 543 $cu->native_name = 'ѩзыкъ словѣньскъ'; 544 $cu->lang_code_iso_639_1 = 'cu'; 545 $cu->lang_code_iso_639_2 = 'chu'; 546 $cu->slug = 'cu'; 547 548 $cv = new GP_Locale(); 549 $cv->english_name = 'Chuvash'; 550 $cv->native_name = 'чӑваш чӗлхи'; 551 $cv->lang_code_iso_639_1 = 'cv'; 552 $cv->lang_code_iso_639_2 = 'chv'; 553 $cv->country_code = 'ru'; 554 $cv->slug = 'cv'; 555 556 $cy = new GP_Locale(); 557 $cy->english_name = 'Welsh'; 558 $cy->native_name = 'Cymraeg'; 559 $cy->lang_code_iso_639_1 = 'cy'; 560 $cy->lang_code_iso_639_2 = 'cym'; 561 $cy->country_code = 'gb'; 562 $cy->wp_locale = 'cy'; 563 $cy->slug = 'cy'; 564 $cy->nplurals = 4; 565 $cy->plural_expression = '(n==1) ? 0 : (n==2) ? 1 : (n != 8 && n != 11) ? 2 : 3'; 566 $cy->google_code = 'cy'; 567 $cy->facebook_locale = 'cy_GB'; 568 569 $da = new GP_Locale(); 570 $da->english_name = 'Danish'; 571 $da->native_name = 'Dansk'; 572 $da->lang_code_iso_639_1 = 'da'; 573 $da->lang_code_iso_639_2 = 'dan'; 574 $da->country_code = 'dk'; 575 $da->wp_locale = 'da_DK'; 576 $da->slug = 'da'; 577 $da->google_code = 'da'; 578 $da->facebook_locale = 'da_DK'; 579 580 $de = new GP_Locale(); 581 $de->english_name = 'German'; 582 $de->native_name = 'Deutsch'; 583 $de->lang_code_iso_639_1 = 'de'; 584 $de->country_code = 'de'; 585 $de->wp_locale = 'de_DE'; 586 $de->slug = 'de'; 587 $de->google_code = 'de'; 588 $de->facebook_locale = 'de_DE'; 589 590 $de_at = new GP_Locale(); 591 $de_at->english_name = 'German (Austria)'; 592 $de_at->native_name = 'Deutsch (Österreich)'; 593 $de_at->lang_code_iso_639_1 = 'de'; 594 $de_at->country_code = 'de'; 595 $de_at->wp_locale = 'de_AT'; 596 $de_at->slug = 'de-at'; 597 $de_at->google_code = 'de'; 598 $de_at->variant_root = $de->slug; 599 $de->variants[ $de_at->slug ] = $de_at->english_name; 600 601 $de_ch = new GP_Locale(); 602 $de_ch->english_name = 'German (Switzerland)'; 603 $de_ch->native_name = 'Deutsch (Schweiz)'; 604 $de_ch->lang_code_iso_639_1 = 'de'; 605 $de_ch->country_code = 'ch'; 606 $de_ch->wp_locale = 'de_CH'; 607 $de_ch->slug = 'de-ch'; 608 $de_ch->google_code = 'de'; 609 $de_ch->variant_root = $de->slug; 610 $de->variants[ $de_ch->slug ] = $de_ch->english_name; 611 612 $dsb = new GP_Locale(); 613 $dsb->english_name = 'Lower Sorbian'; 614 $dsb->native_name = 'Dolnoserbšćina'; 615 $dsb->lang_code_iso_639_2 = 'dsb'; 616 $dsb->lang_code_iso_639_3 = 'dsb'; 617 $dsb->country_code = 'de'; 618 $dsb->wp_locale = 'dsb'; 619 $dsb->slug = 'dsb'; 620 $dsb->nplurals = 4; 621 $dsb->plural_expression = '(n % 100 == 1) ? 0 : ((n % 100 == 2) ? 1 : ((n % 100 == 3 || n % 100 == 4) ? 2 : 3))'; 622 623 $dv = new GP_Locale(); 624 $dv->english_name = 'Dhivehi'; 625 $dv->native_name = 'ދިވެހި'; 626 $dv->lang_code_iso_639_1 = 'dv'; 627 $dv->lang_code_iso_639_2 = 'div'; 628 $dv->country_code = 'mv'; 629 $dv->wp_locale = 'dv'; 630 $dv->slug = 'dv'; 631 $dv->text_direction = 'rtl'; 632 633 $dzo = new GP_Locale(); 634 $dzo->english_name = 'Dzongkha'; 635 $dzo->native_name = 'རྫོང་ཁ'; 636 $dzo->lang_code_iso_639_1 = 'dz'; 637 $dzo->lang_code_iso_639_2 = 'dzo'; 638 $dzo->country_code = 'bt'; 639 $dzo->wp_locale = 'dzo'; 640 $dzo->slug = 'dzo'; 641 $dzo->nplurals = 1; 642 $dzo->plural_expression = '0'; 643 644 $ewe = new GP_Locale(); 645 $ewe->english_name = 'Ewe'; 646 $ewe->native_name = 'Eʋegbe'; 647 $ewe->lang_code_iso_639_1 = 'ee'; 648 $ewe->lang_code_iso_639_2 = 'ewe'; 649 $ewe->lang_code_iso_639_3 = 'ewe'; 650 $ewe->country_code = 'gh'; 651 $ewe->wp_locale = 'ewe'; 652 $ewe->slug = 'ee'; 653 654 $el = new GP_Locale(); 655 $el->english_name = 'Greek'; 656 $el->native_name = 'Ελληνικά'; 657 $el->lang_code_iso_639_1 = 'el'; 658 $el->lang_code_iso_639_2 = 'ell'; 659 $el->country_code = 'gr'; 660 $el->wp_locale = 'el'; 661 $el->slug = 'el'; 662 $el->google_code = 'el'; 663 $el->facebook_locale = 'el_GR'; 664 665 $el_po = new GP_Locale(); 666 $el_po->english_name = 'Greek (Polytonic)'; 667 $el_po->native_name = 'Greek (Polytonic)'; // TODO. 668 $el_po->country_code = 'gr'; 669 $el_po->slug = 'el-po'; 670 $el_po->variant_root = $el->slug; 671 $el->variants[ $el->slug ] = $el->english_name; 672 673 $emoji = new GP_Locale(); 674 $emoji->english_name = 'Emoji'; 675 $emoji->native_name = "\xf0\x9f\x8c\x8f\xf0\x9f\x8c\x8d\xf0\x9f\x8c\x8e (Emoji)"; 676 $emoji->lang_code_iso_639_2 = 'art'; 677 $emoji->wp_locale = 'art_xemoji'; 678 $emoji->slug = 'art-xemoji'; 679 $emoji->nplurals = 1; 680 $emoji->plural_expression = '0'; 681 682 $en = new GP_Locale(); 683 $en->english_name = 'English'; 684 $en->native_name = 'English'; 685 $en->lang_code_iso_639_1 = 'en'; 686 $en->country_code = 'us'; 687 $en->wp_locale = 'en_US'; 688 $en->slug = 'en'; 689 $en->google_code = 'en'; 690 $en->facebook_locale = 'en_US'; 691 692 $en_au = new GP_Locale(); 693 $en_au->english_name = 'English (Australia)'; 694 $en_au->native_name = 'English (Australia)'; 695 $en_au->lang_code_iso_639_1 = 'en'; 696 $en_au->lang_code_iso_639_2 = 'eng'; 697 $en_au->lang_code_iso_639_3 = 'eng'; 698 $en_au->country_code = 'au'; 699 $en_au->wp_locale = 'en_AU'; 700 $en_au->slug = 'en-au'; 701 $en_au->google_code = 'en'; 702 $en_au->variant_root = $en->slug; 703 $en->variants[ $en_au->slug ] = $en_au->english_name; 704 705 $en_ca = new GP_Locale(); 706 $en_ca->english_name = 'English (Canada)'; 707 $en_ca->native_name = 'English (Canada)'; 708 $en_ca->lang_code_iso_639_1 = 'en'; 709 $en_ca->lang_code_iso_639_2 = 'eng'; 710 $en_ca->lang_code_iso_639_3 = 'eng'; 711 $en_ca->country_code = 'ca'; 712 $en_ca->wp_locale = 'en_CA'; 713 $en_ca->slug = 'en-ca'; 714 $en_ca->google_code = 'en'; 715 $en_ca->variant_root = $en->slug; 716 $en->variants[ $en_ca->slug ] = $en_ca->english_name; 717 718 $en_gb = new GP_Locale(); 719 $en_gb->english_name = 'English (UK)'; 720 $en_gb->native_name = 'English (UK)'; 721 $en_gb->lang_code_iso_639_1 = 'en'; 722 $en_gb->lang_code_iso_639_2 = 'eng'; 723 $en_gb->lang_code_iso_639_3 = 'eng'; 724 $en_gb->country_code = 'gb'; 725 $en_gb->wp_locale = 'en_GB'; 726 $en_gb->slug = 'en-gb'; 727 $en_gb->google_code = 'en'; 728 $en_gb->facebook_locale = 'en_GB'; 729 $en_gb->variant_root = $en->slug; 730 $en->variants[ $en_gb->slug ] = $en_gb->english_name; 731 732 $en_nz = new GP_Locale(); 733 $en_nz->english_name = 'English (New Zealand)'; 734 $en_nz->native_name = 'English (New Zealand)'; 735 $en_nz->lang_code_iso_639_1 = 'en'; 736 $en_nz->lang_code_iso_639_2 = 'eng'; 737 $en_nz->lang_code_iso_639_3 = 'eng'; 738 $en_nz->country_code = 'nz'; 739 $en_nz->wp_locale = 'en_NZ'; 740 $en_nz->slug = 'en-nz'; 741 $en_nz->google_code = 'en'; 742 $en_nz->variant_root = $en->slug; 743 $en->variants[ $en_nz->slug ] = $en_nz->english_name; 744 745 $en_za = new GP_Locale(); 746 $en_za->english_name = 'English (South Africa)'; 747 $en_za->native_name = 'English (South Africa)'; 748 $en_za->lang_code_iso_639_1 = 'en'; 749 $en_za->lang_code_iso_639_2 = 'eng'; 750 $en_za->lang_code_iso_639_3 = 'eng'; 751 $en_za->country_code = 'za'; 752 $en_za->wp_locale = 'en_ZA'; 753 $en_za->slug = 'en-za'; 754 $en_za->google_code = 'en'; 755 $en_za->variant_root = $en->slug; 756 $en->variants[ $en_za->slug ] = $en_za->english_name; 757 758 $eo = new GP_Locale(); 759 $eo->english_name = 'Esperanto'; 760 $eo->native_name = 'Esperanto'; 761 $eo->lang_code_iso_639_1 = 'eo'; 762 $eo->lang_code_iso_639_2 = 'epo'; 763 $eo->wp_locale = 'eo'; 764 $eo->slug = 'eo'; 765 $eo->google_code = 'eo'; 766 $eo->facebook_locale = 'eo_EO'; 767 768 $es = new GP_Locale(); 769 $es->english_name = 'Spanish (Spain)'; 770 $es->native_name = 'Español'; 771 $es->lang_code_iso_639_1 = 'es'; 772 $es->lang_code_iso_639_2 = 'spa'; 773 $es->lang_code_iso_639_3 = 'spa'; 774 $es->country_code = 'es'; 775 $es->wp_locale = 'es_ES'; 776 $es->slug = 'es'; 777 $es->google_code = 'es'; 778 $es->facebook_locale = 'es_ES'; 779 780 $es_ar = new GP_Locale(); 781 $es_ar->english_name = 'Spanish (Argentina)'; 782 $es_ar->native_name = 'Español de Argentina'; 783 $es_ar->lang_code_iso_639_1 = 'es'; 784 $es_ar->lang_code_iso_639_2 = 'spa'; 785 $es_ar->lang_code_iso_639_3 = 'spa'; 786 $es_ar->country_code = 'ar'; 787 $es_ar->wp_locale = 'es_AR'; 788 $es_ar->slug = 'es-ar'; 789 $es_ar->google_code = 'es'; 790 $es_ar->facebook_locale = 'es_LA'; 791 $es_ar->variant_root = $es->slug; 792 $es->variants[ $es_ar->slug ] = $es_ar->english_name; 793 794 $es_cl = new GP_Locale(); 795 $es_cl->english_name = 'Spanish (Chile)'; 796 $es_cl->native_name = 'Español de Chile'; 797 $es_cl->lang_code_iso_639_1 = 'es'; 798 $es_cl->lang_code_iso_639_2 = 'spa'; 799 $es_cl->lang_code_iso_639_3 = 'spa'; 800 $es_cl->country_code = 'cl'; 801 $es_cl->wp_locale = 'es_CL'; 802 $es_cl->slug = 'es-cl'; 803 $es_cl->google_code = 'es'; 804 $es_cl->facebook_locale = 'es_LA'; 805 $es_cl->variant_root = $es->slug; 806 $es->variants[ $es_cl->slug ] = $es_cl->english_name; 807 808 $es_co = new GP_Locale(); 809 $es_co->english_name = 'Spanish (Colombia)'; 810 $es_co->native_name = 'Español de Colombia'; 811 $es_co->lang_code_iso_639_1 = 'es'; 812 $es_co->lang_code_iso_639_2 = 'spa'; 813 $es_co->lang_code_iso_639_3 = 'spa'; 814 $es_co->country_code = 'co'; 815 $es_co->wp_locale = 'es_CO'; 816 $es_co->slug = 'es-co'; 817 $es_co->google_code = 'es'; 818 $es_co->facebook_locale = 'es_LA'; 819 $es_co->variant_root = $es->slug; 820 $es->variants[ $es_co->slug ] = $es_co->english_name; 821 822 $es_cr = new GP_Locale(); 823 $es_cr->english_name = 'Spanish (Costa Rica)'; 824 $es_cr->native_name = 'Español de Costa Rica'; 825 $es_cr->lang_code_iso_639_1 = 'es'; 826 $es_cr->lang_code_iso_639_2 = 'spa'; 827 $es_cr->lang_code_iso_639_3 = 'spa'; 828 $es_cr->country_code = 'cr'; 829 $es_cr->wp_locale = 'es_CR'; 830 $es_cr->slug = 'es-cr'; 831 $es_cr->google_code = 'es'; 832 $es_cr->facebook_locale = 'es_LA'; 833 $es_cr->variant_root = $es->slug; 834 $es->variants[ $es_cr->slug ] = $es_cr->english_name; 835 836 $es_do = new GP_Locale(); 837 $es_do->english_name = 'Spanish (Dominican Republic)'; 838 $es_do->native_name = 'Español de República Dominicana'; 839 $es_do->lang_code_iso_639_1 = 'es'; 840 $es_do->lang_code_iso_639_2 = 'spa'; 841 $es_do->lang_code_iso_639_3 = 'spa'; 842 $es_do->country_code = 'do'; 843 $es_do->wp_locale = 'es_DO'; 844 $es_do->slug = 'es-do'; 845 $es_do->google_code = 'es'; 846 $es_do->facebook_locale = 'es_LA'; 847 $es_do->variant_root = $es->slug; 848 $es->variants[ $es_do->slug ] = $es_do->english_name; 849 850 $es_ec = new GP_Locale(); 851 $es_ec->english_name = 'Spanish (Ecuador)'; 852 $es_ec->native_name = 'Español de Ecuador'; 853 $es_ec->lang_code_iso_639_1 = 'es'; 854 $es_ec->lang_code_iso_639_2 = 'spa'; 855 $es_ec->lang_code_iso_639_3 = 'spa'; 856 $es_ec->country_code = 'ec'; 857 $es_ec->wp_locale = 'es_EC'; 858 $es_ec->slug = 'es-ec'; 859 $es_ec->google_code = 'es'; 860 $es_ec->facebook_locale = 'es_LA'; 861 $es_ec->variant_root = $es->slug; 862 $es->variants[ $es_ec->slug ] = $es_ec->english_name; 863 864 $es_gt = new GP_Locale(); 865 $es_gt->english_name = 'Spanish (Guatemala)'; 866 $es_gt->native_name = 'Español de Guatemala'; 867 $es_gt->lang_code_iso_639_1 = 'es'; 868 $es_gt->lang_code_iso_639_2 = 'spa'; 869 $es_gt->lang_code_iso_639_3 = 'spa'; 870 $es_gt->country_code = 'gt'; 871 $es_gt->wp_locale = 'es_GT'; 872 $es_gt->slug = 'es-gt'; 873 $es_gt->google_code = 'es'; 874 $es_gt->facebook_locale = 'es_LA'; 875 $es_gt->variant_root = $es->slug; 876 $es->variants[ $es_gt->slug ] = $es_gt->english_name; 877 878 $es_hn = new GP_Locale(); 879 $es_hn->english_name = 'Spanish (Honduras)'; 880 $es_hn->native_name = 'Español de Honduras'; 881 $es_hn->lang_code_iso_639_1 = 'es'; 882 $es_hn->lang_code_iso_639_2 = 'spa'; 883 $es_hn->lang_code_iso_639_3 = 'spa'; 884 $es_hn->country_code = 'hn'; 885 $es_hn->wp_locale = 'es_HN'; 886 $es_hn->slug = 'es-hn'; 887 $es_hn->google_code = 'es'; 888 $es_hn->facebook_locale = 'es_LA'; 889 $es_hn->variant_root = $es->slug; 890 $es->variants[ $es_hn->slug ] = $es_hn->english_name; 891 892 $es_mx = new GP_Locale(); 893 $es_mx->english_name = 'Spanish (Mexico)'; 894 $es_mx->native_name = 'Español de México'; 895 $es_mx->lang_code_iso_639_1 = 'es'; 896 $es_mx->lang_code_iso_639_2 = 'spa'; 897 $es_mx->lang_code_iso_639_3 = 'spa'; 898 $es_mx->country_code = 'mx'; 899 $es_mx->wp_locale = 'es_MX'; 900 $es_mx->slug = 'es-mx'; 901 $es_mx->google_code = 'es'; 902 $es_mx->facebook_locale = 'es_MX'; 903 $es_mx->variant_root = $es->slug; 904 $es->variants[ $es_mx->slug ] = $es_mx->english_name; 905 906 $es_pe = new GP_Locale(); 907 $es_pe->english_name = 'Spanish (Peru)'; 908 $es_pe->native_name = 'Español de Perú'; 909 $es_pe->lang_code_iso_639_1 = 'es'; 910 $es_pe->lang_code_iso_639_2 = 'spa'; 911 $es_pe->lang_code_iso_639_3 = 'spa'; 912 $es_pe->country_code = 'pe'; 913 $es_pe->wp_locale = 'es_PE'; 914 $es_pe->slug = 'es-pe'; 915 $es_pe->google_code = 'es'; 916 $es_pe->facebook_locale = 'es_LA'; 917 $es_pe->variant_root = $es->slug; 918 $es->variants[ $es_pe->slug ] = $es_pe->english_name; 919 920 $es_pr = new GP_Locale(); 921 $es_pr->english_name = 'Spanish (Puerto Rico)'; 922 $es_pr->native_name = 'Español de Puerto Rico'; 923 $es_pr->lang_code_iso_639_1 = 'es'; 924 $es_pr->lang_code_iso_639_2 = 'spa'; 925 $es_pr->lang_code_iso_639_3 = 'spa'; 926 $es_pr->country_code = 'pr'; 927 $es_pr->wp_locale = 'es_PR'; 928 $es_pr->slug = 'es-pr'; 929 $es_pr->google_code = 'es'; 930 $es_pr->facebook_locale = 'es_LA'; 931 $es_pr->variant_root = $es->slug; 932 $es->variants[ $es_pr->slug ] = $es_pr->english_name; 933 934 $es_us = new GP_Locale(); 935 $es_us->english_name = 'Spanish (US)'; 936 $es_us->native_name = 'Español de los Estados Unidos'; 937 $es_us->lang_code_iso_639_1 = 'es'; 938 $es_us->lang_code_iso_639_2 = 'spa'; 939 $es_us->lang_code_iso_639_3 = 'spa'; 940 $es_us->country_code = 'us'; 941 $es_us->slug = 'es-us'; 942 $es_us->google_code = 'es'; 943 $es->variants[ $es_us->slug ] = $es_us->english_name; 944 945 $es_uy = new GP_Locale(); 946 $es_uy->english_name = 'Spanish (Uruguay)'; 947 $es_uy->native_name = 'Español de Uruguay'; 948 $es_uy->lang_code_iso_639_1 = 'es'; 949 $es_uy->lang_code_iso_639_2 = 'spa'; 950 $es_uy->lang_code_iso_639_3 = 'spa'; 951 $es_uy->country_code = 'uy'; 952 $es_uy->wp_locale = 'es_UY'; 953 $es_uy->slug = 'es-uy'; 954 $es_uy->google_code = 'es'; 955 $es_uy->facebook_locale = 'es_LA'; 956 $es_uy->variant_root = $es->slug; 957 $es->variants[ $es_uy->slug ] = $es_uy->english_name; 958 959 $es_ve = new GP_Locale(); 960 $es_ve->english_name = 'Spanish (Venezuela)'; 961 $es_ve->native_name = 'Español de Venezuela'; 962 $es_ve->lang_code_iso_639_1 = 'es'; 963 $es_ve->lang_code_iso_639_2 = 'spa'; 964 $es_ve->lang_code_iso_639_3 = 'spa'; 965 $es_ve->country_code = 've'; 966 $es_ve->wp_locale = 'es_VE'; 967 $es_ve->slug = 'es-ve'; 968 $es_ve->google_code = 'es'; 969 $es_ve->facebook_locale = 'es_LA'; 970 $es_ve->variant_root = $es->slug; 971 $es->variants[ $es_ve->slug ] = $es_ve->english_name; 972 973 $et = new GP_Locale(); 974 $et->english_name = 'Estonian'; 975 $et->native_name = 'Eesti'; 976 $et->lang_code_iso_639_1 = 'et'; 977 $et->lang_code_iso_639_2 = 'est'; 978 $et->country_code = 'ee'; 979 $et->wp_locale = 'et'; 980 $et->slug = 'et'; 981 $et->google_code = 'et'; 982 $et->facebook_locale = 'et_EE'; 983 984 $eu = new GP_Locale(); 985 $eu->english_name = 'Basque'; 986 $eu->native_name = 'Euskara'; 987 $eu->lang_code_iso_639_1 = 'eu'; 988 $eu->lang_code_iso_639_2 = 'eus'; 989 $eu->country_code = 'es'; 990 $eu->wp_locale = 'eu'; 991 $eu->slug = 'eu'; 992 $eu->google_code = 'eu'; 993 $eu->facebook_locale = 'eu_ES'; 994 995 $fa = new GP_Locale(); 996 $fa->english_name = 'Persian'; 997 $fa->native_name = 'فارسی'; 998 $fa->lang_code_iso_639_1 = 'fa'; 999 $fa->lang_code_iso_639_2 = 'fas'; 1000 $fa->wp_locale = 'fa_IR'; 1001 $fa->slug = 'fa'; 1002 $fa->nplurals = 2; 1003 $fa->plural_expression = 'n > 1'; 1004 $fa->text_direction = 'rtl'; 1005 $fa->google_code = 'fa'; 1006 $fa->facebook_locale = 'fa_IR'; 1007 1008 $fa_af = new GP_Locale(); 1009 $fa_af->english_name = 'Persian (Afghanistan)'; 1010 $fa_af->native_name = '(فارسی (افغانستان'; 1011 $fa_af->lang_code_iso_639_1 = 'fa'; 1012 $fa_af->lang_code_iso_639_2 = 'fas'; 1013 $fa_af->wp_locale = 'fa_AF'; 1014 $fa_af->slug = 'fa-af'; 1015 $fa_af->nplurals = 2; 1016 $fa_af->plural_expression = 'n > 1'; 1017 $fa_af->text_direction = 'rtl'; 1018 $fa_af->google_code = 'fa'; 1019 $fa_af->variant_root = $fa->slug; 1020 $fa->variants[ $fa_af->slug ] = $fa_af->english_name; 1021 1022 $ff_sn = new GP_Locale(); 1023 $ff_sn->english_name = 'Fulah'; 1024 $ff_sn->native_name = 'Pulaar'; 1025 $ff_sn->lang_code_iso_639_1 = 'ff'; 1026 $ff_sn->lang_code_iso_639_2 = 'fuc'; 1027 $ff_sn->country_code = 'sn'; 1028 $ff_sn->wp_locale = 'fuc'; 1029 $ff_sn->slug = 'fuc'; 1030 1031 $fi = new GP_Locale(); 1032 $fi->english_name = 'Finnish'; 1033 $fi->native_name = 'Suomi'; 1034 $fi->lang_code_iso_639_1 = 'fi'; 1035 $fi->lang_code_iso_639_2 = 'fin'; 1036 $fi->country_code = 'fi'; 1037 $fi->wp_locale = 'fi'; 1038 $fi->slug = 'fi'; 1039 $fi->google_code = 'fi'; 1040 $fi->facebook_locale = 'fi_FI'; 1041 1042 $fj = new GP_Locale(); 1043 $fj->english_name = 'Fijian'; 1044 $fj->native_name = 'Vosa Vakaviti'; 1045 $fj->lang_code_iso_639_1 = 'fj'; 1046 $fj->lang_code_iso_639_2 = 'fij'; 1047 $fj->country_code = 'fj'; 1048 $fj->slug = 'fj'; 1049 1050 $fo = new GP_Locale(); 1051 $fo->english_name = 'Faroese'; 1052 $fo->native_name = 'Føroyskt'; 1053 $fo->lang_code_iso_639_1 = 'fo'; 1054 $fo->lang_code_iso_639_2 = 'fao'; 1055 $fo->country_code = 'fo'; 1056 $fo->wp_locale = 'fo'; 1057 $fo->slug = 'fo'; 1058 $fo->facebook_locale = 'fo_FO'; 1059 1060 $fon = new GP_Locale(); 1061 $fon->english_name = 'Fon'; 1062 $fon->native_name = 'fɔ̀ngbè'; 1063 $fon->lang_code_iso_639_2 = 'fon'; 1064 $fon->lang_code_iso_639_3 = 'fon'; 1065 $fon->country_code = 'bj'; 1066 $fon->wp_locale = 'fon'; 1067 $fon->slug = 'fon'; 1068 1069 $fr = new GP_Locale(); 1070 $fr->english_name = 'French (France)'; 1071 $fr->native_name = 'Français'; 1072 $fr->lang_code_iso_639_1 = 'fr'; 1073 $fr->country_code = 'fr'; 1074 $fr->wp_locale = 'fr_FR'; 1075 $fr->slug = 'fr'; 1076 $fr->nplurals = 2; 1077 $fr->plural_expression = 'n > 1'; 1078 $fr->google_code = 'fr'; 1079 $fr->facebook_locale = 'fr_FR'; 1080 1081 $fr_be = new GP_Locale(); 1082 $fr_be->english_name = 'French (Belgium)'; 1083 $fr_be->native_name = 'Français de Belgique'; 1084 $fr_be->lang_code_iso_639_1 = 'fr'; 1085 $fr_be->lang_code_iso_639_2 = 'fra'; 1086 $fr_be->country_code = 'be'; 1087 $fr_be->wp_locale = 'fr_BE'; 1088 $fr_be->slug = 'fr-be'; 1089 $fr_be->nplurals = 2; 1090 $fr_be->plural_expression = 'n > 1'; 1091 $fr_be->variant_root = $fr->slug; 1092 $fr->variants[ $fr_be->slug ] = $fr_be->english_name; 1093 1094 $fr_ca = new GP_Locale(); 1095 $fr_ca->english_name = 'French (Canada)'; 1096 $fr_ca->native_name = 'Français du Canada'; 1097 $fr_ca->lang_code_iso_639_1 = 'fr'; 1098 $fr_ca->lang_code_iso_639_2 = 'fra'; 1099 $fr_ca->country_code = 'ca'; 1100 $fr_ca->wp_locale = 'fr_CA'; 1101 $fr_ca->slug = 'fr-ca'; 1102 $fr_ca->nplurals = 2; 1103 $fr_ca->plural_expression = 'n > 1'; 1104 $fr_ca->facebook_locale = 'fr_CA'; 1105 $fr_ca->variant_root = $fr->slug; 1106 $fr->variants[ $fr_ca->slug ] = $fr_ca->english_name; 1107 1108 $fr_ch = new GP_Locale(); 1109 $fr_ch->english_name = 'French (Switzerland)'; 1110 $fr_ch->native_name = 'Français de Suisse'; 1111 $fr_ch->lang_code_iso_639_1 = 'fr'; 1112 $fr_ch->lang_code_iso_639_2 = 'fra'; 1113 $fr_ch->country_code = 'ch'; 1114 $fr_ch->slug = 'fr-ch'; 1115 $fr_ch->nplurals = 2; 1116 $fr_ch->plural_expression = 'n > 1'; 1117 $fr_ch->variant_root = $fr->slug; 1118 $fr->variants[ $fr_ch->slug ] = $fr_ch->english_name; 1119 1120 $frp = new GP_Locale(); 1121 $frp->english_name = 'Arpitan'; 1122 $frp->native_name = 'Arpitan'; 1123 $frp->lang_code_iso_639_3 = 'frp'; 1124 $frp->country_code = 'fr'; 1125 $frp->wp_locale = 'frp'; 1126 $frp->slug = 'frp'; 1127 $frp->nplurals = 2; 1128 $frp->plural_expression = 'n > 1'; 1129 1130 $ful = new GP_Locale(); 1131 $ful->english_name = 'Fula'; 1132 $ful->native_name = 'Fulfulde'; 1133 $ful->lang_code_iso_639_1 = 'ff'; 1134 $ful->lang_code_iso_639_2 = 'ful'; 1135 $ful->lang_code_iso_639_3 = 'ful'; 1136 $ful->country_code = 'ng'; 1137 $ful->slug = 'ful'; 1138 $ful->facebook_locale = 'ff_NG'; 1139 1140 $fur = new GP_Locale(); 1141 $fur->english_name = 'Friulian'; 1142 $fur->native_name = 'Friulian'; 1143 $fur->lang_code_iso_639_2 = 'fur'; 1144 $fur->lang_code_iso_639_3 = 'fur'; 1145 $fur->country_code = 'it'; 1146 $fur->wp_locale = 'fur'; 1147 $fur->slug = 'fur'; 1148 1149 $fy = new GP_Locale(); 1150 $fy->english_name = 'Frisian'; 1151 $fy->native_name = 'Frysk'; 1152 $fy->lang_code_iso_639_1 = 'fy'; 1153 $fy->lang_code_iso_639_2 = 'fry'; 1154 $fy->country_code = 'nl'; 1155 $fy->wp_locale = 'fy'; 1156 $fy->slug = 'fy'; 1157 $fy->facebook_locale = 'fy_NL'; 1158 1159 $ga = new GP_Locale(); 1160 $ga->english_name = 'Irish'; 1161 $ga->native_name = 'Gaelige'; 1162 $ga->lang_code_iso_639_1 = 'ga'; 1163 $ga->lang_code_iso_639_2 = 'gle'; 1164 $ga->country_code = 'ie'; 1165 $ga->slug = 'ga'; 1166 $ga->wp_locale = 'ga'; 1167 $ga->nplurals = 5; 1168 $ga->plural_expression = '(n == 1) ? 0 : ((n == 2) ? 1 : ((n >= 3 && n <= 6) ? 2 : ((n >= 7 && n <= 10) ? 3 : 4)))'; 1169 $ga->google_code = 'ga'; 1170 $ga->facebook_locale = 'ga_IE'; 1171 1172 $gax = new GP_Locale(); 1173 $gax->english_name = 'Borana-Arsi-Guji Oromo'; 1174 $gax->native_name = 'Afaan Oromoo'; 1175 $gax->lang_code_iso_639_3 = 'gax'; 1176 $gax->country_code = 'et'; 1177 $gax->slug = 'gax'; 1178 $gax->wp_locale = 'gax'; 1179 $gax->nplurals = 2; 1180 $gax->plural_expression = 'n > 1'; 1181 1182 $gd = new GP_Locale(); 1183 $gd->english_name = 'Scottish Gaelic'; 1184 $gd->native_name = 'Gàidhlig'; 1185 $gd->lang_code_iso_639_1 = 'gd'; 1186 $gd->lang_code_iso_639_2 = 'gla'; 1187 $gd->lang_code_iso_639_3 = 'gla'; 1188 $gd->country_code = 'gb'; 1189 $gd->wp_locale = 'gd'; 1190 $gd->slug = 'gd'; 1191 $gd->nplurals = 4; 1192 $gd->plural_expression = '(n == 1 || n == 11) ? 0 : ((n == 2 || n == 12) ? 1 : ((n >= 3 && n <= 10 || n >= 13 && n <= 19) ? 2 : 3))'; 1193 $gd->google_code = 'gd'; 1194 1195 $gl = new GP_Locale(); 1196 $gl->english_name = 'Galician'; 1197 $gl->native_name = 'Galego'; 1198 $gl->lang_code_iso_639_1 = 'gl'; 1199 $gl->lang_code_iso_639_2 = 'glg'; 1200 $gl->country_code = 'es'; 1201 $gl->wp_locale = 'gl_ES'; 1202 $gl->slug = 'gl'; 1203 $gl->google_code = 'gl'; 1204 $gl->facebook_locale = 'gl_ES'; 1205 1206 $gn = new GP_Locale(); 1207 $gn->english_name = 'Guaraní'; 1208 $gn->native_name = 'Avañe\'ẽ'; 1209 $gn->lang_code_iso_639_1 = 'gn'; 1210 $gn->lang_code_iso_639_2 = 'grn'; 1211 $gn->slug = 'gn'; 1212 1213 $gsw = new GP_Locale(); 1214 $gsw->english_name = 'Swiss German'; 1215 $gsw->native_name = 'Schwyzerdütsch'; 1216 $gsw->lang_code_iso_639_2 = 'gsw'; 1217 $gsw->lang_code_iso_639_3 = 'gsw'; 1218 $gsw->country_code = 'ch'; 1219 $gsw->slug = 'gsw'; 1220 1221 $gu = new GP_Locale(); 1222 $gu->english_name = 'Gujarati'; 1223 $gu->native_name = 'ગુજરાતી'; 1224 $gu->lang_code_iso_639_1 = 'gu'; 1225 $gu->lang_code_iso_639_2 = 'guj'; 1226 $gu->wp_locale = 'gu'; 1227 $gu->slug = 'gu'; 1228 $gu->google_code = 'gu'; 1229 $gu->facebook_locale = 'gu_IN'; 1230 1231 $ha = new GP_Locale(); 1232 $ha->english_name = 'Hausa (Arabic)'; 1233 $ha->native_name = 'هَوُسَ'; 1234 $ha->lang_code_iso_639_1 = 'ha'; 1235 $ha->lang_code_iso_639_2 = 'hau'; 1236 $ha->slug = 'ha'; 1237 $ha->text_direction = 'rtl'; 1238 $ha->google_code = 'ha'; 1239 1240 $hat = new GP_Locale(); 1241 $hat->english_name = 'Haitian Creole'; 1242 $hat->native_name = 'Kreyol ayisyen'; 1243 $hat->lang_code_iso_639_1 = 'ht'; 1244 $hat->lang_code_iso_639_2 = 'hat'; 1245 $hat->lang_code_iso_639_3 = 'hat'; 1246 $hat->country_code = 'ht'; 1247 $hat->wp_locale = 'hat'; 1248 $hat->slug = 'hat'; 1249 1250 $hau = new GP_Locale(); 1251 $hau->english_name = 'Hausa'; 1252 $hau->native_name = 'Harshen Hausa'; 1253 $hau->lang_code_iso_639_1 = 'ha'; 1254 $hau->lang_code_iso_639_2 = 'hau'; 1255 $hau->lang_code_iso_639_3 = 'hau'; 1256 $hau->country_code = 'ng'; 1257 $hau->wp_locale = 'hau'; 1258 $hau->slug = 'hau'; 1259 $hau->google_code = 'ha'; 1260 $hau->facebook_locale = 'ha_NG'; 1261 1262 $haw = new GP_Locale(); 1263 $haw->english_name = 'Hawaiian'; 1264 $haw->native_name = 'Ōlelo Hawaiʻi'; 1265 $haw->lang_code_iso_639_2 = 'haw'; 1266 $haw->country_code = 'us'; 1267 $haw->wp_locale = 'haw_US'; 1268 $haw->slug = 'haw'; 1269 1270 $haz = new GP_Locale(); 1271 $haz->english_name = 'Hazaragi'; 1272 $haz->native_name = 'هزاره گی'; 1273 $haz->lang_code_iso_639_3 = 'haz'; 1274 $haz->country_code = 'af'; 1275 $haz->wp_locale = 'haz'; 1276 $haz->slug = 'haz'; 1277 $haz->text_direction = 'rtl'; 1278 1279 $he = new GP_Locale(); 1280 $he->english_name = 'Hebrew'; 1281 $he->native_name = 'עִבְרִית'; 1282 $he->lang_code_iso_639_1 = 'he'; 1283 $he->country_code = 'il'; 1284 $he->wp_locale = 'he_IL'; 1285 $he->slug = 'he'; 1286 $he->text_direction = 'rtl'; 1287 $he->google_code = 'iw'; 1288 $he->facebook_locale = 'he_IL'; 1289 1290 $hi = new GP_Locale(); 1291 $hi->english_name = 'Hindi'; 1292 $hi->native_name = 'हिन्दी'; 1293 $hi->lang_code_iso_639_1 = 'hi'; 1294 $hi->lang_code_iso_639_2 = 'hin'; 1295 $hi->country_code = 'in'; 1296 $hi->wp_locale = 'hi_IN'; 1297 $hi->slug = 'hi'; 1298 $hi->google_code = 'hi'; 1299 $hi->facebook_locale = 'hi_IN'; 1300 1301 $hr = new GP_Locale(); 1302 $hr->english_name = 'Croatian'; 1303 $hr->native_name = 'Hrvatski'; 1304 $hr->lang_code_iso_639_1 = 'hr'; 1305 $hr->lang_code_iso_639_2 = 'hrv'; 1306 $hr->country_code = 'hr'; 1307 $hr->wp_locale = 'hr'; 1308 $hr->slug = 'hr'; 1309 $hr->nplurals = 3; 1310 $hr->plural_expression = '(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2)'; 1311 $hr->google_code = 'hr'; 1312 $hr->facebook_locale = 'hr_HR'; 1313 1314 $hsb = new GP_Locale(); 1315 $hsb->english_name = 'Upper Sorbian'; 1316 $hsb->native_name = 'Hornjoserbšćina'; 1317 $hsb->lang_code_iso_639_2 = 'hsb'; 1318 $hsb->lang_code_iso_639_3 = 'hsb'; 1319 $hsb->country_code = 'de'; 1320 $hsb->wp_locale = 'hsb'; 1321 $hsb->slug = 'hsb'; 1322 $hsb->nplurals = 4; 1323 $hsb->plural_expression = '(n % 100 == 1) ? 0 : ((n % 100 == 2) ? 1 : ((n % 100 == 3 || n % 100 == 4) ? 2 : 3))'; 1324 1325 $hu = new GP_Locale(); 1326 $hu->english_name = 'Hungarian'; 1327 $hu->native_name = 'Magyar'; 1328 $hu->lang_code_iso_639_1 = 'hu'; 1329 $hu->lang_code_iso_639_2 = 'hun'; 1330 $hu->country_code = 'hu'; 1331 $hu->wp_locale = 'hu_HU'; 1332 $hu->slug = 'hu'; 1333 $hu->google_code = 'hu'; 1334 $hu->facebook_locale = 'hu_HU'; 1335 1336 $hy = new GP_Locale(); 1337 $hy->english_name = 'Armenian'; 1338 $hy->native_name = 'Հայերեն'; 1339 $hy->lang_code_iso_639_1 = 'hy'; 1340 $hy->lang_code_iso_639_2 = 'hye'; 1341 $hy->country_code = 'am'; 1342 $hy->wp_locale = 'hy'; 1343 $hy->slug = 'hy'; 1344 $hy->google_code = 'hy'; 1345 $hy->facebook_locale = 'hy_AM'; 1346 1347 $ia = new GP_Locale(); 1348 $ia->english_name = 'Interlingua'; 1349 $ia->native_name = 'Interlingua'; 1350 $ia->lang_code_iso_639_1 = 'ia'; 1351 $ia->lang_code_iso_639_2 = 'ina'; 1352 $ia->slug = 'ia'; 1353 1354 $ibo = new GP_Locale(); 1355 $ibo->english_name = 'Igbo'; 1356 $ibo->native_name = 'Asụsụ Igbo'; 1357 $ibo->lang_code_iso_639_1 = 'ig'; 1358 $ibo->lang_code_iso_639_2 = 'ibo'; 1359 $ibo->lang_code_iso_639_3 = 'ibo'; 1360 $ibo->country_code = 'ng'; 1361 $ibo->wp_locale = 'ibo'; 1362 $ibo->slug = 'ibo'; 1363 $ibo->nplurals = 1; 1364 $ibo->plural_expression = '0'; 1365 $ibo->google_code = 'ig'; 1366 1367 $id = new GP_Locale(); 1368 $id->english_name = 'Indonesian'; 1369 $id->native_name = 'Bahasa Indonesia'; 1370 $id->lang_code_iso_639_1 = 'id'; 1371 $id->lang_code_iso_639_2 = 'ind'; 1372 $id->country_code = 'id'; 1373 $id->wp_locale = 'id_ID'; 1374 $id->slug = 'id'; 1375 $id->nplurals = 2; 1376 $id->plural_expression = 'n > 1'; 1377 $id->google_code = 'id'; 1378 $id->facebook_locale = 'id_ID'; 1379 1380 $ido = new GP_Locale(); 1381 $ido->english_name = 'Ido'; 1382 $ido->native_name = 'Ido'; 1383 $ido->lang_code_iso_639_1 = 'io'; 1384 $ido->lang_code_iso_639_2 = 'ido'; 1385 $ido->lang_code_iso_639_3 = 'ido'; 1386 $ido->wp_locale = 'ido'; 1387 $ido->slug = 'ido'; 1388 1389 $ike = new GP_Locale(); 1390 $ike->english_name = 'Inuktitut'; 1391 $ike->native_name = 'ᐃᓄᒃᑎᑐᑦ'; 1392 $ike->lang_code_iso_639_1 = 'iu'; 1393 $ike->lang_code_iso_639_2 = 'iku'; 1394 $ike->country_code = 'ca'; 1395 $ike->slug = 'ike'; 1396 $ike->nplurals = 3; 1397 $ike->plural_expression = '(n == 1) ? 0 : ((n == 2) ? 1 : 2)'; 1398 1399 $ilo = new GP_Locale(); 1400 $ilo->english_name = 'Iloko'; 1401 $ilo->native_name = 'Pagsasao nga Iloko'; 1402 $ilo->lang_code_iso_639_2 = 'ilo'; 1403 $ilo->country_code = 'ph'; 1404 $ilo->slug = 'ilo'; 1405 1406 $is = new GP_Locale(); 1407 $is->english_name = 'Icelandic'; 1408 $is->native_name = 'Íslenska'; 1409 $is->lang_code_iso_639_1 = 'is'; 1410 $is->lang_code_iso_639_2 = 'isl'; 1411 $is->country_code = 'is'; 1412 $is->slug = 'is'; 1413 $is->wp_locale = 'is_IS'; 1414 $is->nplurals = 2; 1415 $is->plural_expression = 'n % 10 != 1 || n % 100 == 11'; 1416 $is->google_code = 'is'; 1417 $is->facebook_locale = 'is_IS'; 1418 1419 $it = new GP_Locale(); 1420 $it->english_name = 'Italian'; 1421 $it->native_name = 'Italiano'; 1422 $it->lang_code_iso_639_1 = 'it'; 1423 $it->lang_code_iso_639_2 = 'ita'; 1424 $it->country_code = 'it'; 1425 $it->wp_locale = 'it_IT'; 1426 $it->slug = 'it'; 1427 $it->google_code = 'it'; 1428 $it->facebook_locale = 'it_IT'; 1429 1430 $ja = new GP_Locale(); 1431 $ja->english_name = 'Japanese'; 1432 $ja->native_name = '日本語'; 1433 $ja->lang_code_iso_639_1 = 'ja'; 1434 $ja->country_code = 'jp'; 1435 $ja->wp_locale = 'ja'; 1436 $ja->slug = 'ja'; 1437 $ja->google_code = 'ja'; 1438 $ja->facebook_locale = 'ja_JP'; 1439 $ja->nplurals = 1; 1440 $ja->plural_expression = '0'; 1441 1442 $jv = new GP_Locale(); 1443 $jv->english_name = 'Javanese'; 1444 $jv->native_name = 'Basa Jawa'; 1445 $jv->lang_code_iso_639_1 = 'jv'; 1446 $jv->lang_code_iso_639_2 = 'jav'; 1447 $jv->country_code = 'id'; 1448 $jv->wp_locale = 'jv_ID'; 1449 $jv->slug = 'jv'; 1450 $jv->google_code = 'jw'; 1451 $jv->facebook_locale = 'jv_ID'; 1452 1453 $ka = new GP_Locale(); 1454 $ka->english_name = 'Georgian'; 1455 $ka->native_name = 'ქართული'; 1456 $ka->lang_code_iso_639_1 = 'ka'; 1457 $ka->lang_code_iso_639_2 = 'kat'; 1458 $ka->country_code = 'ge'; 1459 $ka->wp_locale = 'ka_GE'; 1460 $ka->slug = 'ka'; 1461 $ka->nplurals = 1; 1462 $ka->plural_expression = '0'; 1463 $ka->google_code = 'ka'; 1464 $ka->facebook_locale = 'ka_GE'; 1465 1466 $kaa = new GP_Locale(); 1467 $kaa->english_name = 'Karakalpak'; 1468 $kaa->native_name = 'Qaraqalpaq tili'; 1469 $kaa->lang_code_iso_639_2 = 'kaa'; 1470 $kaa->lang_code_iso_639_3 = 'kaa'; 1471 $kaa->country_code = 'uz'; 1472 $kaa->wp_locale = 'kaa'; 1473 $kaa->slug = 'kaa'; 1474 1475 $kab = new GP_Locale(); 1476 $kab->english_name = 'Kabyle'; 1477 $kab->native_name = 'Taqbaylit'; 1478 $kab->lang_code_iso_639_2 = 'kab'; 1479 $kab->lang_code_iso_639_3 = 'kab'; 1480 $kab->country_code = 'dz'; 1481 $kab->wp_locale = 'kab'; 1482 $kab->slug = 'kab'; 1483 $kab->nplurals = 2; 1484 $kab->plural_expression = 'n > 1'; 1485 1486 $kal = new GP_Locale(); 1487 $kal->english_name = 'Greenlandic'; 1488 $kal->native_name = 'Kalaallisut'; 1489 $kal->lang_code_iso_639_1 = 'kl'; 1490 $kal->lang_code_iso_639_2 = 'kal'; 1491 $kal->lang_code_iso_639_3 = 'kal'; 1492 $kal->country_code = 'gl'; 1493 $kal->wp_locale = 'kal'; 1494 $kal->slug = 'kal'; 1495 1496 $kin = new GP_Locale(); 1497 $kin->english_name = 'Kinyarwanda'; 1498 $kin->native_name = 'Ikinyarwanda'; 1499 $kin->lang_code_iso_639_1 = 'rw'; 1500 $kin->lang_code_iso_639_2 = 'kin'; 1501 $kin->lang_code_iso_639_3 = 'kin'; 1502 $kin->wp_locale = 'kin'; 1503 $kin->country_code = 'rw'; 1504 $kin->slug = 'kin'; 1505 $kin->facebook_locale = 'rw_RW'; 1506 1507 $kk = new GP_Locale(); 1508 $kk->english_name = 'Kazakh'; 1509 $kk->native_name = 'Қазақ тілі'; 1510 $kk->lang_code_iso_639_1 = 'kk'; 1511 $kk->lang_code_iso_639_2 = 'kaz'; 1512 $kk->country_code = 'kz'; 1513 $kk->wp_locale = 'kk'; 1514 $kk->slug = 'kk'; 1515 $kk->google_code = 'kk'; 1516 $kk->facebook_locale = 'kk_KZ'; 1517 1518 $km = new GP_Locale(); 1519 $km->english_name = 'Khmer'; 1520 $km->native_name = 'ភាសាខ្មែរ'; 1521 $km->lang_code_iso_639_1 = 'km'; 1522 $km->lang_code_iso_639_2 = 'khm'; 1523 $km->country_code = 'kh'; 1524 $km->wp_locale = 'km'; 1525 $km->slug = 'km'; 1526 $km->nplurals = 1; 1527 $km->plural_expression = '0'; 1528 $km->google_code = 'km'; 1529 $km->facebook_locale = 'km_KH'; 1530 1531 $kmr = new GP_Locale(); 1532 $kmr->english_name = 'Kurdish (Kurmanji)'; 1533 $kmr->native_name = 'Kurdî'; 1534 $kmr->lang_code_iso_639_1 = 'ku'; 1535 $kmr->lang_code_iso_639_3 = 'kmr'; 1536 $kmr->country_code = 'tr'; 1537 $kmr->wp_locale = 'kmr'; 1538 $kmr->slug = 'kmr'; 1539 $kmr->facebook_locale = 'ku_TR'; 1540 1541 $kn = new GP_Locale(); 1542 $kn->english_name = 'Kannada'; 1543 $kn->native_name = 'ಕನ್ನಡ'; 1544 $kn->lang_code_iso_639_1 = 'kn'; 1545 $kn->lang_code_iso_639_2 = 'kan'; 1546 $kn->country_code = 'in'; 1547 $kn->wp_locale = 'kn'; 1548 $kn->slug = 'kn'; 1549 $kn->google_code = 'kn'; 1550 $kn->facebook_locale = 'kn_IN'; 1551 1552 $ko = new GP_Locale(); 1553 $ko->english_name = 'Korean'; 1554 $ko->native_name = '한국어'; 1555 $ko->lang_code_iso_639_1 = 'ko'; 1556 $ko->lang_code_iso_639_2 = 'kor'; 1557 $ko->country_code = 'kr'; 1558 $ko->wp_locale = 'ko_KR'; 1559 $ko->slug = 'ko'; 1560 $ko->nplurals = 1; 1561 $ko->plural_expression = '0'; 1562 $ko->google_code = 'ko'; 1563 $ko->facebook_locale = 'ko_KR'; 1564 1565 $ks = new GP_Locale(); 1566 $ks->english_name = 'Kashmiri'; 1567 $ks->native_name = 'कश्मीरी'; 1568 $ks->lang_code_iso_639_1 = 'ks'; 1569 $ks->lang_code_iso_639_2 = 'kas'; 1570 $ks->slug = 'ks'; 1571 1572 $kir = new GP_Locale(); 1573 $kir->english_name = 'Kyrgyz'; 1574 $kir->native_name = 'Кыргызча'; 1575 $kir->lang_code_iso_639_1 = 'ky'; 1576 $kir->lang_code_iso_639_2 = 'kir'; 1577 $kir->lang_code_iso_639_3 = 'kir'; 1578 $kir->country_code = 'kg'; 1579 $kir->wp_locale = 'kir'; 1580 $kir->slug = 'kir'; 1581 $kir->nplurals = 1; 1582 $kir->plural_expression = '0'; 1583 $kir->google_code = 'ky'; 1584 1585 $la = new GP_Locale(); 1586 $la->english_name = 'Latin'; 1587 $la->native_name = 'Latine'; 1588 $la->lang_code_iso_639_1 = 'la'; 1589 $la->lang_code_iso_639_2 = 'lat'; 1590 $la->slug = 'la'; 1591 $la->google_code = 'la'; 1592 $la->facebook_locale = 'la_VA'; 1593 1594 $lb = new GP_Locale(); 1595 $lb->english_name = 'Luxembourgish'; 1596 $lb->native_name = 'Lëtzebuergesch'; 1597 $lb->lang_code_iso_639_1 = 'lb'; 1598 $lb->country_code = 'lu'; 1599 $lb->wp_locale = 'lb_LU'; 1600 $lb->slug = 'lb'; 1601 1602 $li = new GP_Locale(); 1603 $li->english_name = 'Limburgish'; 1604 $li->native_name = 'Limburgs'; 1605 $li->lang_code_iso_639_1 = 'li'; 1606 $li->lang_code_iso_639_2 = 'lim'; 1607 $li->lang_code_iso_639_3 = 'lim'; 1608 $li->country_code = 'nl'; 1609 $li->wp_locale = 'li'; 1610 $li->slug = 'li'; 1611 $li->facebook_locale = 'li_NL'; 1612 1613 $lij = new GP_Locale(); 1614 $lij->english_name = 'Ligurian'; 1615 $lij->native_name = 'Lìgure'; 1616 $lij->lang_code_iso_639_3 = 'lij'; 1617 $lij->country_code = 'it'; 1618 $lij->wp_locale = 'lij'; 1619 $lij->slug = 'lij'; 1620 1621 $lin = new GP_Locale(); 1622 $lin->english_name = 'Lingala'; 1623 $lin->native_name = 'Ngala'; 1624 $lin->lang_code_iso_639_1 = 'ln'; 1625 $lin->lang_code_iso_639_2 = 'lin'; 1626 $lin->country_code = 'cd'; 1627 $lin->wp_locale = 'lin'; 1628 $lin->slug = 'lin'; 1629 $lin->nplurals = 2; 1630 $lin->plural_expression = 'n > 1'; 1631 $lin->facebook_locale = 'ln_CD'; 1632 1633 $lmo = new GP_Locale(); 1634 $lmo->english_name = 'Lombard'; 1635 $lmo->native_name = 'Lombardo'; 1636 $lmo->lang_code_iso_639_3 = 'lmo'; 1637 $lmo->country_code = 'it'; 1638 $lmo->wp_locale = 'lmo'; 1639 $lmo->slug = 'lmo'; 1640 1641 $lo = new GP_Locale(); 1642 $lo->english_name = 'Lao'; 1643 $lo->native_name = 'ພາສາລາວ'; 1644 $lo->lang_code_iso_639_1 = 'lo'; 1645 $lo->lang_code_iso_639_2 = 'lao'; 1646 $lo->country_code = 'la'; 1647 $lo->wp_locale = 'lo'; 1648 $lo->slug = 'lo'; 1649 $lo->nplurals = 1; 1650 $lo->plural_expression = '0'; 1651 $lo->google_code = 'lo'; 1652 $lo->facebook_locale = 'lo_LA'; 1653 1654 $lt = new GP_Locale(); 1655 $lt->english_name = 'Lithuanian'; 1656 $lt->native_name = 'Lietuvių kalba'; 1657 $lt->lang_code_iso_639_1 = 'lt'; 1658 $lt->lang_code_iso_639_2 = 'lit'; 1659 $lt->country_code = 'lt'; 1660 $lt->wp_locale = 'lt_LT'; 1661 $lt->slug = 'lt'; 1662 $lt->nplurals = 3; 1663 $lt->plural_expression = '(n % 10 == 1 && (n % 100 < 11 || n % 100 > 19)) ? 0 : ((n % 10 >= 2 && n % 10 <= 9 && (n % 100 < 11 || n % 100 > 19)) ? 1 : 2)'; 1664 $lt->google_code = 'lt'; 1665 $lt->facebook_locale = 'lt_LT'; 1666 1667 $lug = new GP_Locale(); 1668 $lug->english_name = 'Luganda'; 1669 $lug->native_name = 'Oluganda'; 1670 $lug->lang_code_iso_639_1 = 'lg'; 1671 $lug->lang_code_iso_639_2 = 'lug'; 1672 $lug->lang_code_iso_639_3 = 'lug'; 1673 $lug->country_code = 'ug'; 1674 $lug->wp_locale = 'lug'; 1675 $lug->slug = 'lug'; 1676 1677 $lv = new GP_Locale(); 1678 $lv->english_name = 'Latvian'; 1679 $lv->native_name = 'Latviešu valoda'; 1680 $lv->lang_code_iso_639_1 = 'lv'; 1681 $lv->lang_code_iso_639_2 = 'lav'; 1682 $lv->country_code = 'lv'; 1683 $lv->wp_locale = 'lv'; 1684 $lv->slug = 'lv'; 1685 $lv->nplurals = 3; 1686 $lv->plural_expression = '(n % 10 == 0 || n % 100 >= 11 && n % 100 <= 19) ? 0 : ((n % 10 == 1 && n % 100 != 11) ? 1 : 2)'; 1687 $lv->google_code = 'lv'; 1688 $lv->facebook_locale = 'lv_LV'; 1689 1690 $mai = new GP_Locale(); 1691 $mai->english_name = 'Maithili'; 1692 $mai->native_name = 'मैथिली'; 1693 $mai->lang_code_iso_639_2 = 'mai'; 1694 $mai->lang_code_iso_639_3 = 'mai'; 1695 $mai->country_code = 'in'; 1696 $mai->wp_locale = 'mai'; 1697 $mai->slug = 'mai'; 1698 1699 $me = new GP_Locale(); 1700 $me->english_name = 'Montenegrin'; 1701 $me->native_name = 'Crnogorski jezik'; 1702 $me->country_code = 'me'; 1703 $me->wp_locale = 'me_ME'; 1704 $me->slug = 'me'; 1705 $me->nplurals = 3; 1706 $me->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'; 1707 1708 $mfe = new GP_Locale(); 1709 $mfe->english_name = 'Mauritian Creole'; 1710 $mfe->native_name = 'Kreol Morisien'; 1711 $mfe->lang_code_iso_639_3 = 'mfe'; 1712 $mfe->country_code = 'mu'; 1713 $mfe->wp_locale = 'mfe'; 1714 $mfe->slug = 'mfe'; 1715 $mfe->nplurals = 1; 1716 $mfe->plural_expression = '0'; 1717 1718 $mg = new GP_Locale(); 1719 $mg->english_name = 'Malagasy'; 1720 $mg->native_name = 'Malagasy'; 1721 $mg->lang_code_iso_639_1 = 'mg'; 1722 $mg->lang_code_iso_639_2 = 'mlg'; 1723 $mg->country_code = 'mg'; 1724 $mg->wp_locale = 'mg_MG'; 1725 $mg->slug = 'mg'; 1726 $mg->google_code = 'mg'; 1727 $mg->facebook_locale = 'mg_MG'; 1728 1729 $mhr = new GP_Locale(); 1730 $mhr->english_name = 'Mari (Meadow)'; 1731 $mhr->native_name = 'Олык марий'; 1732 $mhr->lang_code_iso_639_3 = 'mhr'; 1733 $mhr->country_code = 'ru'; 1734 $mhr->slug = 'mhr'; 1735 1736 $mk = new GP_Locale(); 1737 $mk->english_name = 'Macedonian'; 1738 $mk->native_name = 'Македонски јазик'; 1739 $mk->lang_code_iso_639_1 = 'mk'; 1740 $mk->lang_code_iso_639_2 = 'mkd'; 1741 $mk->country_code = 'mk'; 1742 $mk->wp_locale = 'mk_MK'; 1743 $mk->slug = 'mk'; 1744 $mk->nplurals = 2; 1745 $mk->plural_expression = 'n % 10 != 1 || n % 100 == 11'; 1746 $mk->google_code = 'mk'; 1747 $mk->facebook_locale = 'mk_MK'; 1748 1749 $ml = new GP_Locale(); 1750 $ml->english_name = 'Malayalam'; 1751 $ml->native_name = 'മലയാളം'; 1752 $ml->lang_code_iso_639_1 = 'ml'; 1753 $ml->lang_code_iso_639_2 = 'mal'; 1754 $ml->country_code = 'in'; 1755 $ml->wp_locale = 'ml_IN'; 1756 $ml->slug = 'ml'; 1757 $ml->google_code = 'ml'; 1758 $ml->facebook_locale = 'ml_IN'; 1759 1760 $mlt = new GP_Locale(); 1761 $mlt->english_name = 'Maltese'; 1762 $mlt->native_name = 'Malti'; 1763 $mlt->lang_code_iso_639_1 = 'mt'; 1764 $mlt->lang_code_iso_639_2 = 'mlt'; 1765 $mlt->lang_code_iso_639_3 = 'mlt'; 1766 $mlt->country_code = 'mt'; 1767 $mlt->wp_locale = 'mlt'; 1768 $mlt->slug = 'mlt'; 1769 $mlt->nplurals = 4; 1770 $mlt->plural_expression = '(n == 1) ? 0 : ((n == 0 || n % 100 >= 2 && n % 100 <= 10) ? 1 : ((n % 100 >= 11 && n % 100 <= 19) ? 2 : 3))'; 1771 $mlt->google_code = 'mt'; 1772 $mlt->facebook_locale = 'mt_MT'; 1773 1774 $mn = new GP_Locale(); 1775 $mn->english_name = 'Mongolian'; 1776 $mn->native_name = 'Монгол'; 1777 $mn->lang_code_iso_639_1 = 'mn'; 1778 $mn->lang_code_iso_639_2 = 'mon'; 1779 $mn->country_code = 'mn'; 1780 $mn->wp_locale = 'mn'; 1781 $mn->slug = 'mn'; 1782 $mn->google_code = 'mn'; 1783 $mn->facebook_locale = 'mn_MN'; 1784 1785 $mr = new GP_Locale(); 1786 $mr->english_name = 'Marathi'; 1787 $mr->native_name = 'मराठी'; 1788 $mr->lang_code_iso_639_1 = 'mr'; 1789 $mr->lang_code_iso_639_2 = 'mar'; 1790 $mr->wp_locale = 'mr'; 1791 $mr->slug = 'mr'; 1792 $mr->google_code = 'mr'; 1793 $mr->facebook_locale = 'mr_IN'; 1794 1795 $mri = new GP_Locale(); 1796 $mri->english_name = 'Maori'; 1797 $mri->native_name = 'Te Reo Māori'; 1798 $mri->lang_code_iso_639_1 = 'mi'; 1799 $mri->lang_code_iso_639_3 = 'mri'; 1800 $mri->country_code = 'nz'; 1801 $mri->slug = 'mri'; 1802 $mri->wp_locale = 'mri'; 1803 $mri->nplurals = 2; 1804 $mri->plural_expression = 'n > 1'; 1805 $mri->google_code = 'mi'; 1806 1807 $mrj = new GP_Locale(); 1808 $mrj->english_name = 'Mari (Hill)'; 1809 $mrj->native_name = 'Кырык мары'; 1810 $mrj->lang_code_iso_639_3 = 'mrj'; 1811 $mrj->country_code = 'ru'; 1812 $mrj->slug = 'mrj'; 1813 1814 $ms = new GP_Locale(); 1815 $ms->english_name = 'Malay'; 1816 $ms->native_name = 'Bahasa Melayu'; 1817 $ms->lang_code_iso_639_1 = 'ms'; 1818 $ms->lang_code_iso_639_2 = 'msa'; 1819 $ms->wp_locale = 'ms_MY'; 1820 $ms->slug = 'ms'; 1821 $ms->nplurals = 1; 1822 $ms->plural_expression = '0'; 1823 $ms->google_code = 'ms'; 1824 $ms->facebook_locale = 'ms_MY'; 1825 1826 $mwl = new GP_Locale(); 1827 $mwl->english_name = 'Mirandese'; 1828 $mwl->native_name = 'Mirandés'; 1829 $mwl->lang_code_iso_639_2 = 'mwl'; 1830 $mwl->slug = 'mwl'; 1831 1832 $my = new GP_Locale(); 1833 $my->english_name = 'Myanmar (Burmese)'; 1834 $my->native_name = 'ဗမာစာ'; 1835 $my->lang_code_iso_639_1 = 'my'; 1836 $my->lang_code_iso_639_2 = 'mya'; 1837 $my->country_code = 'mm'; 1838 $my->wp_locale = 'my_MM'; 1839 $my->slug = 'mya'; 1840 $my->google_code = 'my'; 1841 1842 $ne = new GP_Locale(); 1843 $ne->english_name = 'Nepali'; 1844 $ne->native_name = 'नेपाली'; 1845 $ne->lang_code_iso_639_1 = 'ne'; 1846 $ne->lang_code_iso_639_2 = 'nep'; 1847 $ne->country_code = 'np'; 1848 $ne->wp_locale = 'ne_NP'; 1849 $ne->slug = 'ne'; 1850 $ne->google_code = 'ne'; 1851 $ne->facebook_locale = 'ne_NP'; 1852 1853 $nb = new GP_Locale(); 1854 $nb->english_name = 'Norwegian (Bokmål)'; 1855 $nb->native_name = 'Norsk bokmål'; 1856 $nb->lang_code_iso_639_1 = 'nb'; 1857 $nb->lang_code_iso_639_2 = 'nob'; 1858 $nb->country_code = 'no'; 1859 $nb->wp_locale = 'nb_NO'; 1860 $nb->slug = 'nb'; 1861 $nb->google_code = 'no'; 1862 $nb->facebook_locale = 'nb_NO'; 1863 1864 $nl = new GP_Locale(); 1865 $nl->english_name = 'Dutch'; 1866 $nl->native_name = 'Nederlands'; 1867 $nl->lang_code_iso_639_1 = 'nl'; 1868 $nl->lang_code_iso_639_2 = 'nld'; 1869 $nl->country_code = 'nl'; 1870 $nl->wp_locale = 'nl_NL'; 1871 $nl->slug = 'nl'; 1872 $nl->google_code = 'nl'; 1873 $nl->facebook_locale = 'nl_NL'; 1874 1875 $nl_be = new GP_Locale(); 1876 $nl_be->english_name = 'Dutch (Belgium)'; 1877 $nl_be->native_name = 'Nederlands (België)'; 1878 $nl_be->lang_code_iso_639_1 = 'nl'; 1879 $nl_be->lang_code_iso_639_2 = 'nld'; 1880 $nl_be->country_code = 'be'; 1881 $nl_be->wp_locale = 'nl_BE'; 1882 $nl_be->slug = 'nl-be'; 1883 $nl_be->google_code = 'nl'; 1884 $nl_be->variant_root = $nl->slug; 1885 $nl->variants[ $nl_be->slug ] = $nl_be->english_name; 1886 1887 $no = new GP_Locale(); 1888 $no->english_name = 'Norwegian'; 1889 $no->native_name = 'Norsk'; 1890 $no->lang_code_iso_639_1 = 'no'; 1891 $no->lang_code_iso_639_2 = 'nor'; 1892 $no->country_code = 'no'; 1893 $no->slug = 'no'; 1894 $no->google_code = 'no'; 1895 1896 $nn = new GP_Locale(); 1897 $nn->english_name = 'Norwegian (Nynorsk)'; 1898 $nn->native_name = 'Norsk nynorsk'; 1899 $nn->lang_code_iso_639_1 = 'nn'; 1900 $nn->lang_code_iso_639_2 = 'nno'; 1901 $nn->country_code = 'no'; 1902 $nn->wp_locale = 'nn_NO'; 1903 $nn->slug = 'nn'; 1904 $nn->google_code = 'no'; 1905 $nn->facebook_locale = 'nn_NO'; 1906 $nn->variant_root = $no->slug; 1907 $no->variants[ $nn->slug ] = $nn->english_name; 1908 1909 $nqo = new GP_Locale(); 1910 $nqo->english_name = 'N’ko'; 1911 $nqo->native_name = 'ߒߞߏ'; 1912 $nqo->lang_code_iso_639_2 = 'nqo'; 1913 $nqo->lang_code_iso_639_3 = 'nqo'; 1914 $nqo->country_code = 'gn'; 1915 $nqo->wp_locale = 'nqo'; 1916 $nqo->slug = 'nqo'; 1917 $nqo->text_direction = 'rtl'; 1918 1919 $nso = new GP_Locale(); 1920 $nso->english_name = 'Northern Sotho'; 1921 $nso->native_name = 'Sesotho sa Leboa'; 1922 $nso->lang_code_iso_639_2 = 'nso'; 1923 $nso->lang_code_iso_639_3 = 'nso'; 1924 $nso->country_code = 'za'; 1925 $nso->slug = 'nso'; 1926 1927 $oci = new GP_Locale(); 1928 $oci->english_name = 'Occitan'; 1929 $oci->native_name = 'Occitan'; 1930 $oci->lang_code_iso_639_1 = 'oc'; 1931 $oci->lang_code_iso_639_2 = 'oci'; 1932 $oci->country_code = 'fr'; 1933 $oci->wp_locale = 'oci'; 1934 $oci->slug = 'oci'; 1935 $oci->nplurals = 2; 1936 $oci->plural_expression = 'n > 1'; 1937 1938 $orm = new GP_Locale(); 1939 $orm->english_name = 'Oromo'; 1940 $orm->native_name = 'Afaan Oromo'; 1941 $orm->lang_code_iso_639_1 = 'om'; 1942 $orm->lang_code_iso_639_2 = 'orm'; 1943 $orm->lang_code_iso_639_3 = 'orm'; 1944 $orm->slug = 'orm'; 1945 $orm->plural_expression = 'n > 1'; 1946 1947 $ory = new GP_Locale(); 1948 $ory->english_name = 'Oriya'; 1949 $ory->native_name = 'ଓଡ଼ିଆ'; 1950 $ory->lang_code_iso_639_1 = 'or'; 1951 $ory->lang_code_iso_639_2 = 'ory'; 1952 $ory->country_code = 'in'; 1953 $ory->wp_locale = 'ory'; 1954 $ory->slug = 'ory'; 1955 $ory->facebook_locale = 'or_IN'; 1956 1957 $os = new GP_Locale(); 1958 $os->english_name = 'Ossetic'; 1959 $os->native_name = 'Ирон'; 1960 $os->lang_code_iso_639_1 = 'os'; 1961 $os->lang_code_iso_639_2 = 'oss'; 1962 $os->wp_locale = 'os'; 1963 $os->slug = 'os'; 1964 1965 $pa = new GP_Locale(); 1966 $pa->english_name = 'Panjabi (India)'; 1967 $pa->native_name = 'ਪੰਜਾਬੀ'; 1968 $pa->lang_code_iso_639_1 = 'pa'; 1969 $pa->lang_code_iso_639_2 = 'pan'; 1970 $pa->country_code = 'in'; 1971 $pa->wp_locale = 'pa_IN'; 1972 $pa->slug = 'pa'; 1973 $pa->google_code = 'pa'; 1974 $pa->nplurals = 2; 1975 $pa->plural_expression = 'n > 1'; 1976 $pa->facebook_locale = 'pa_IN'; 1977 1978 $pa_pk = new GP_Locale(); 1979 $pa_pk->english_name = 'Punjabi (Pakistan)'; 1980 $pa_pk->native_name = 'پنجابی'; 1981 $pa_pk->lang_code_iso_639_1 = 'pa'; 1982 $pa_pk->lang_code_iso_639_2 = 'pan'; 1983 $pa_pk->country_code = 'pk'; 1984 $pa_pk->wp_locale = 'pa_PK'; 1985 $pa_pk->slug = 'pa-pk'; 1986 $pa_pk->nplurals = 2; 1987 $pa_pk->plural_expression = 'n > 1'; 1988 $pa_pk->google_code = 'pa'; 1989 1990 $pap_cw = new GP_Locale(); 1991 $pap_cw->english_name = 'Papiamento (Curaçao and Bonaire)'; 1992 $pap_cw->native_name = 'Papiamentu'; 1993 $pap_cw->lang_code_iso_639_2 = 'pap'; 1994 $pap_cw->lang_code_iso_639_3 = 'pap'; 1995 $pap_cw->country_code = 'cw'; 1996 $pap_cw->wp_locale = 'pap_CW'; 1997 $pap_cw->slug = 'pap-cw'; 1998 1999 $pap_aw = new GP_Locale(); 2000 $pap_aw->english_name = 'Papiamento (Aruba)'; 2001 $pap_aw->native_name = 'Papiamento'; 2002 $pap_aw->lang_code_iso_639_2 = 'pap'; 2003 $pap_aw->lang_code_iso_639_3 = 'pap'; 2004 $pap_aw->country_code = 'aw'; 2005 $pap_aw->wp_locale = 'pap_AW'; 2006 $pap_aw->slug = 'pap-aw'; 2007 2008 $pcd = new GP_Locale(); 2009 $pcd->english_name = 'Picard'; 2010 $pcd->native_name = 'Ch’ti'; 2011 $pcd->lang_code_iso_639_3 = 'pcd'; 2012 $pcd->country_code = 'fr'; 2013 $pcd->wp_locale = 'pcd'; 2014 $pcd->slug = 'pcd'; 2015 $pcd->nplurals = 2; 2016 $pcd->plural_expression = 'n > 1'; 2017 2018 $pcm = new GP_Locale(); 2019 $pcm->english_name = 'Nigerian Pidgin'; 2020 $pcm->native_name = 'Nigerian Pidgin'; 2021 $pcm->lang_code_iso_639_3 = 'pcm'; 2022 $pcm->country_code = 'ng'; 2023 $pcm->wp_locale = 'pcm'; 2024 $pcm->slug = 'pcm'; 2025 2026 $pirate = new GP_Locale(); 2027 $pirate->english_name = 'English (Pirate)'; 2028 $pirate->native_name = 'English (Pirate)'; 2029 $pirate->lang_code_iso_639_2 = 'art'; 2030 $pirate->wp_locale = 'art_xpirate'; 2031 $pirate->slug = 'pirate'; 2032 $pirate->google_code = 'xx-pirate'; 2033 $pirate->facebook_locale = 'en_PI'; 2034 2035 $pl = new GP_Locale(); 2036 $pl->english_name = 'Polish'; 2037 $pl->native_name = 'Polski'; 2038 $pl->lang_code_iso_639_1 = 'pl'; 2039 $pl->lang_code_iso_639_2 = 'pol'; 2040 $pl->country_code = 'pl'; 2041 $pl->wp_locale = 'pl_PL'; 2042 $pl->slug = 'pl'; 2043 $pl->nplurals = 3; 2044 $pl->plural_expression = '(n == 1) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2)'; 2045 $pl->google_code = 'pl'; 2046 $pl->facebook_locale = 'pl_PL'; 2047 2048 $pt = new GP_Locale(); 2049 $pt->english_name = 'Portuguese (Portugal)'; 2050 $pt->native_name = 'Português'; 2051 $pt->lang_code_iso_639_1 = 'pt'; 2052 $pt->country_code = 'pt'; 2053 $pt->wp_locale = 'pt_PT'; 2054 $pt->slug = 'pt'; 2055 $pt->google_code = 'pt-PT'; 2056 $pt->facebook_locale = 'pt_PT'; 2057 2058 $pt_ao90 = new GP_Locale(); 2059 $pt_ao90->english_name = 'Portuguese (Portugal, AO90)'; 2060 $pt_ao90->native_name = 'Português (AO90)'; 2061 $pt_ao90->lang_code_iso_639_1 = 'pt'; 2062 $pt_ao90->country_code = 'pt'; 2063 $pt_ao90->wp_locale = 'pt_PT_ao90'; 2064 $pt_ao90->slug = 'pt-ao90'; 2065 $pt_ao90->google_code = 'pt-PT'; 2066 $pt_ao90->variant_root = $pt->slug; 2067 $pt->variants[ $pt_ao90->slug ] = $pt_ao90->english_name; 2068 2069 $pt_ao = new GP_Locale(); 2070 $pt_ao->english_name = 'Portuguese (Angola)'; 2071 $pt_ao->native_name = 'Português de Angola'; 2072 $pt_ao->lang_code_iso_639_1 = 'pt'; 2073 $pt_ao->country_code = 'ao'; 2074 $pt_ao->wp_locale = 'pt_AO'; 2075 $pt_ao->slug = 'pt-ao'; 2076 2077 $pt_br = new GP_Locale(); 2078 $pt_br->english_name = 'Portuguese (Brazil)'; 2079 $pt_br->native_name = 'Português do Brasil'; 2080 $pt_br->lang_code_iso_639_1 = 'pt'; 2081 $pt_br->lang_code_iso_639_2 = 'por'; 2082 $pt_br->country_code = 'br'; 2083 $pt_br->wp_locale = 'pt_BR'; 2084 $pt_br->slug = 'pt-br'; 2085 $pt_br->nplurals = 2; 2086 $pt_br->plural_expression = 'n > 1'; 2087 $pt_br->google_code = 'pt-BR'; 2088 $pt_br->facebook_locale = 'pt_BR'; 2089 2090 $ps = new GP_Locale(); 2091 $ps->english_name = 'Pashto'; 2092 $ps->native_name = 'پښتو'; 2093 $ps->lang_code_iso_639_1 = 'ps'; 2094 $ps->lang_code_iso_639_2 = 'pus'; 2095 $ps->country_code = 'af'; 2096 $ps->wp_locale = 'ps'; 2097 $ps->slug = 'ps'; 2098 $ps->text_direction = 'rtl'; 2099 $ps->facebook_locale = 'ps_AF'; 2100 2101 $rhg = new GP_Locale(); 2102 $rhg->english_name = 'Rohingya'; 2103 $rhg->native_name = 'Ruáinga'; 2104 $rhg->lang_code_iso_639_3 = 'rhg'; 2105 $rhg->country_code = 'mm'; 2106 $rhg->wp_locale = 'rhg'; 2107 $rhg->slug = 'rhg'; 2108 $rhg->nplurals = 1; 2109 $rhg->plural_expression = '0'; 2110 2111 $ro = new GP_Locale(); 2112 $ro->english_name = 'Romanian'; 2113 $ro->native_name = 'Română'; 2114 $ro->lang_code_iso_639_1 = 'ro'; 2115 $ro->lang_code_iso_639_2 = 'ron'; 2116 $ro->country_code = 'ro'; 2117 $ro->wp_locale = 'ro_RO'; 2118 $ro->slug = 'ro'; 2119 $ro->nplurals = 3; 2120 $ro->plural_expression = '(n == 1) ? 0 : ((n == 0 || n % 100 >= 2 && n % 100 <= 19) ? 1 : 2)'; 2121 $ro->google_code = 'ro'; 2122 $ro->facebook_locale = 'ro_RO'; 2123 2124 $roh = new GP_Locale(); 2125 $roh->english_name = 'Romansh'; 2126 $roh->native_name = 'Rumantsch'; 2127 $roh->lang_code_iso_639_1 = 'rm'; 2128 $roh->lang_code_iso_639_2 = 'roh'; 2129 $roh->lang_code_iso_639_3 = 'roh'; 2130 $roh->country_code = 'ch'; 2131 $roh->wp_locale = 'roh'; 2132 $roh->slug = 'roh'; 2133 2134 $ru = new GP_Locale(); 2135 $ru->english_name = 'Russian'; 2136 $ru->native_name = 'Русский'; 2137 $ru->lang_code_iso_639_1 = 'ru'; 2138 $ru->lang_code_iso_639_2 = 'rus'; 2139 $ru->country_code = 'ru'; 2140 $ru->wp_locale = 'ru_RU'; 2141 $ru->slug = 'ru'; 2142 $ru->nplurals = 3; 2143 $ru->plural_expression = '(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2)'; 2144 $ru->google_code = 'ru'; 2145 $ru->facebook_locale = 'ru_RU'; 2146 2147 $rue = new GP_Locale(); 2148 $rue->english_name = 'Rusyn'; 2149 $rue->native_name = 'Русиньскый'; 2150 $rue->lang_code_iso_639_3 = 'rue'; 2151 $rue->slug = 'rue'; 2152 $rue->nplurals = 3; 2153 $rue->plural_expression = '(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2)'; 2154 2155 $rup = new GP_Locale(); 2156 $rup->english_name = 'Aromanian'; 2157 $rup->native_name = 'Armãneashce'; 2158 $rup->lang_code_iso_639_2 = 'rup'; 2159 $rup->lang_code_iso_639_3 = 'rup'; 2160 $rup->country_code = 'mk'; 2161 $rup->slug = 'rup'; 2162 2163 $sah = new GP_Locale(); 2164 $sah->english_name = 'Sakha'; 2165 $sah->native_name = 'Сахалыы'; 2166 $sah->lang_code_iso_639_2 = 'sah'; 2167 $sah->lang_code_iso_639_3 = 'sah'; 2168 $sah->country_code = 'ru'; 2169 $sah->wp_locale = 'sah'; 2170 $sah->slug = 'sah'; 2171 2172 $sa_in = new GP_Locale(); 2173 $sa_in->english_name = 'Sanskrit'; 2174 $sa_in->native_name = 'भारतम्'; 2175 $sa_in->lang_code_iso_639_1 = 'sa'; 2176 $sa_in->lang_code_iso_639_2 = 'san'; 2177 $sa_in->lang_code_iso_639_3 = 'san'; 2178 $sa_in->country_code = 'in'; 2179 $sa_in->wp_locale = 'sa_IN'; 2180 $sa_in->slug = 'sa-in'; 2181 $sa_in->facebook_locale = 'sa_IN'; 2182 2183 $scn = new GP_Locale(); 2184 $scn->english_name = 'Sicilian'; 2185 $scn->native_name = 'Sicilianu'; 2186 $scn->lang_code_iso_639_3 = 'scn'; 2187 $scn->country_code = 'it'; 2188 $scn->wp_locale = 'scn'; 2189 $scn->slug = 'scn'; 2190 2191 $si = new GP_Locale(); 2192 $si->english_name = 'Sinhala'; 2193 $si->native_name = 'සිංහල'; 2194 $si->lang_code_iso_639_1 = 'si'; 2195 $si->lang_code_iso_639_2 = 'sin'; 2196 $si->country_code = 'lk'; 2197 $si->wp_locale = 'si_LK'; 2198 $si->slug = 'si'; 2199 $si->google_code = 'si'; 2200 $si->facebook_locale = 'si_LK'; 2201 2202 $sk = new GP_Locale(); 2203 $sk->english_name = 'Slovak'; 2204 $sk->native_name = 'Slovenčina'; 2205 $sk->lang_code_iso_639_1 = 'sk'; 2206 $sk->lang_code_iso_639_2 = 'slk'; 2207 $sk->country_code = 'sk'; 2208 $sk->slug = 'sk'; 2209 $sk->wp_locale = 'sk_SK'; 2210 $sk->nplurals = 3; 2211 $sk->plural_expression = '(n == 1) ? 0 : ((n >= 2 && n <= 4) ? 1 : 2)'; 2212 $sk->google_code = 'sk'; 2213 $sk->facebook_locale = 'sk_SK'; 2214 2215 $skr = new GP_Locale(); 2216 $skr->english_name = 'Saraiki'; 2217 $skr->native_name = 'سرائیکی'; 2218 $skr->lang_code_iso_639_3 = 'skr'; 2219 $skr->country_code = 'pk'; 2220 $skr->wp_locale = 'skr'; 2221 $skr->slug = 'skr'; 2222 $skr->nplurals = 2; 2223 $skr->plural_expression = 'n > 1'; 2224 $skr->text_direction = 'rtl'; 2225 2226 $sl = new GP_Locale(); 2227 $sl->english_name = 'Slovenian'; 2228 $sl->native_name = 'Slovenščina'; 2229 $sl->lang_code_iso_639_1 = 'sl'; 2230 $sl->lang_code_iso_639_2 = 'slv'; 2231 $sl->country_code = 'si'; 2232 $sl->wp_locale = 'sl_SI'; 2233 $sl->slug = 'sl'; 2234 $sl->nplurals = 4; 2235 $sl->plural_expression = '(n % 100 == 1) ? 0 : ((n % 100 == 2) ? 1 : ((n % 100 == 3 || n % 100 == 4) ? 2 : 3))'; 2236 $sl->google_code = 'sl'; 2237 $sl->facebook_locale = 'sl_SI'; 2238 2239 $sna = new GP_Locale(); 2240 $sna->english_name = 'Shona'; 2241 $sna->native_name = 'ChiShona'; 2242 $sna->lang_code_iso_639_1 = 'sn'; 2243 $sna->lang_code_iso_639_3 = 'sna'; 2244 $sna->country_code = 'zw'; 2245 $sna->wp_locale = 'sna'; 2246 $sna->slug = 'sna'; 2247 2248 $snd = new GP_Locale(); 2249 $snd->english_name = 'Sindhi'; 2250 $snd->native_name = 'سنڌي'; 2251 $snd->lang_code_iso_639_1 = 'sd'; 2252 $snd->lang_code_iso_639_2 = 'snd'; 2253 $snd->lang_code_iso_639_3 = 'snd'; 2254 $snd->country_code = 'pk'; 2255 $snd->wp_locale = 'snd'; 2256 $snd->slug = 'snd'; 2257 $snd->text_direction = 'rtl'; 2258 2259 $so = new GP_Locale(); 2260 $so->english_name = 'Somali'; 2261 $so->native_name = 'Afsoomaali'; 2262 $so->lang_code_iso_639_1 = 'so'; 2263 $so->lang_code_iso_639_2 = 'som'; 2264 $so->lang_code_iso_639_3 = 'som'; 2265 $so->country_code = 'so'; 2266 $so->wp_locale = 'so_SO'; 2267 $so->slug = 'so'; 2268 $so->google_code = 'so'; 2269 $so->facebook_locale = 'so_SO'; 2270 2271 $sq = new GP_Locale(); 2272 $sq->english_name = 'Albanian'; 2273 $sq->native_name = 'Shqip'; 2274 $sq->lang_code_iso_639_1 = 'sq'; 2275 $sq->lang_code_iso_639_2 = 'sqi'; 2276 $sq->wp_locale = 'sq'; 2277 $sq->country_code = 'al'; 2278 $sq->slug = 'sq'; 2279 $sq->google_code = 'sq'; 2280 $sq->facebook_locale = 'sq_AL'; 2281 2282 $sq_xk = new GP_Locale(); 2283 $sq_xk->english_name = 'Shqip (Kosovo)'; 2284 $sq_xk->native_name = 'Për Kosovën Shqip'; 2285 $sq_xk->lang_code_iso_639_1 = 'sq'; 2286 $sq_xk->country_code = 'xk'; // Temporary country code until Kosovo is assigned an ISO code. 2287 $sq_xk->wp_locale = 'sq_XK'; 2288 $sq_xk->slug = 'sq-xk'; 2289 2290 $sr = new GP_Locale(); 2291 $sr->english_name = 'Serbian'; 2292 $sr->native_name = 'Српски језик'; 2293 $sr->lang_code_iso_639_1 = 'sr'; 2294 $sr->lang_code_iso_639_2 = 'srp'; 2295 $sr->country_code = 'rs'; 2296 $sr->wp_locale = 'sr_RS'; 2297 $sr->slug = 'sr'; 2298 $sr->nplurals = 3; 2299 $sr->plural_expression = '(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2)'; 2300 $sr->google_code = 'sr'; 2301 $sr->facebook_locale = 'sr_RS'; 2302 2303 $srd = new GP_Locale(); 2304 $srd->english_name = 'Sardinian'; 2305 $srd->native_name = 'Sardu'; 2306 $srd->lang_code_iso_639_1 = 'sc'; 2307 $srd->lang_code_iso_639_2 = 'srd'; 2308 $srd->country_code = 'it'; 2309 $srd->wp_locale = 'srd'; 2310 $srd->slug = 'srd'; 2311 $srd->facebook_locale = 'sc_IT'; 2312 2313 $ssw = new GP_Locale(); 2314 $ssw->english_name = 'Swati'; 2315 $ssw->native_name = 'SiSwati'; 2316 $ssw->lang_code_iso_639_1 = 'ss'; 2317 $ssw->lang_code_iso_639_2 = 'ssw'; 2318 $ssw->lang_code_iso_639_3 = 'ssw'; 2319 $ssw->country_code = 'sz'; 2320 $ssw->wp_locale = 'ssw'; 2321 $ssw->slug = 'ssw'; 2322 2323 $su = new GP_Locale(); 2324 $su->english_name = 'Sundanese'; 2325 $su->native_name = 'Basa Sunda'; 2326 $su->lang_code_iso_639_1 = 'su'; 2327 $su->lang_code_iso_639_2 = 'sun'; 2328 $su->country_code = 'id'; 2329 $su->wp_locale = 'su_ID'; 2330 $su->slug = 'su'; 2331 $su->nplurals = 1; 2332 $su->plural_expression = '0'; 2333 $su->google_code = 'su'; 2334 2335 $sv = new GP_Locale(); 2336 $sv->english_name = 'Swedish'; 2337 $sv->native_name = 'Svenska'; 2338 $sv->lang_code_iso_639_1 = 'sv'; 2339 $sv->lang_code_iso_639_2 = 'swe'; 2340 $sv->country_code = 'se'; 2341 $sv->wp_locale = 'sv_SE'; 2342 $sv->slug = 'sv'; 2343 $sv->google_code = 'sv'; 2344 $sv->facebook_locale = 'sv_SE'; 2345 2346 $sw = new GP_Locale(); 2347 $sw->english_name = 'Swahili'; 2348 $sw->native_name = 'Kiswahili'; 2349 $sw->lang_code_iso_639_1 = 'sw'; 2350 $sw->lang_code_iso_639_2 = 'swa'; 2351 $sw->wp_locale = 'sw'; 2352 $sw->slug = 'sw'; 2353 $sw->google_code = 'sw'; 2354 $sw->facebook_locale = 'sw_KE'; 2355 2356 $syr = new GP_Locale(); 2357 $syr->english_name = 'Syriac'; 2358 $syr->native_name = 'Syriac'; 2359 $syr->lang_code_iso_639_3 = 'syr'; 2360 $syr->country_code = 'iq'; 2361 $syr->wp_locale = 'syr'; 2362 $syr->slug = 'syr'; 2363 2364 $szl = new GP_Locale(); 2365 $szl->english_name = 'Silesian'; 2366 $szl->native_name = 'Ślōnskŏ gŏdka'; 2367 $szl->lang_code_iso_639_3 = 'szl'; 2368 $szl->country_code = 'pl'; 2369 $szl->wp_locale = 'szl'; 2370 $szl->slug = 'szl'; 2371 $szl->nplurals = 3; 2372 $szl->plural_expression = '(n==1 ? 0 : n%10>=2 && n%10<=4 && n%100==20 ? 1 : 2)'; 2373 $szl->facebook_locale = 'sz_PL'; 2374 2375 $ta = new GP_Locale(); 2376 $ta->english_name = 'Tamil'; 2377 $ta->native_name = 'தமிழ்'; 2378 $ta->lang_code_iso_639_1 = 'ta'; 2379 $ta->lang_code_iso_639_2 = 'tam'; 2380 $ta->country_code = 'in'; 2381 $ta->wp_locale = 'ta_IN'; 2382 $ta->slug = 'ta'; 2383 $ta->google_code = 'ta'; 2384 $ta->facebook_locale = 'ta_IN'; 2385 2386 $ta_lk = new GP_Locale(); 2387 $ta_lk->english_name = 'Tamil (Sri Lanka)'; 2388 $ta_lk->native_name = 'தமிழ்'; 2389 $ta_lk->lang_code_iso_639_1 = 'ta'; 2390 $ta_lk->lang_code_iso_639_2 = 'tam'; 2391 $ta_lk->country_code = 'lk'; 2392 $ta_lk->wp_locale = 'ta_LK'; 2393 $ta_lk->slug = 'ta-lk'; 2394 $ta_lk->google_code = 'ta'; 2395 $ta_lk->variant_root = $ta->slug; 2396 $ta->variants[ $ta_lk->slug ] = $ta_lk->english_name; 2397 2398 $tah = new GP_Locale(); 2399 $tah->english_name = 'Tahitian'; 2400 $tah->native_name = 'Reo Tahiti'; 2401 $tah->lang_code_iso_639_1 = 'ty'; 2402 $tah->lang_code_iso_639_2 = 'tah'; 2403 $tah->lang_code_iso_639_3 = 'tah'; 2404 $tah->country_code = 'pf'; 2405 $tah->wp_locale = 'tah'; 2406 $tah->slug = 'tah'; 2407 $tah->nplurals = 2; 2408 $tah->plural_expression = 'n > 1'; 2409 2410 $te = new GP_Locale(); 2411 $te->english_name = 'Telugu'; 2412 $te->native_name = 'తెలుగు'; 2413 $te->lang_code_iso_639_1 = 'te'; 2414 $te->lang_code_iso_639_2 = 'tel'; 2415 $te->wp_locale = 'te'; 2416 $te->slug = 'te'; 2417 $te->google_code = 'te'; 2418 $te->facebook_locale = 'te_IN'; 2419 2420 $tg = new GP_Locale(); 2421 $tg->english_name = 'Tajik'; 2422 $tg->native_name = 'Тоҷикӣ'; 2423 $tg->lang_code_iso_639_1 = 'tg'; 2424 $tg->lang_code_iso_639_2 = 'tgk'; 2425 $tg->country_code = 'tj'; 2426 $tg->wp_locale = 'tg'; 2427 $tg->slug = 'tg'; 2428 $tg->google_code = 'tg'; 2429 $tg->facebook_locale = 'tg_TJ'; 2430 2431 $th = new GP_Locale(); 2432 $th->english_name = 'Thai'; 2433 $th->native_name = 'ไทย'; 2434 $th->lang_code_iso_639_1 = 'th'; 2435 $th->lang_code_iso_639_2 = 'tha'; 2436 $th->wp_locale = 'th'; 2437 $th->slug = 'th'; 2438 $th->nplurals = 1; 2439 $th->plural_expression = '0'; 2440 $th->google_code = 'th'; 2441 $th->facebook_locale = 'th_TH'; 2442 2443 $tir = new GP_Locale(); 2444 $tir->english_name = 'Tigrinya'; 2445 $tir->native_name = 'ትግርኛ'; 2446 $tir->lang_code_iso_639_1 = 'ti'; 2447 $tir->lang_code_iso_639_2 = 'tir'; 2448 $tir->country_code = 'er'; 2449 $tir->wp_locale = 'tir'; 2450 $tir->slug = 'tir'; 2451 $tir->nplurals = 1; 2452 $tir->plural_expression = '0'; 2453 2454 $tlh = new GP_Locale(); 2455 $tlh->english_name = 'Klingon'; 2456 $tlh->native_name = 'TlhIngan'; 2457 $tlh->lang_code_iso_639_2 = 'tlh'; 2458 $tlh->slug = 'tlh'; 2459 $tlh->nplurals = 1; 2460 $tlh->plural_expression = '0'; 2461 $tlh->facebook_locale = 'tl_ST'; 2462 2463 $tl = new GP_Locale(); 2464 $tl->english_name = 'Tagalog'; 2465 $tl->native_name = 'Tagalog'; 2466 $tl->lang_code_iso_639_1 = 'tl'; 2467 $tl->lang_code_iso_639_2 = 'tgl'; 2468 $tl->country_code = 'ph'; 2469 $tl->wp_locale = 'tl'; 2470 $tl->slug = 'tl'; 2471 $tl->google_code = 'tl'; 2472 $tl->facebook_locale = 'tl_PH'; 2473 2474 $tr = new GP_Locale(); 2475 $tr->english_name = 'Turkish'; 2476 $tr->native_name = 'Türkçe'; 2477 $tr->lang_code_iso_639_1 = 'tr'; 2478 $tr->lang_code_iso_639_2 = 'tur'; 2479 $tr->country_code = 'tr'; 2480 $tr->wp_locale = 'tr_TR'; 2481 $tr->slug = 'tr'; 2482 $tr->nplurals = 2; 2483 $tr->plural_expression = 'n > 1'; 2484 $tr->google_code = 'tr'; 2485 $tr->facebook_locale = 'tr_TR'; 2486 2487 $tt_ru = new GP_Locale(); 2488 $tt_ru->english_name = 'Tatar'; 2489 $tt_ru->native_name = 'Татар теле'; 2490 $tt_ru->lang_code_iso_639_1 = 'tt'; 2491 $tt_ru->lang_code_iso_639_2 = 'tat'; 2492 $tt_ru->country_code = 'ru'; 2493 $tt_ru->wp_locale = 'tt_RU'; 2494 $tt_ru->slug = 'tt'; 2495 $tt_ru->nplurals = 1; 2496 $tt_ru->plural_expression = '0'; 2497 $tt_ru->facebook_locale = 'tt_RU'; 2498 2499 $tuk = new GP_Locale(); 2500 $tuk->english_name = 'Turkmen'; 2501 $tuk->native_name = 'Türkmençe'; 2502 $tuk->lang_code_iso_639_1 = 'tk'; 2503 $tuk->lang_code_iso_639_2 = 'tuk'; 2504 $tuk->country_code = 'tm'; 2505 $tuk->wp_locale = 'tuk'; 2506 $tuk->slug = 'tuk'; 2507 $tuk->nplurals = 2; 2508 $tuk->plural_expression = 'n > 1'; 2509 $tuk->facebook_locale = 'tk_TM'; 2510 2511 $twd = new GP_Locale(); 2512 $twd->english_name = 'Tweants'; 2513 $twd->native_name = 'Twents'; 2514 $twd->lang_code_iso_639_3 = 'twd'; 2515 $twd->country_code = 'nl'; 2516 $twd->wp_locale = 'twd'; 2517 $twd->slug = 'twd'; 2518 2519 $tzm = new GP_Locale(); 2520 $tzm->english_name = 'Tamazight (Central Atlas)'; 2521 $tzm->native_name = 'ⵜⴰⵎⴰⵣⵉⵖⵜ'; 2522 $tzm->lang_code_iso_639_2 = 'tzm'; 2523 $tzm->country_code = 'ma'; 2524 $tzm->wp_locale = 'tzm'; 2525 $tzm->slug = 'tzm'; 2526 $tzm->nplurals = 2; 2527 $tzm->plural_expression = 'n > 1'; 2528 2529 $udm = new GP_Locale(); 2530 $udm->english_name = 'Udmurt'; 2531 $udm->native_name = 'Удмурт кыл'; 2532 $udm->lang_code_iso_639_2 = 'udm'; 2533 $udm->slug = 'udm'; 2534 2535 $ug = new GP_Locale(); 2536 $ug->english_name = 'Uighur'; 2537 $ug->native_name = 'ئۇيغۇرچە'; 2538 $ug->lang_code_iso_639_1 = 'ug'; 2539 $ug->lang_code_iso_639_2 = 'uig'; 2540 $ug->country_code = 'cn'; 2541 $ug->wp_locale = 'ug_CN'; 2542 $ug->slug = 'ug'; 2543 $ug->text_direction = 'rtl'; 2544 2545 $uk = new GP_Locale(); 2546 $uk->english_name = 'Ukrainian'; 2547 $uk->native_name = 'Українська'; 2548 $uk->lang_code_iso_639_1 = 'uk'; 2549 $uk->lang_code_iso_639_2 = 'ukr'; 2550 $uk->country_code = 'ua'; 2551 $uk->wp_locale = 'uk'; 2552 $uk->slug = 'uk'; 2553 $uk->nplurals = 3; 2554 $uk->plural_expression = '(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2)'; 2555 $uk->google_code = 'uk'; 2556 $uk->facebook_locale = 'uk_UA'; 2557 2558 $ur = new GP_Locale(); 2559 $ur->english_name = 'Urdu'; 2560 $ur->native_name = 'اردو'; 2561 $ur->lang_code_iso_639_1 = 'ur'; 2562 $ur->lang_code_iso_639_2 = 'urd'; 2563 $ur->country_code = 'pk'; 2564 $ur->wp_locale = 'ur'; 2565 $ur->slug = 'ur'; 2566 $ur->text_direction = 'rtl'; 2567 $ur->google_code = 'ur'; 2568 $ur->facebook_locale = 'ur_PK'; 2569 2570 $uz = new GP_Locale(); 2571 $uz->english_name = 'Uzbek'; 2572 $uz->native_name = 'O‘zbekcha'; 2573 $uz->lang_code_iso_639_1 = 'uz'; 2574 $uz->lang_code_iso_639_2 = 'uzb'; 2575 $uz->country_code = 'uz'; 2576 $uz->wp_locale = 'uz_UZ'; 2577 $uz->slug = 'uz'; 2578 $uz->nplurals = 1; 2579 $uz->plural_expression = '0'; 2580 $uz->google_code = 'uz'; 2581 $uz->facebook_locale = 'uz_UZ'; 2582 2583 $vec = new GP_Locale(); 2584 $vec->english_name = 'Venetian'; 2585 $vec->native_name = 'Vèneto'; 2586 $vec->lang_code_iso_639_2 = 'roa'; 2587 $vec->lang_code_iso_639_3 = 'vec'; 2588 $vec->country_code = 'it'; 2589 $vec->slug = 'vec'; 2590 $vec->wp_locale = 'vec'; 2591 2592 $vi = new GP_Locale(); 2593 $vi->english_name = 'Vietnamese'; 2594 $vi->native_name = 'Tiếng Việt'; 2595 $vi->lang_code_iso_639_1 = 'vi'; 2596 $vi->lang_code_iso_639_2 = 'vie'; 2597 $vi->country_code = 'vn'; 2598 $vi->wp_locale = 'vi'; 2599 $vi->slug = 'vi'; 2600 $vi->nplurals = 1; 2601 $vi->plural_expression = '0'; 2602 $vi->google_code = 'vi'; 2603 $vi->facebook_locale = 'vi_VN'; 2604 2605 $wa = new GP_Locale(); 2606 $wa->english_name = 'Walloon'; 2607 $wa->native_name = 'Walon'; 2608 $wa->lang_code_iso_639_1 = 'wa'; 2609 $wa->lang_code_iso_639_2 = 'wln'; 2610 $wa->country_code = 'be'; 2611 $wa->slug = 'wa'; 2612 2613 $wol = new GP_Locale(); 2614 $wol->english_name = 'Wolof'; 2615 $wol->native_name = 'Wolof'; 2616 $wol->lang_code_iso_639_1 = 'wo'; 2617 $wol->lang_code_iso_639_2 = 'wol'; 2618 $wol->lang_code_iso_639_3 = 'wol'; 2619 $wol->country_code = 'sn'; 2620 $wol->wp_locale = 'wol'; 2621 $wol->slug = 'wol'; 2622 $wol->nplurals = 1; 2623 $wol->plural_expression = '0'; 2624 2625 $xho = new GP_Locale(); 2626 $xho->english_name = 'Xhosa'; 2627 $xho->native_name = 'isiXhosa'; 2628 $xho->lang_code_iso_639_1 = 'xh'; 2629 $xho->lang_code_iso_639_2 = 'xho'; 2630 $xho->lang_code_iso_639_3 = 'xho'; 2631 $xho->country_code = 'za'; 2632 $xho->wp_locale = 'xho'; 2633 $xho->slug = 'xho'; 2634 $xho->google_code = 'xh'; 2635 $xho->facebook_locale = 'xh_ZA'; 2636 2637 $xmf = new GP_Locale(); 2638 $xmf->english_name = 'Mingrelian'; 2639 $xmf->native_name = 'მარგალური ნინა'; 2640 $xmf->lang_code_iso_639_3 = 'xmf'; 2641 $xmf->country_code = 'ge'; 2642 $xmf->slug = 'xmf'; 2643 2644 $yi = new GP_Locale(); 2645 $yi->english_name = 'Yiddish'; 2646 $yi->native_name = 'ייִדיש'; 2647 $yi->lang_code_iso_639_1 = 'yi'; 2648 $yi->lang_code_iso_639_2 = 'yid'; 2649 $yi->slug = 'yi'; 2650 $yi->text_direction = 'rtl'; 2651 $yi->google_code = 'yi'; 2652 2653 $yor = new GP_Locale(); 2654 $yor->english_name = 'Yoruba'; 2655 $yor->native_name = 'Yorùbá'; 2656 $yor->lang_code_iso_639_1 = 'yo'; 2657 $yor->lang_code_iso_639_2 = 'yor'; 2658 $yor->lang_code_iso_639_3 = 'yor'; 2659 $yor->country_code = 'ng'; 2660 $yor->wp_locale = 'yor'; 2661 $yor->slug = 'yor'; 2662 $yor->google_code = 'yo'; 2663 $yor->facebook_locale = 'yo_NG'; 2664 2665 $zgh = new GP_Locale(); 2666 $zgh->english_name = 'Tamazight'; 2667 $zgh->native_name = 'ⵜⴰⵎⴰⵣⵉⵖⵜ'; 2668 $zgh->lang_code_iso_639_2 = 'zgh'; 2669 $zgh->lang_code_iso_639_3 = 'zgh'; 2670 $zgh->country_code = 'ma'; 2671 $zgh->wp_locale = 'zgh'; 2672 $zgh->slug = 'zgh'; 2673 $zgh->nplurals = 2; 2674 $zgh->plural_expression = 'n >= 2 && (n < 11 || n > 99)'; 2675 2676 $zh = new GP_Locale(); 2677 $zh->english_name = 'Chinese'; 2678 $zh->native_name = '中文'; 2679 $zh->lang_code_iso_639_1 = 'zh'; 2680 $zh->lang_code_iso_639_2 = 'zho'; 2681 $zh->slug = 'zh'; 2682 $zh->nplurals = 1; 2683 $zh->plural_expression = '0'; 2684 2685 $zh_cn = new GP_Locale(); 2686 $zh_cn->english_name = 'Chinese (China)'; 2687 $zh_cn->native_name = '简体中文'; 2688 $zh_cn->lang_code_iso_639_1 = 'zh'; 2689 $zh_cn->lang_code_iso_639_2 = 'zho'; 2690 $zh_cn->country_code = 'cn'; 2691 $zh_cn->wp_locale = 'zh_CN'; 2692 $zh_cn->slug = 'zh-cn'; 2693 $zh_cn->nplurals = 1; 2694 $zh_cn->plural_expression = '0'; 2695 $zh_cn->google_code = 'zh-CN'; 2696 $zh_cn->facebook_locale = 'zh_CN'; 2697 $zh_cn->variant_root = $zh->slug; 2698 $zh->variants[ $zh_cn->slug ] = $zh_cn->english_name; 2699 2700 $zh_hk = new GP_Locale(); 2701 $zh_hk->english_name = 'Chinese (Hong Kong)'; 2702 $zh_hk->native_name = '香港中文版 '; 2703 $zh_hk->lang_code_iso_639_1 = 'zh'; 2704 $zh_hk->lang_code_iso_639_2 = 'zho'; 2705 $zh_hk->country_code = 'hk'; 2706 $zh_hk->wp_locale = 'zh_HK'; 2707 $zh_hk->slug = 'zh-hk'; 2708 $zh_hk->nplurals = 1; 2709 $zh_hk->plural_expression = '0'; 2710 $zh_hk->facebook_locale = 'zh_HK'; 2711 2712 $zh_sg = new GP_Locale(); 2713 $zh_sg->english_name = 'Chinese (Singapore)'; 2714 $zh_sg->native_name = '中文'; 2715 $zh_sg->lang_code_iso_639_1 = 'zh'; 2716 $zh_sg->lang_code_iso_639_2 = 'zho'; 2717 $zh_sg->country_code = 'sg'; 2718 $zh_sg->wp_locale = 'zh_SG'; 2719 $zh_sg->slug = 'zh-sg'; 2720 $zh_sg->nplurals = 1; 2721 $zh_sg->plural_expression = '0'; 2722 $zh_sg->variant_root = $zh_cn->slug; 2723 $zh->variants[ $zh_sg->slug ] = $zh_cn->english_name; 2724 2725 $zh_tw = new GP_Locale(); 2726 $zh_tw->english_name = 'Chinese (Taiwan)'; 2727 $zh_tw->native_name = '繁體中文'; 2728 $zh_tw->lang_code_iso_639_1 = 'zh'; 2729 $zh_tw->lang_code_iso_639_2 = 'zho'; 2730 $zh_tw->country_code = 'tw'; 2731 $zh_tw->slug = 'zh-tw'; 2732 $zh_tw->wp_locale= 'zh_TW'; 2733 $zh_tw->nplurals = 1; 2734 $zh_tw->plural_expression = '0'; 2735 $zh_tw->google_code = 'zh-TW'; 2736 $zh_tw->facebook_locale = 'zh_TW'; 2737 2738 $zul = new GP_Locale(); 2739 $zul->english_name = 'Zulu'; 2740 $zul->native_name = 'isiZulu'; 2741 $zul->lang_code_iso_639_1 = 'zu'; 2742 $zul->lang_code_iso_639_2 = 'zul'; 2743 $zul->lang_code_iso_639_3 = 'zul'; 2744 $zul->country_code = 'za'; 2745 $zul->wp_locale = 'zul'; 2746 $zul->slug = 'zul'; 2747 $zul->google_code = 'zu'; 2748 2749 $def_vars = get_defined_vars(); 2750 2751 if ( function_exists( 'apply_filters' ) ) { 2752 /** 2753 * Fires after the locales have been defined but before they have been assigned to the object property. 2754 * 2755 * @since 3.0.0 2756 * 2757 * @param array $def_vars The array of locale objects. 2758 * 2759 * @return array The updated array of locale objects. 2760 */ 2761 $def_vars = apply_filters( 'gp_locale_definitions_array', $def_vars ); 2762 } 2763 2764 foreach ( $def_vars as $locale ) { 2765 $this->locales[ $locale->slug ] = $locale; 2766 } 2767 } 2768 2769 public static function &instance() { 2770 if ( ! isset( $GLOBALS['gp_locales'] ) ) 2771 $GLOBALS['gp_locales'] = new GP_Locales; 2772 2773 return $GLOBALS['gp_locales']; 2774 } 2775 2776 public static function locales() { 2777 $instance = GP_Locales::instance(); 2778 return $instance->locales; 2779 } 2780 2781 public static function exists( $slug ) { 2782 $instance = GP_Locales::instance(); 2783 return isset( $instance->locales[ $slug ] ); 2784 } 2785 2786 public static function by_slug( $slug ) { 2787 $instance = GP_Locales::instance(); 2788 return isset( $instance->locales[ $slug ] )? $instance->locales[ $slug ] : null; 2789 } 2790 2791 public static function by_field( $field_name, $field_value ) { 2792 $instance = GP_Locales::instance(); 2793 $result = false; 2794 2795 foreach( $instance->locales() as $locale ) { 2796 if ( isset( $locale->$field_name ) && $locale->$field_name == $field_value ) { 2797 $result = $locale; 2798 break; 2799 } 2800 } 2801 2802 return $result; 2803 } 2804 } 2805 2806 endif;
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sat Apr 17 01:02:02 2021 | Cross-referenced by PHPXref 0.7.1 |