Changeset 1733
- Timestamp:
- 07/11/2015 04:01:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/translations/lib.php
r1466 r1733 52 52 53 53 require_once WPORGPATH . 'translate/glotpress/locales/locales.php'; 54 // Temporary: Add language variants to the list of GlotPress locales. 55 $GLOBALS['gp_locales'] = new GP_Locales; 56 $de_formal = clone GP_Locales::by_field( 'wp_locale', 'de_DE' ); 57 $de_formal->english_name = 'German (Formal)'; 58 $de_formal->native_name = 'Deutsch (Sie)'; 59 $de_formal->slug = 'de/formal'; 60 $de_formal->wp_locale = 'de_DE_formal'; 61 $GLOBALS['gp_locales']->locales['de/formal'] = $de_formal; 62 54 63 $base_url = is_ssl() ? 'https' : 'http'; 55 64 $base_url .= '://downloads.wordpress.org/translation/'; … … 62 71 // Magic numbers: 78 is wp/dev/admin. 326 is 'Continue'. 63 72 $continue_translations = $wpdb->get_results( 64 "SELECT locale as gp_locale, translation_0 as translation 73 "SELECT 74 IF(ts.slug <> 'default', CONCAT(ts.locale, '/', ts.slug), ts.locale) as slug, 75 translation_0 as translation 65 76 FROM translate_translation_sets ts 66 77 INNER JOIN translate_translations t 67 78 ON ts.id = t.translation_set_id 68 79 WHERE project_id = 78 69 AND slug = 'default'70 80 AND original_id = 326", OBJECT_K 71 81 ); … … 247 257 return $translations; 248 258 } 249
Note: See TracChangeset
for help on using the changeset viewer.