- Timestamp:
- 02/25/2019 10:26:15 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/core/credits/index.php
r7300 r8349 50 50 require GLOTPRESS_LOCALES_PATH; 51 51 52 // Temporary: Add language variants to the list of GlotPress locales.53 $GLOBALS['gp_locales'] = new GP_Locales();54 55 $de_formal = clone GP_Locales::by_field( 'wp_locale', 'de_DE' );56 $de_formal->english_name = 'German (Formal)';57 $de_formal->native_name = 'Deutsch (Sie)';58 $de_formal->slug = 'de/formal';59 $de_formal->wp_locale = 'de_DE_formal';60 $GLOBALS['gp_locales']->locales['de/formal'] = $de_formal;61 62 $nl_formal = clone GP_Locales::by_field( 'wp_locale', 'nl_NL' );63 $nl_formal->english_name = 'Dutch (Formal)';64 $nl_formal->native_name = 'Nederlands (Formeel)';65 $nl_formal->slug = 'nl/formal';66 $nl_formal->wp_locale = 'nl_NL_formal';67 $GLOBALS['gp_locales']->locales['nl/formal'] = $nl_formal;68 69 $de_ch_informal = clone GP_Locales::by_field( 'wp_locale', 'de_CH' );70 $de_ch_informal->english_name = 'German (Switzerland, Informal)';71 $de_ch_informal->native_name = 'Deutsch (Schweiz, Du)';72 $de_ch_informal->slug = 'de-ch/informal';73 $de_ch_informal->wp_locale = 'de_CH_informal';74 $GLOBALS['gp_locales']->locales['de-ch/informal'] = $de_ch_informal;75 76 52 $gp_locale = GP_Locales::by_field( 'wp_locale', isset( $argv[2] ) ? $argv[2] : $_GET['locale'] ); 77 53 if ( $gp_locale ) {
Note: See TracChangeset
for help on using the changeset viewer.