Making WordPress.org

Changeset 2928


Ignore:
Timestamp:
04/11/2016 11:33:19 AM (9 years ago)
Author:
ocean90
Message:

Translations API: Add the informal variant of German (Switzerland) to the list of GlotPress locales.

File:
1 edited

Legend:

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

    r2319 r2928  
    6767    $nl_formal->wp_locale = 'nl_NL_formal';
    6868    $GLOBALS['gp_locales']->locales['nl/formal'] = $nl_formal;
     69
     70    $de_ch_informal = clone GP_Locales::by_field( 'wp_locale', 'de_CH' );
     71    $de_ch_informal->english_name = '(Switzerland, Informal)';
     72    $de_ch_informal->native_name = 'Deutsch (Schweiz, Du)';
     73    $de_ch_informal->slug = 'de-ch/informal';
     74    $de_ch_informal->wp_locale = 'de_CH_informal';
     75    $GLOBALS['gp_locales']->locales['de-ch/informal'] = $de_ch_informal;
    6976
    7077    $base_url = is_ssl() ? 'https' : 'http';
Note: See TracChangeset for help on using the changeset viewer.