Making WordPress.org

Changeset 12637


Ignore:
Timestamp:
06/08/2023 08:43:12 AM (12 months 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

    r12080 r12637  
    33 * Locales used on WordPress.org.
    44 *
    5  * - Copy of https://github.com/GlotPress/GlotPress/blob/bf614ee290531da6ced571a79d5701dcf68d2212/locales/locales.php
     5 * - Copy of https://github.com/GlotPress/GlotPress/blob/e6b0c7d6d82ee55c4246311f37b6eac39502e9fa/locales/locales.php
    66 * - With support for custom locale variants.
    77 * - Without https://github.com/GlotPress/GlotPress-WP/pull/1012 and https://github.com/GlotPress/GlotPress-WP/pull/1017.
     
    1717    public $lang_code_iso_639_3 = null;
    1818    public $country_code;
    19     public $wp_locale;
     19    public $wp_locale; // This should only be set for locales that are officially supported on translate.wordpress.org.
    2020    public $slug;
    2121    public $nplurals = 2;
     
    2828
    2929    /**
    30      * The variant root for this locale.
    31      *
    32      * @since 3.0.0
    33      *
    34      * @var string
    35      */
    36     public $variant_root = null;
    37 
    38     /**
    39      * The variants of this locale.
    4030     *
    4131     * @since 3.0.0
     
    4333     * @var array
    4434     */
    45     public $variants = null;
    4635
    4736    // TODO: days, months, decimals, quotes
     
    783772        $en_gb->facebook_locale = 'en_GB';
    784773
     774        $en_ie = new GP_Locale();
     775        $en_ie->english_name = 'English (Ireland)';
     776        $en_ie->native_name = 'English (Ireland)';
     777        $en_ie->lang_code_iso_639_1 = 'en';
     778        $en_ie->lang_code_iso_639_2 = 'eng';
     779        $en_ie->lang_code_iso_639_3 = 'eng';
     780        $en_ie->country_code = 'ie';
     781        $en_ie->slug = 'en-ie';
     782        $en_ie->google_code = 'en';
     783
    785784        $en_nz = new GP_Locale();
    786785        $en_nz->english_name = 'English (New Zealand)';
     
    933932        $es_mx->slug = 'es-mx';
    934933        $es_mx->google_code = 'es';
    935         $es_mx->facebook_locale = 'es_MX';
     934        $es_mx->facebook_locale = 'es_LA';
     935
     936        $es_pa = new GP_Locale();
     937        $es_pa->english_name = 'Spanish (Panama)';
     938        $es_pa->native_name = 'Español de Panamá';
     939        $es_pa->lang_code_iso_639_1 = 'es';
     940        $es_pa->lang_code_iso_639_2 = 'spa';
     941        $es_pa->lang_code_iso_639_3 = 'spa';
     942        $es_pa->country_code = 'pa';
     943        $es_pa->slug = 'es-pa';
     944        $es_pa->google_code = 'es';
     945        $es_pa->facebook_locale = 'es_LA';
    936946
    937947        $es_pe = new GP_Locale();
     
    21582168        $rhg->plural_expression = '0';
    21592169
     2170        $rif = new GP_Locale();
     2171        $rif->english_name = 'Tarifit';
     2172        $rif->native_name = 'Tarifiyt';
     2173        $rif->lang_code_iso_639_3 = 'rif';
     2174        $rif->country_code = 'ma';
     2175        $rif->slug = 'rif';
     2176
    21602177        $ro = new GP_Locale();
    21612178        $ro->english_name = 'Romanian';
Note: See TracChangeset for help on using the changeset viewer.