Ticket #28303: 28303.5.patch
File 28303.5.patch, 3.2 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/l10n.css
58 58 .locale-zh-cn #sort-buttons { font-size: 1em !important; } 59 59 60 60 /* de_DE: Text needs more space for translation */ 61 .locale-de-de .inline-edit-row fieldset label span.title { 61 .locale-de-de .inline-edit-row fieldset label span.title, 62 .locale-de-de-formal .inline-edit-row fieldset label span.title { 62 63 width: 7em; /* default 5em */ 63 64 } 64 .locale-de-de .inline-edit-row fieldset label span.input-text-wrap { 65 .locale-de-de .inline-edit-row fieldset label span.input-text-wrap, 66 .locale-de-de-formal .inline-edit-row fieldset label span.input-text-wrap { 65 67 margin-left: 7em; /* default 5em */ 66 68 } 67 .locale-de-de #customize-header-actions .button { 69 .locale-de-de #customize-header-actions .button, 70 .locale-de-de-formal #customize-header-actions .button { 68 71 padding: 0 5px 1px; /* default 0 10px 1px */ 69 72 } 70 .locale-de-de #customize-header-actions .spinner { 73 .locale-de-de #customize-header-actions .spinner, 74 .locale-de-de-formal #customize-header-actions .spinner { 71 75 margin: 16px 3px 0; /* default 16px 4px 0 5px */ 72 76 } 73 77 -
src/wp-includes/formatting.php
1138 1138 // Used for locale-specific rules 1139 1139 $locale = get_locale(); 1140 1140 1141 if ( 'de_DE' == $locale ) {1141 if ( 'de_DE' == $locale || 'de_DE_formal' == $locale ) { 1142 1142 $chars[ chr(195).chr(132) ] = 'Ae'; 1143 1143 $chars[ chr(195).chr(164) ] = 'ae'; 1144 1144 $chars[ chr(195).chr(150) ] = 'Oe'; -
src/wp-includes/l10n.php
820 820 if ( substr( $file, -3 ) !== '.po' ) { 821 821 continue; 822 822 } 823 if ( ! preg_match( '/(?:(.+)-)?([ A-Za-z_]{2,6}).po/', $file, $match ) ) {823 if ( ! preg_match( '/(?:(.+)-)?([a-z]{2,3}(?:_[A-Z]{2})?(?:_[a-z]+)?).po/', $file, $match ) ) { 824 824 continue; 825 825 } 826 826 if ( ! in_array( substr( $file, 0, -3 ) . '.mo', $files ) ) { -
tests/phpunit/tests/formatting/BlogInfo.php
1 <?php 2 3 /** 4 * @group formatting 5 */ 6 class Tests_Formatting_BlogInfo extends WP_UnitTestCase { 7 8 /** 9 * @dataProvider locales 10 */ 11 function test_get_bloginfo_language( $test_locale, $expected ) { 12 global $locale; 13 14 $old_locale = $locale; 15 $locale = $test_locale; 16 $this->assertEquals( $expected, get_bloginfo( 'language' ) ); 17 $locale = $old_locale; 18 } 19 20 function locales() { 21 return array( 22 // Locale Language code 23 array( 'en_US', 'en-US' ), 24 array( 'ar', 'ar' ), 25 array( 'de_DE', 'de-DE' ), 26 array( 'de_DE_formal', 'de-DE-formal' ), 27 array( 'oci', 'oci' ), 28 array( 'pt_PT_ao1990', 'pt-PT-ao1990' ), 29 ); 30 } 31 }