Making WordPress.org

Changeset 9986


Ignore:
Timestamp:
06/28/2020 01:05:19 PM (5 years ago)
Author:
ocean90
Message:

Locales: Sync file with the upstream version of GlotPress.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/locales/locales.php

    r9839 r9986  
    33 * Locales used on WordPress.org.
    44 *
    5  * - Copy of https://github.com/GlotPress/GlotPress-WP/blob/ed1160237f77fa4f8e5bbb8ae195573f6232423e/locales/no-variants/locales.php
     5 * - Copy of https://github.com/GlotPress/GlotPress-WP/blob/4e75ab6/locales/locales.php
    66 * - With support for custom locale variants.
    7  * - Without https://github.com/GlotPress/GlotPress-WP/pull/1012.
     7 * - Without https://github.com/GlotPress/GlotPress-WP/pull/1012 and https://github.com/GlotPress/GlotPress-WP/pull/1017.
    88 * - Without other dependencies because the file gets also loaded in api.wordpress.org context.
    99 */
     
    115115    }
    116116
     117    /**
     118     * When converting the object to a string, the combined name is returned.
     119     *
     120     * @since 3.0.0
     121     *
     122     * @return string Combined name of locale.
     123     */
     124    public function __toString() {
     125        return $this->combined_name();
     126    }
    117127}
    118128
     
    785795        $es_cl->slug = 'es-cl';
    786796        $es_cl->google_code = 'es';
    787         $es_cl->facebook_locale = 'es_CL';
     797        $es_cl->facebook_locale = 'es_LA';
    788798
    789799        $es_co = new GP_Locale();
     
    797807        $es_co->slug = 'es-co';
    798808        $es_co->google_code = 'es';
    799         $es_co->facebook_locale = 'es_CO';
     809        $es_co->facebook_locale = 'es_LA';
    800810
    801811        $es_cr = new GP_Locale();
     
    808818        $es_cr->wp_locale = 'es_CR';
    809819        $es_cr->slug = 'es-cr';
     820        $es_cr->google_code = 'es';
     821        $es_cr->facebook_locale = 'es_LA';
    810822
    811823        $es_do = new GP_Locale();
     
    819831        $es_do->slug = 'es-do';
    820832        $es_do->google_code = 'es';
     833        $es_do->facebook_locale = 'es_LA';
     834
     835        $es_ec = new GP_Locale();
     836        $es_ec->english_name = 'Spanish (Ecuador)';
     837        $es_ec->native_name = 'Español de Ecuador';
     838        $es_ec->lang_code_iso_639_1 = 'es';
     839        $es_ec->lang_code_iso_639_2 = 'spa';
     840        $es_ec->lang_code_iso_639_3 = 'spa';
     841        $es_ec->country_code = 'ec';
     842        $es_ec->wp_locale = 'es_EC';
     843        $es_ec->slug = 'es-ec';
     844        $es_ec->google_code = 'es';
     845        $es_ec->facebook_locale = 'es_LA';
    821846
    822847        $es_gt = new GP_Locale();
     
    842867        $es_hn->slug = 'es-hn';
    843868        $es_hn->google_code = 'es';
     869        $es_hn->facebook_locale = 'es_LA';
    844870
    845871        $es_mx = new GP_Locale();
     
    897923        $es_uy->wp_locale = 'es_UY';
    898924        $es_uy->slug = 'es-uy';
     925        $es_uy->google_code = 'es';
     926        $es_uy->facebook_locale = 'es_LA';
    899927
    900928        $es_ve = new GP_Locale();
     
    908936        $es_ve->slug = 'es-ve';
    909937        $es_ve->google_code = 'es';
    910         $es_ve->facebook_locale = 'es_VE';
     938        $es_ve->facebook_locale = 'es_LA';
    911939
    912940        $et = new GP_Locale();
     
    9951023        $fo->facebook_locale = 'fo_FO';
    9961024
     1025        $fon = new GP_Locale();
     1026        $fon->english_name = 'Fon';
     1027        $fon->native_name = 'fɔ̀ngbè';
     1028        $fon->lang_code_iso_639_2 = 'fon';
     1029        $fon->lang_code_iso_639_3 = 'fon';
     1030        $fon->country_code = 'bj';
     1031        $fon->wp_locale = 'fon';
     1032        $fon->slug = 'fon';
     1033
    9971034        $fr = new GP_Locale();
    9981035        $fr->english_name = 'French (France)';
     
    15661603        $lo->lang_code_iso_639_1 = 'lo';
    15671604        $lo->lang_code_iso_639_2 = 'lao';
    1568         $lo->country_code = 'LA';
     1605        $lo->country_code = 'la';
    15691606        $lo->wp_locale = 'lo';
    15701607        $lo->slug = 'lo';
     
    20322069        $roh->english_name = 'Romansh';
    20332070        $roh->native_name = 'Rumantsch';
    2034         $roh->lang_code_iso_639_2 = 'rm';
     2071        $roh->lang_code_iso_639_1 = 'rm';
     2072        $roh->lang_code_iso_639_2 = 'roh';
    20352073        $roh->lang_code_iso_639_3 = 'roh';
    20362074        $roh->country_code = 'ch';
     
    21562194        $snd->native_name = 'سنڌي';
    21572195        $snd->lang_code_iso_639_1 = 'sd';
    2158         $snd->lang_code_iso_639_2 = 'sd';
     2196        $snd->lang_code_iso_639_2 = 'snd';
    21592197        $snd->lang_code_iso_639_3 = 'snd';
    21602198        $snd->country_code = 'pk';
     
    24872525        $vec = new GP_Locale();
    24882526        $vec->english_name = 'Venetian';
    2489         $vec->native_name = 'Vèneta';
     2527        $vec->native_name = 'Vèneto';
    24902528        $vec->lang_code_iso_639_2 = 'roa';
    24912529        $vec->lang_code_iso_639_3 = 'vec';
    24922530        $vec->country_code = 'it';
    24932531        $vec->slug = 'vec';
     2532        $vec->wp_locale = 'vec';
    24942533
    24952534        $vi = new GP_Locale();
     
    25662605        $yor->facebook_locale = 'yo_NG';
    25672606
     2607        $zgh = new GP_Locale();
     2608        $zgh->english_name = 'Tamazight';
     2609        $zgh->native_name = 'ⵜⴰⵎⴰⵣⵉⵖⵜ';
     2610        $zgh->lang_code_iso_639_2 = 'zgh';
     2611        $zgh->lang_code_iso_639_3 = 'zgh';
     2612        $zgh->country_code = 'ma';
     2613        $zgh->wp_locale = 'zgh';
     2614        $zgh->slug = 'zgh';
     2615        $zgh->nplurals = 2;
     2616        $zgh->plural_expression = 'n >= 2 && (n < 11 || n > 99)';
     2617
    25682618        $zh = new GP_Locale();
    25692619        $zh->english_name = 'Chinese';
Note: See TracChangeset for help on using the changeset viewer.