Changeset 12080
- Timestamp:
- 09/26/2022 03:58:40 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locales/locales.php
r10359 r12080 3 3 * Locales used on WordPress.org. 4 4 * 5 * - Copy of https://github.com/GlotPress/GlotPress -WP/blob/4e75ab6/locales/locales.php5 * - Copy of https://github.com/GlotPress/GlotPress/blob/bf614ee290531da6ced571a79d5701dcf68d2212/locales/locales.php 6 6 * - With support for custom locale variants. 7 7 * - Without https://github.com/GlotPress/GlotPress-WP/pull/1012 and https://github.com/GlotPress/GlotPress-WP/pull/1017. 8 * - Without other dependencies because the file gets also loaded in api.wordpress.org context.9 8 */ 10 9 if ( ! class_exists( 'GP_Locale' ) ) : … … 25 24 public $preferred_sans_serif_font_family = null; 26 25 public $facebook_locale = null; 26 public $alphabet = 'latin'; 27 public $word_count_type = 'words'; 27 28 28 29 /** … … 68 69 return isset( $this->text_direction ); 69 70 } 71 return false; 70 72 } 71 73 … … 80 82 return ( 'rtl' === $this->text_direction ); 81 83 } 84 85 return null; 82 86 } 83 87 84 88 public function combined_name() { 85 89 /* translators: combined name for locales: 1: name in English, 2: native name */ 86 return sprintf( _ x( '%1$s/%2$s', 'locales' ), $this->english_name, $this->native_name );90 return sprintf( __( '%1$s/%2$s', 'glotpress' ), $this->english_name, $this->native_name ); 87 91 } 88 92 … … 149 153 $ae->lang_code_iso_639_2 = 'ave'; 150 154 $ae->slug = 'ae'; 155 $ae->alphabet = 'avestan'; 151 156 152 157 $af = new GP_Locale(); … … 168 173 $ak->slug = 'ak'; 169 174 $ak->facebook_locale = 'ak_GH'; 175 $ak->alphabet = 'adinkra'; 170 176 171 177 $am = new GP_Locale(); … … 178 184 $am->slug = 'am'; 179 185 $am->facebook_locale = 'am_ET'; 186 $am->alphabet = 'geez'; 180 187 181 188 $an = new GP_Locale(); … … 202 209 $ar->google_code = 'ar'; 203 210 $ar->facebook_locale = 'ar_AR'; 211 $ar->alphabet = 'arabic'; 204 212 205 213 $arq = new GP_Locale(); … … 214 222 $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))))'; 215 223 $arq->text_direction = 'rtl'; 224 $arq->alphabet = 'arabic'; 216 225 217 226 $ary = new GP_Locale(); … … 226 235 $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))))'; 227 236 $ary->text_direction = 'rtl'; 237 $ary->alphabet = 'arabic'; 228 238 229 239 $as = new GP_Locale(); … … 237 247 $as->slug = 'as'; 238 248 $as->facebook_locale = 'as_IN'; 249 $as->alphabet = 'assamese'; 239 250 240 251 $ast = new GP_Locale(); … … 253 264 $av->lang_code_iso_639_2 = 'ava'; 254 265 $av->slug = 'av'; 266 $av->alphabet = 'cyrillic'; 255 267 256 268 $ay = new GP_Locale(); … … 285 297 $azb->slug = 'azb'; 286 298 $azb->text_direction = 'rtl'; 299 $azb->alphabet = 'persian'; 287 300 288 301 $az_tr = new GP_Locale(); … … 302 315 $ba->wp_locale = 'ba'; 303 316 $ba->slug = 'ba'; 317 $ba->alphabet = 'cyrillic'; 304 318 305 319 $bal = new GP_Locale(); … … 321 335 $bcc->plural_expression = '0'; 322 336 $bcc->text_direction = 'rtl'; 337 $bcc->alphabet = 'balochi'; 323 338 324 339 $be = new GP_Locale(); … … 334 349 $be->google_code = 'be'; 335 350 $be->facebook_locale = 'be_BY'; 351 $be->alphabet = 'cyrillic'; 336 352 337 353 $bg = new GP_Locale(); … … 345 361 $bg->google_code = 'bg'; 346 362 $bg->facebook_locale = 'bg_BG'; 363 $bg->alphabet = 'cyrillic'; 364 365 $bgn = new GP_Locale(); 366 $bgn->english_name = 'Western Balochi'; 367 $bgn->native_name = 'بلوچی'; 368 $bgn->lang_code_iso_639_3 = 'bgn'; 369 $bgn->country_code = 'pk'; 370 $bgn->wp_locale = 'bgn'; 371 $bgn->slug = 'bgn'; 372 $bgn->text_direction = 'rtl'; 373 $bgn->alphabet = 'balochi'; 347 374 348 375 $bh = new GP_Locale(); … … 352 379 $bh->lang_code_iso_639_2 = 'bih'; 353 380 $bh->slug = 'bh'; 381 $bh->alphabet = 'devanagari'; 354 382 355 383 $bho = new GP_Locale(); … … 360 388 $bho->wp_locale = 'bho'; 361 389 $bho->slug = 'bho'; 390 $bho->alphabet = 'devanagari'; 362 391 363 392 $bi = new GP_Locale(); … … 384 413 $bn_bd->slug = 'bn'; 385 414 $bn_bd->google_code = 'bn'; 415 $bn_bd->alphabet = 'bengali'; 386 416 387 417 $bn_in = new GP_Locale(); … … 396 426 $bn_in->nplurals = 2; 397 427 $bn_in->plural_expression = 'n > 1'; 428 $bn_in->alphabet = 'bengali'; 398 429 399 430 $bo = new GP_Locale(); … … 406 437 $bo->nplurals = 1; 407 438 $bo->plural_expression = '0'; 439 $bo->alphabet = 'tibetan'; 440 $bo->word_count_type = 'characters_excluding_spaces'; 408 441 409 442 $br = new GP_Locale(); … … 427 460 $brx->wp_locale = 'brx'; 428 461 $brx->slug = 'brx'; 462 $brx->alphabet = 'devanagari'; 429 463 430 464 $bs = new GP_Locale(); … … 451 485 $ca->facebook_locale = 'ca_ES'; 452 486 487 $ca_valencia = new GP_Locale(); 488 $ca_valencia->english_name = 'Catalan (Valencian)'; 489 $ca_valencia->native_name = 'Català (Valencià)'; 490 $ca_valencia->lang_code_iso_639_1 = 'ca'; 491 $ca_valencia->lang_code_iso_639_2 = 'cat'; 492 $ca_valencia->wp_locale = 'ca_valencia'; 493 $ca_valencia->slug = 'ca-valencia'; 494 $ca_valencia->google_code = 'ca'; 495 $ca_valencia->facebook_locale = 'ca_ES'; 496 453 497 $ce = new GP_Locale(); 454 498 $ce->english_name = 'Chechen'; … … 457 501 $ce->lang_code_iso_639_2 = 'che'; 458 502 $ce->slug = 'ce'; 503 $ce->alphabet = 'cyrillic'; 459 504 460 505 $ceb = new GP_Locale(); … … 485 530 $ckb->text_direction = 'rtl'; 486 531 $ckb->facebook_locale = 'cb_IQ'; 532 $ckb->alphabet = 'sorani'; 487 533 488 534 $co = new GP_Locale(); … … 514 560 $cr->country_code = 'ca'; 515 561 $cr->slug = 'cr'; 562 $cr->alphabet = 'syllabics'; 516 563 517 564 $cs = new GP_Locale(); … … 542 589 $cu->lang_code_iso_639_2 = 'chu'; 543 590 $cu->slug = 'cu'; 591 $cu->alphabet = 'cyrillic'; 544 592 545 593 $cv = new GP_Locale(); … … 550 598 $cv->country_code = 'ru'; 551 599 $cv->slug = 'cv'; 600 $cv->alphabet = 'cyrillic'; 552 601 553 602 $cy = new GP_Locale(); … … 596 645 $de_at->native_name = 'Deutsch (Österreich)'; 597 646 $de_at->lang_code_iso_639_1 = 'de'; 598 $de_at->country_code = ' de';647 $de_at->country_code = 'at'; 599 648 $de_at->wp_locale = 'de_AT'; 600 649 $de_at->slug = 'de-at'; … … 637 686 $dv->slug = 'dv'; 638 687 $dv->text_direction = 'rtl'; 688 $dv->alphabet = 'thaana'; 639 689 640 690 $dzo = new GP_Locale(); … … 648 698 $dzo->nplurals = 1; 649 699 $dzo->plural_expression = '0'; 700 $dzo->alphabet = 'tibetan'; 650 701 651 702 $ewe = new GP_Locale(); … … 669 720 $el->google_code = 'el'; 670 721 $el->facebook_locale = 'el_GR'; 722 $el->alphabet = 'greek'; 671 723 672 724 $el_po = new GP_Locale(); … … 675 727 $el_po->country_code = 'gr'; 676 728 $el_po->slug = 'el-po'; 729 $el_po->alphabet = 'polytonic'; 677 730 678 731 $emoji = new GP_Locale(); … … 684 737 $emoji->nplurals = 1; 685 738 $emoji->plural_expression = '0'; 739 $emoji->alphabet = 'emoji'; 686 740 687 741 $en = new GP_Locale(); … … 913 967 $es_us->country_code = 'us'; 914 968 $es_us->slug = 'es-us'; 969 $es_us->google_code = 'es'; 915 970 916 971 $es_uy = new GP_Locale(); … … 972 1027 $fa->google_code = 'fa'; 973 1028 $fa->facebook_locale = 'fa_IR'; 1029 $fa->alphabet = 'persian'; 974 1030 975 1031 $fa_af = new GP_Locale(); … … 978 1034 $fa_af->lang_code_iso_639_1 = 'fa'; 979 1035 $fa_af->lang_code_iso_639_2 = 'fas'; 1036 $fa_af->country_code = 'af'; 980 1037 $fa_af->wp_locale = 'fa_AF'; 981 1038 $fa_af->slug = 'fa-af'; … … 984 1041 $fa_af->text_direction = 'rtl'; 985 1042 $fa_af->google_code = 'fa'; 1043 $fa_af->alphabet = 'persian'; 986 1044 987 1045 $ff_sn = new GP_Locale(); … … 1187 1245 $gu->google_code = 'gu'; 1188 1246 $gu->facebook_locale = 'gu_IN'; 1247 $gu->alphabet = 'gujarati'; 1189 1248 1190 1249 $ha = new GP_Locale(); … … 1196 1255 $ha->text_direction = 'rtl'; 1197 1256 $ha->google_code = 'ha'; 1257 $ha->alphabet = 'arabic'; 1198 1258 1199 1259 $hat = new GP_Locale(); … … 1235 1295 $haz->slug = 'haz'; 1236 1296 $haz->text_direction = 'rtl'; 1297 $haz->alphabet = 'arabic'; 1237 1298 1238 1299 $he = new GP_Locale(); … … 1246 1307 $he->google_code = 'iw'; 1247 1308 $he->facebook_locale = 'he_IL'; 1309 $he->alphabet = 'hebrew'; 1248 1310 1249 1311 $hi = new GP_Locale(); … … 1257 1319 $hi->google_code = 'hi'; 1258 1320 $hi->facebook_locale = 'hi_IN'; 1321 $hi->alphabet = 'devanagari'; 1259 1322 1260 1323 $hr = new GP_Locale(); … … 1303 1366 $hy->google_code = 'hy'; 1304 1367 $hy->facebook_locale = 'hy_AM'; 1368 $hy->alphabet = 'armenian'; 1305 1369 1306 1370 $ia = new GP_Locale(); … … 1355 1419 $ike->nplurals = 3; 1356 1420 $ike->plural_expression = '(n == 1) ? 0 : ((n == 2) ? 1 : 2)'; 1421 $ike->alphabet = 'syllabics'; 1357 1422 1358 1423 $ilo = new GP_Locale(); … … 1398 1463 $ja->nplurals = 1; 1399 1464 $ja->plural_expression = '0'; 1465 $ja->alphabet = 'kanji'; 1466 $ja->word_count_type = 'characters_including_spaces'; 1400 1467 1401 1468 $jv = new GP_Locale(); … … 1422 1489 $ka->google_code = 'ka'; 1423 1490 $ka->facebook_locale = 'ka_GE'; 1491 $ka->alphabet = 'georgian'; 1424 1492 1425 1493 $kaa = new GP_Locale(); … … 1474 1542 $kk->google_code = 'kk'; 1475 1543 $kk->facebook_locale = 'kk_KZ'; 1544 $kk->alphabet = 'cyrillic'; 1476 1545 1477 1546 $km = new GP_Locale(); … … 1487 1556 $km->google_code = 'km'; 1488 1557 $km->facebook_locale = 'km_KH'; 1558 $km->alphabet = 'khmer'; 1559 $km->word_count_type = 'characters_excluding_spaces'; 1489 1560 1490 1561 $kmr = new GP_Locale(); … … 1508 1579 $kn->google_code = 'kn'; 1509 1580 $kn->facebook_locale = 'kn_IN'; 1581 $kn->alphabet = 'kannada'; 1510 1582 1511 1583 $ko = new GP_Locale(); … … 1521 1593 $ko->google_code = 'ko'; 1522 1594 $ko->facebook_locale = 'ko_KR'; 1595 $ko->alphabet = 'hangul'; 1523 1596 1524 1597 $ks = new GP_Locale(); … … 1528 1601 $ks->lang_code_iso_639_2 = 'kas'; 1529 1602 $ks->slug = 'ks'; 1603 $ks->alphabet = 'devanagari'; 1530 1604 1531 1605 $kir = new GP_Locale(); … … 1541 1615 $kir->plural_expression = '0'; 1542 1616 $kir->google_code = 'ky'; 1617 $kir->alphabet = 'cyrillic'; 1543 1618 1544 1619 $la = new GP_Locale(); … … 1610 1685 $lo->google_code = 'lo'; 1611 1686 $lo->facebook_locale = 'lo_LA'; 1687 $lo->alphabet = 'lao'; 1612 1688 1613 1689 $lt = new GP_Locale(); … … 1655 1731 $mai->wp_locale = 'mai'; 1656 1732 $mai->slug = 'mai'; 1733 $mai->alphabet = 'devanagari'; 1657 1734 1658 1735 $me = new GP_Locale(); … … 1692 1769 $mhr->country_code = 'ru'; 1693 1770 $mhr->slug = 'mhr'; 1771 $mhr->alphabet = 'cyrillic'; 1694 1772 1695 1773 $mk = new GP_Locale(); … … 1705 1783 $mk->google_code = 'mk'; 1706 1784 $mk->facebook_locale = 'mk_MK'; 1785 $mk->alphabet = 'cyrillic'; 1707 1786 1708 1787 $ml = new GP_Locale(); … … 1716 1795 $ml->google_code = 'ml'; 1717 1796 $ml->facebook_locale = 'ml_IN'; 1797 $ml->alphabet = 'malayalam'; 1718 1798 1719 1799 $mlt = new GP_Locale(); … … 1741 1821 $mn->google_code = 'mn'; 1742 1822 $mn->facebook_locale = 'mn_MN'; 1823 $mn->alphabet = 'cyrillic'; 1743 1824 1744 1825 $mr = new GP_Locale(); … … 1751 1832 $mr->google_code = 'mr'; 1752 1833 $mr->facebook_locale = 'mr_IN'; 1834 $mr->alphabet = 'devanagari'; 1753 1835 1754 1836 $mri = new GP_Locale(); … … 1770 1852 $mrj->country_code = 'ru'; 1771 1853 $mrj->slug = 'mrj'; 1854 $mrj->alphabet = 'cyrillic'; 1772 1855 1773 1856 $ms = new GP_Locale(); … … 1798 1881 $my->slug = 'mya'; 1799 1882 $my->google_code = 'my'; 1883 $my->alphabet = 'burmese'; 1800 1884 1801 1885 $ne = new GP_Locale(); … … 1809 1893 $ne->google_code = 'ne'; 1810 1894 $ne->facebook_locale = 'ne_NP'; 1895 $ne->alphabet = 'devanagari'; 1811 1896 1812 1897 $nb = new GP_Locale(); … … 1878 1963 $nqo->slug = 'nqo'; 1879 1964 $nqo->text_direction = 'rtl'; 1965 $nqo->alphabet = 'nko'; 1880 1966 1881 1967 $nso = new GP_Locale(); … … 1916 2002 $ory->slug = 'ory'; 1917 2003 $ory->facebook_locale = 'or_IN'; 2004 $ory->alphabet = 'odia'; 1918 2005 1919 2006 $os = new GP_Locale(); … … 1924 2011 $os->wp_locale = 'os'; 1925 2012 $os->slug = 'os'; 2013 $os->alphabet = 'cyrillic'; 1926 2014 1927 2015 $pa = new GP_Locale(); 1928 $pa->english_name = 'P unjabi';2016 $pa->english_name = 'Panjabi (India)'; 1929 2017 $pa->native_name = 'ਪੰਜਾਬੀ'; 1930 2018 $pa->lang_code_iso_639_1 = 'pa'; … … 1934 2022 $pa->slug = 'pa'; 1935 2023 $pa->google_code = 'pa'; 2024 $pa->nplurals = 2; 2025 $pa->plural_expression = 'n > 1'; 1936 2026 $pa->facebook_locale = 'pa_IN'; 2027 $pa->alphabet = 'gurmukhi'; 2028 2029 $pa_pk = new GP_Locale(); 2030 $pa_pk->english_name = 'Punjabi (Pakistan)'; 2031 $pa_pk->native_name = 'پنجابی'; 2032 $pa_pk->lang_code_iso_639_1 = 'pa'; 2033 $pa_pk->lang_code_iso_639_2 = 'pan'; 2034 $pa_pk->country_code = 'pk'; 2035 $pa_pk->wp_locale = 'pa_PK'; 2036 $pa_pk->slug = 'pa-pk'; 2037 $pa_pk->nplurals = 2; 2038 $pa_pk->plural_expression = 'n > 1'; 2039 $pa_pk->google_code = 'pa'; 2040 $pa_pk->alphabet = 'shahmukhi'; 1937 2041 1938 2042 $pap_cw = new GP_Locale(); … … 2042 2146 $ps->text_direction = 'rtl'; 2043 2147 $ps->facebook_locale = 'ps_AF'; 2148 $ps->alphabet = 'pashto'; 2044 2149 2045 2150 $rhg = new GP_Locale(); … … 2088 2193 $ru->google_code = 'ru'; 2089 2194 $ru->facebook_locale = 'ru_RU'; 2195 $ru->alphabet = 'cyrillic'; 2090 2196 2091 2197 $rue = new GP_Locale(); … … 2096 2202 $rue->nplurals = 3; 2097 2203 $rue->plural_expression = '(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2)'; 2204 $rue->alphabet = 'cyrillic'; 2098 2205 2099 2206 $rup = new GP_Locale(); … … 2113 2220 $sah->wp_locale = 'sah'; 2114 2221 $sah->slug = 'sah'; 2222 $sah->alphabet = 'cyrillic'; 2115 2223 2116 2224 $sa_in = new GP_Locale(); … … 2124 2232 $sa_in->slug = 'sa-in'; 2125 2233 $sa_in->facebook_locale = 'sa_IN'; 2234 $sa_in->alphabet = 'brahmic'; 2126 2235 2127 2236 $scn = new GP_Locale(); … … 2143 2252 $si->google_code = 'si'; 2144 2253 $si->facebook_locale = 'si_LK'; 2254 $si->alphabet = 'sinhala'; 2145 2255 2146 2256 $sk = new GP_Locale(); … … 2167 2277 $skr->plural_expression = 'n > 1'; 2168 2278 $skr->text_direction = 'rtl'; 2279 $skr->alphabet = 'saraiki'; 2169 2280 2170 2281 $sl = new GP_Locale(); … … 2200 2311 $snd->slug = 'snd'; 2201 2312 $snd->text_direction = 'rtl'; 2313 $snd->alphabet = 'arabic'; 2202 2314 2203 2315 $so = new GP_Locale(); … … 2244 2356 $sr->google_code = 'sr'; 2245 2357 $sr->facebook_locale = 'sr_RS'; 2358 $sr->alphabet = 'cyrillic'; 2246 2359 2247 2360 $sr_latin = clone $sr; … … 2312 2425 $syr->wp_locale = 'syr'; 2313 2426 $syr->slug = 'syr'; 2427 $syr->alphabet = 'syriac'; 2314 2428 2315 2429 $szl = new GP_Locale(); … … 2334 2448 $ta->google_code = 'ta'; 2335 2449 $ta->facebook_locale = 'ta_IN'; 2450 $ta->alphabet = 'tamil'; 2336 2451 2337 2452 $ta_lk = new GP_Locale(); … … 2344 2459 $ta_lk->slug = 'ta-lk'; 2345 2460 $ta_lk->google_code = 'ta'; 2461 $ta_lk->alphabet = 'tamil'; 2346 2462 2347 2463 $tah = new GP_Locale(); … … 2366 2482 $te->google_code = 'te'; 2367 2483 $te->facebook_locale = 'te_IN'; 2484 $te->alphabet = 'telugu'; 2368 2485 2369 2486 $tg = new GP_Locale(); … … 2377 2494 $tg->google_code = 'tg'; 2378 2495 $tg->facebook_locale = 'tg_TJ'; 2496 $tg->alphabet = 'cyrillic'; 2379 2497 2380 2498 $th = new GP_Locale(); … … 2389 2507 $th->google_code = 'th'; 2390 2508 $th->facebook_locale = 'th_TH'; 2509 $th->alphabet = 'thai'; 2510 $th->word_count_type = 'characters_excluding_spaces'; 2391 2511 2392 2512 $tir = new GP_Locale(); … … 2400 2520 $tir->nplurals = 1; 2401 2521 $tir->plural_expression = '0'; 2522 $tir->alphabet = 'geez'; 2402 2523 2403 2524 $tlh = new GP_Locale(); … … 2445 2566 $tt_ru->plural_expression = '0'; 2446 2567 $tt_ru->facebook_locale = 'tt_RU'; 2568 $tt_ru->alphabet = 'cyrillic'; 2447 2569 2448 2570 $tuk = new GP_Locale(); … … 2475 2597 $tzm->nplurals = 2; 2476 2598 $tzm->plural_expression = 'n > 1'; 2599 $tzm->alphabet = 'tifinagh'; 2477 2600 2478 2601 $udm = new GP_Locale(); … … 2481 2604 $udm->lang_code_iso_639_2 = 'udm'; 2482 2605 $udm->slug = 'udm'; 2606 $udm->alphabet = 'cyrillic'; 2483 2607 2484 2608 $ug = new GP_Locale(); … … 2491 2615 $ug->slug = 'ug'; 2492 2616 $ug->text_direction = 'rtl'; 2617 $ug->alphabet = 'uyghur'; 2493 2618 2494 2619 $uk = new GP_Locale(); … … 2504 2629 $uk->google_code = 'uk'; 2505 2630 $uk->facebook_locale = 'uk_UA'; 2631 $uk->alphabet = 'cyrillic'; 2506 2632 2507 2633 $ur = new GP_Locale(); … … 2516 2642 $ur->google_code = 'ur'; 2517 2643 $ur->facebook_locale = 'ur_PK'; 2644 $ur->alphabet = 'persian'; 2518 2645 2519 2646 $uz = new GP_Locale(); … … 2590 2717 $xmf->country_code = 'ge'; 2591 2718 $xmf->slug = 'xmf'; 2719 $xmf->alphabet = 'georgian'; 2592 2720 2593 2721 $yi = new GP_Locale(); … … 2599 2727 $yi->text_direction = 'rtl'; 2600 2728 $yi->google_code = 'yi'; 2729 $yi->alphabet = 'hebrew'; 2601 2730 2602 2731 $yor = new GP_Locale(); … … 2622 2751 $zgh->nplurals = 2; 2623 2752 $zgh->plural_expression = 'n >= 2 && (n < 11 || n > 99)'; 2753 $zgh->alphabet = 'tifinagh'; 2624 2754 2625 2755 $zh = new GP_Locale(); … … 2631 2761 $zh->nplurals = 1; 2632 2762 $zh->plural_expression = '0'; 2763 $zh->alphabet = 'hanyu'; 2633 2764 2634 2765 $zh_cn = new GP_Locale(); … … 2644 2775 $zh_cn->google_code = 'zh-CN'; 2645 2776 $zh_cn->facebook_locale = 'zh_CN'; 2777 $zh_cn->alphabet = 'simplified-chinese'; 2778 $zh_cn->word_count_type = 'characters_excluding_spaces'; 2646 2779 2647 2780 $zh_hk = new GP_Locale(); 2648 2781 $zh_hk->english_name = 'Chinese (Hong Kong)'; 2649 $zh_hk->native_name = '香港中文 版';2782 $zh_hk->native_name = '香港中文'; 2650 2783 $zh_hk->lang_code_iso_639_1 = 'zh'; 2651 2784 $zh_hk->lang_code_iso_639_2 = 'zho'; … … 2656 2789 $zh_hk->plural_expression = '0'; 2657 2790 $zh_hk->facebook_locale = 'zh_HK'; 2791 $zh_hk->alphabet = 'simplified-chinese'; 2792 $zh_hk->word_count_type = 'characters_excluding_spaces'; 2658 2793 2659 2794 $zh_sg = new GP_Locale(); … … 2667 2802 $zh_sg->nplurals = 1; 2668 2803 $zh_sg->plural_expression = '0'; 2804 $zh_sg->alphabet = 'hanyu'; 2805 $zh_sg->word_count_type = 'characters_excluding_spaces'; 2669 2806 2670 2807 $zh_tw = new GP_Locale(); … … 2680 2817 $zh_tw->google_code = 'zh-TW'; 2681 2818 $zh_tw->facebook_locale = 'zh_TW'; 2819 $zh_tw->alphabet = 'hanyu'; 2820 $zh_tw->word_count_type = 'characters_excluding_spaces'; 2682 2821 2683 2822 $zul = new GP_Locale(); … … 2692 2831 $zul->google_code = 'zu'; 2693 2832 2694 foreach ( get_defined_vars() as $locale ) { 2833 $def_vars = get_defined_vars(); 2834 2835 if ( function_exists( 'apply_filters' ) ) { 2836 /** 2837 * Fires after the locales have been defined but before they have been assigned to the object property. 2838 * 2839 * @since 3.0.0 2840 * 2841 * @param array $def_vars The array of locale objects. 2842 * 2843 * @return array The updated array of locale objects. 2844 */ 2845 $def_vars = apply_filters( 'gp_locale_definitions_array', $def_vars ); 2846 } 2847 2848 foreach ( $def_vars as $locale ) { 2695 2849 $this->locales[ $locale->slug ] = $locale; 2696 2850 }
Note: See TracChangeset
for help on using the changeset viewer.