Making WordPress.org

Changeset 5881


Ignore:
Timestamp:
09/04/2017 07:12:38 PM (7 years ago)
Author:
ocean90
Message:

Translations API: Add the AO90 variant of Portuguese to the list of GlotPress locales.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/translations/lib.php

    r4176 r5881  
    7474    $de_ch_informal->wp_locale = 'de_CH_informal';
    7575    $GLOBALS['gp_locales']->locales['de-ch/informal'] = $de_ch_informal;
     76
     77    $pt_pt_ao90 = clone GP_Locales::by_field( 'wp_locale', 'pt_PT' );
     78    $pt_pt_ao90->english_name = 'Portuguese (Portugal, AO90)';
     79    $pt_pt_ao90->native_name = 'Português (AO90)';
     80    $pt_pt_ao90->slug = 'pt/ao90';
     81    $pt_pt_ao90->wp_locale = 'pt_PT_ao90';
     82    $GLOBALS['gp_locales']->locales['pt/ao90'] = $pt_pt_ao90;
    7683
    7784    $base_url = is_ssl() ? 'https' : 'http';
Note: See TracChangeset for help on using the changeset viewer.