Making WordPress.org

Changeset 2319


Ignore:
Timestamp:
01/19/2016 12:42:48 PM (10 years ago)
Author:
ocean90
Message:

Translations API: Add the formal variant of Dutch to the list of GlotPress locales.

File:
1 edited

Legend:

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

    r2291 r2319  
    6060    $de_formal->wp_locale = 'de_DE_formal';
    6161    $GLOBALS['gp_locales']->locales['de/formal'] = $de_formal;
     62
     63    $nl_formal = clone GP_Locales::by_field( 'wp_locale', 'nl_NL' );
     64    $nl_formal->english_name = 'Dutch (Formal)';
     65    $nl_formal->native_name = 'Nederlands (Formeel)';
     66    $nl_formal->slug = 'nl/formal';
     67    $nl_formal->wp_locale = 'nl_NL_formal';
     68    $GLOBALS['gp_locales']->locales['nl/formal'] = $nl_formal;
    6269
    6370    $base_url = is_ssl() ? 'https' : 'http';
Note: See TracChangeset for help on using the changeset viewer.