Ticket #43829: 43829_1.patch
File 43829_1.patch, 8.8 KB (added by , 6 years ago) |
---|
-
tests/phpunit/data/languages/ja_JP.po
Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: tests/phpunit/data/languages/ja_JP.mo ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property
1 # Translation of 5.0.x in Japanese 2 # This file is distributed under the same license as the 4.6.x package. 3 msgid "" 4 msgstr "" 5 "PO-Revision-Date: 2018-04-21 18:27+0900\n" 6 "MIME-Version: 1.0\n" 7 "Content-Type: text/plain; charset=UTF-8\n" 8 "Content-Transfer-Encoding: 8bit\n" 9 "Plural-Forms: nplurals=2; plural=n != 1;\n" 10 "X-Generator: Poedit 1.8.10\n" 11 "Project-Id-Version: 5.0.x\n" 12 "Language: ja_JP\n" 13 14 #. translators: Translate this to the correct language tag for your locale, see 15 #. https://www.w3.org/International/articles/language-tags/ for reference. Do 16 #. not translate into your own language. 17 #: wp-includes/general-template.php:716 18 msgid "html_lang_attribute" 19 msgstr "ja" 20 21 #. translators: 'rtl' or 'ltr'. This sets the text direction for WordPress. 22 #: wp-includes/class-wp-locale.php:223 23 msgctxt "text direction" 24 msgid "ltr" 25 msgstr "ltr" 26 27 #. translators: $dec_point argument for https://secure.php.net/number_format, 28 #. default is . 29 #: wp-includes/class-wp-locale.php:215 30 msgid "number_format_decimal_point" 31 msgstr "number_format_decimal_point" 32 33 #. translators: $thousands_sep argument for 34 #. https://secure.php.net/number_format, default is , 35 #: wp-includes/class-wp-locale.php:202 36 msgid "number_format_thousands_sep" 37 msgstr "number_format_thousands_sep" 38 39 #. translators: %s: Plugin name and version 40 #: wp-includes/script-loader.php:620 41 msgid "Update %s now" 42 msgstr "今すぐ %s を更新" -
tests/phpunit/tests/db.php
90 90 $current_locales = explode( ';', setlocale( LC_ALL, 0 ) ); 91 91 92 92 // Switch to Russian 93 $flag = setlocale( LC_ALL, 'ru_RU.utf8', 'rus', 'fr_FR.utf8', 'fr_FR', 'de_DE.utf8', 'de_DE', 'es_ES.utf8', 'es_ES' );93 $flag = setlocale( LC_ALL, 'ru_RU.utf8', 'rus', 'fr_FR.utf8', 'fr_FR', 'de_DE.utf8', 'de_DE', 'es_ES.utf8', 'es_ES', 'ja_JP.utf8', 'ja_JP' ); 94 94 if ( false === $flag ) { 95 95 $this->markTestSkipped( 'No European languages available for testing' ); 96 96 } -
tests/phpunit/tests/formatting/BlogInfo.php
29 29 array( 'de_DE_formal', 'de-DE-formal' ), 30 30 array( 'oci', 'oci' ), 31 31 array( 'pt_PT_ao1990', 'pt-PT-ao1990' ), 32 array( 'ja_JP', 'ja-JP' ), 32 33 ); 33 34 } 34 35 -
tests/phpunit/tests/l10n.php
53 53 $this->assertEmpty( $array ); 54 54 55 55 $array = get_available_languages( DIR_TESTDATA . '/languages/' ); 56 $this->assertEquals( array( 'de_DE', 'en_GB', 'es_ES' ), $array );56 $this->assertEquals( array( 'de_DE', 'en_GB', 'es_ES', 'ja_JP' ), $array ); 57 57 } 58 58 59 59 /** … … 97 97 $this->assertContains( '<option value="" lang="en" data-installed="1">English (United States)</option>', $actual ); 98 98 $this->assertContains( '<option value="de_DE" lang="de" selected=\'selected\' data-installed="1">Deutsch</option>', $actual ); 99 99 $this->assertContains( '<option value="it_IT" lang="it">Italiano</option>', $actual ); 100 $this->assertContains( '<option value="ja_JP" lang="ja">日本語</option>', $actual ); 100 101 } 101 102 102 103 /** … … 120 121 $this->assertContains( '<option value="" lang="en" data-installed="1">English (United States)</option>', $actual ); 121 122 $this->assertContains( '<option value="de_DE" lang="de" selected=\'selected\' data-installed="1">Deutsch</option>', $actual ); 122 123 $this->assertContains( '<option value="it_IT" lang="it">Italiano</option>', $actual ); 124 $this->assertContains( '<option value="ja_JP" lang="ja">日本語</option>', $actual ); 123 125 } 124 126 125 127 /** … … 141 143 $this->assertContains( '<option value="" lang="en" data-installed="1" selected=\'selected\'>English (United States)</option>', $actual ); 142 144 $this->assertContains( '<option value="de_DE" lang="de" data-installed="1">Deutsch</option>', $actual ); 143 145 $this->assertContains( '<option value="it_IT" lang="it">Italiano</option>', $actual ); 146 $this->assertContains( '<option value="ja_JP" lang="ja">日本語</option>', $actual ); 144 147 } 145 148 146 149 /** 150 * Add site default language to ja_JP in dropdown 151 */ 152 function test_wp_dropdown_languages_site_default_ja_JP() { 153 $args = array( 154 'id' => 'foo', 155 'name' => 'bar', 156 'languages' => array( 'ja_JP' ), 157 'translations' => $this->wp_dropdown_languages_filter(), 158 'selected' => 'ja_JP', 159 'echo' => false, 160 'show_option_site_default' => true, 161 ); 162 $actual = wp_dropdown_languages( $args ); 163 164 $this->assertContains( 'id="foo"', $actual ); 165 $this->assertContains( 'name="bar"', $actual ); 166 $this->assertContains( '<option value="site-default" data-installed="1">Site Default</option>', $actual ); 167 $this->assertContains( '<option value="" lang="en" data-installed="1">English (United States)</option>', $actual ); 168 $this->assertContains( '<option value="de_DE" lang="de">Deutsch</option>', $actual ); 169 $this->assertContains( '<option value="it_IT" lang="it">Italiano</option>', $actual ); 170 $this->assertContains( '<option value="ja_JP" lang="ja" selected=\'selected\' data-installed="1">日本語</option>', $actual ); 171 } 172 173 /** 174 * Select dropdown language from de_DE to ja_JP 175 */ 176 function test_wp_dropdown_languages_ja_JP_selected() { 177 $args = array( 178 'id' => 'foo', 179 'name' => 'bar', 180 'languages' => array( 'de_DE' ), 181 'translations' => $this->wp_dropdown_languages_filter(), 182 'selected' => 'ja_JP', 183 'echo' => false, 184 ); 185 $actual = wp_dropdown_languages( $args ); 186 187 $this->assertContains( 'id="foo"', $actual ); 188 $this->assertContains( 'name="bar"', $actual ); 189 $this->assertContains( '<option value="" lang="en" data-installed="1">English (United States)</option>', $actual ); 190 $this->assertContains( '<option value="de_DE" lang="de" data-installed="1">Deutsch</option>', $actual ); 191 $this->assertContains( '<option value="it_IT" lang="it">Italiano</option>', $actual ); 192 $this->assertContains( '<option value="ja_JP" lang="ja" selected=\'selected\'>日本語</option>', $actual ); 193 } 194 195 /** 147 196 * We don't want to call the API when testing. 148 197 * 149 198 * @return array … … 160 209 'native_name' => 'Italiano', 161 210 'iso' => array( 'it', 'ita' ), 162 211 ), 212 'ja_JP' => array( 213 'language' => 'ja_JP', 214 'native_name' => '日本語', 215 'iso' => array( 'ja' ), 216 ), 163 217 ); 164 218 } 165 219 -
tests/qunit/fixtures/wp-api-generated.js
2563 2563 "en_US", 2564 2564 "de_DE", 2565 2565 "en_GB", 2566 "es_ES" 2566 "es_ES", 2567 "ja_JP" 2567 2568 ], 2568 2569 "description": "Locale for the user.", 2569 2570 "type": "string" … … 2690 2691 "en_US", 2691 2692 "de_DE", 2692 2693 "en_GB", 2693 "es_ES" 2694 "es_ES", 2695 "ja_JP" 2694 2696 ], 2695 2697 "description": "Locale for the user.", 2696 2698 "type": "string" … … 2827 2829 "en_US", 2828 2830 "de_DE", 2829 2831 "en_GB", 2830 "es_ES" 2832 "es_ES", 2833 "ja_JP" 2831 2834 ], 2832 2835 "description": "Locale for the user.", 2833 2836 "type": "string"