From 4cfb9628509565f6ad3e49892781db79c4450d3e Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Tue, 25 Oct 2016 22:25:08 +0000 Subject: [PATCH] Tests: Update language files to include a `Language` header. See #26511. git-svn-id: https://develop.svn.wordpress.org/trunk@38930 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/data/languages/admin-en_GB.mo | Bin 1219 -> 1221 bytes tests/phpunit/data/languages/admin-en_GB.po | 5 ++- tests/phpunit/data/languages/admin-es_ES.mo | Bin 1301 -> 1303 bytes tests/phpunit/data/languages/admin-es_ES.po | 5 ++- .../data/languages/admin-network-en_GB.mo | Bin 894 -> 916 bytes .../data/languages/admin-network-en_GB.po | 6 ++- .../data/languages/admin-network-es_ES.mo | Bin 1012 -> 1014 bytes .../data/languages/admin-network-es_ES.po | 5 ++- .../data/languages/continents-cities-es_ES.mo | Bin 504 -> 506 bytes .../data/languages/continents-cities-es_ES.po | 5 ++- tests/phpunit/data/languages/de_DE.mo | Bin 0 -> 556 bytes tests/phpunit/data/languages/de_DE.po | 42 ++++++++++++++++++ tests/phpunit/data/languages/en_GB.mo | Bin 698 -> 700 bytes tests/phpunit/data/languages/en_GB.po | 5 ++- tests/phpunit/data/languages/es_ES.mo | Bin 723 -> 725 bytes tests/phpunit/data/languages/es_ES.po | 5 ++- .../plugins/internationalized-plugin-de_DE.mo | Bin 717 -> 648 bytes .../plugins/internationalized-plugin-de_DE.po | 6 +-- .../themes/internationalized-theme-de_DE.mo | Bin 715 -> 646 bytes .../themes/internationalized-theme-de_DE.po | 6 +-- tests/phpunit/tests/l10n.php | 10 ++--- 21 files changed, 73 insertions(+), 27 deletions(-) create mode 100644 tests/phpunit/data/languages/de_DE.mo create mode 100644 tests/phpunit/data/languages/de_DE.po diff --git a/tests/phpunit/data/languages/admin-en_GB.mo b/tests/phpunit/data/languages/admin-en_GB.mo index 690efdb2c2fab6f6ade01cfcd1bd6cea335f08af..54e7ccf3ba40e089ac6ec3dfbe64d99e2a99f34e 100644 GIT binary patch delta 115 zcmX@id6aX4kM2(f1_mo828Ko;ZNkjJAO)ni0qGhbeGy120ck%L28LiDUAVFG8l!-j zuAzahk*R{Ag_V(|wt>;)B&Nwc0r{yZnI#H_dKP+ylX;j``F#@e(n}N5Q>_$I^Wxo| KHXATcW&{8v*%_(; delta 112 zcmX@gd6;v8kM4H{1_mo828Ko;ZN$vLAO)ni0O=YaeI7_F0cjr=28LiDoxid28l$kO zuAz~xfw_XAft8W5m7$@wfx+Z>rpe;&Ir$|4MXANb`i6Q2x`{aj8Hu`vh6a=WF{y4` HF^LfX;&&P; diff --git a/tests/phpunit/data/languages/admin-en_GB.po b/tests/phpunit/data/languages/admin-en_GB.po index f51e83103e..5cce983ec8 100644 --- a/tests/phpunit/data/languages/admin-en_GB.po +++ b/tests/phpunit/data/languages/admin-en_GB.po @@ -2,13 +2,14 @@ # This file is distributed under the same license as the Administration package. msgid "" msgstr "" -"PO-Revision-Date: 2015-12-07 10:23:11+0000\n" +"PO-Revision-Date: 2016-10-25 18:29+0200\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/1.0-alpha-1100\n" +"X-Generator: Poedit 1.8.10\n" "Project-Id-Version: Administration\n" +"Language: en_GB\n" #: wp-admin/about.php:42 wp-admin/credits.php:23 wp-admin/freedoms.php:22 msgid "Thank you for updating! WordPress %s makes your site more connected and responsive." diff --git a/tests/phpunit/data/languages/admin-es_ES.mo b/tests/phpunit/data/languages/admin-es_ES.mo index 01e87d2ed8895aee7e3920095cfeabf6defc3ccb..3b95320539645fbc282f91cde2d06dc2a33eec82 100644 GIT binary patch delta 115 zcmbQrHJxjMkM2(f1_mo828LNc+Ju>bK^;h+2hvl4^mibw3Z#2k7#Na)^yZC~*BAxN zbPWx3jZ75`Ev$?zwGE6WCoxUt3CK@P$t+PY)U(htoXo?l%I}kymtLBfo@%9#S{&~h KyxD;HDI)+-WE#i- delta 120 zcmbQvHI-|EkM4H{1_mo828LNc+K8EfK^;h+1=3T2^j9FQ3Z%PP7#Na)^u~>q*BFIO zbq$Sljf@nG46KaItW37|M3KxS%Qyt~unUZ#%#AEwv2{ChujOEbg9@UlLH1T3oDesAr&?m{X9E2vlh>IfhAP;))Ld Drs5el diff --git a/tests/phpunit/data/languages/admin-network-en_GB.po b/tests/phpunit/data/languages/admin-network-en_GB.po index 3fb0935010..6ee5ac1781 100644 --- a/tests/phpunit/data/languages/admin-network-en_GB.po +++ b/tests/phpunit/data/languages/admin-network-en_GB.po @@ -2,13 +2,15 @@ # This file is distributed under the same license as the Network Admin package. msgid "" msgstr "" -"PO-Revision-Date: 2015-11-26 00:00:19+0000\n" +"PO-Revision-Date: 2016-10-25 18:29+0200\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/1.0-alpha-1100\n" +"X-Generator: Poedit 1.8.10\n" "Project-Id-Version: Network Admin\n" +"POT-Creation-Date: \n" +"Language: en_GB\n" #: wp-admin/network/site-users.php:329 wp-admin/network/user-new.php:106 msgid "A password reset link will be sent to the user via email." diff --git a/tests/phpunit/data/languages/admin-network-es_ES.mo b/tests/phpunit/data/languages/admin-network-es_ES.mo index 0e67cad091cbcc5902a3cd825ee862c69ce19a49..cb5168629f436f13ab1fa7c9599984d11ce4ff08 100644 GIT binary patch delta 115 zcmeyu{*8TtkM0i!28P9q3=CdCdJYoB}1{?HL8k zbPWx3jZ75`Ev$?zwGE6WpJtrQ6Of;pl3Ai)sAr*PIJuNbh2JMJFTFG|J=IDfwK(22 Kc=HUV7)AiHx*NFw delta 113 zcmeyy{)K&lkM1`H28P9q3=CdCdKMD{!vY}v6i7=0={9Bt20b9X2uLdd>5CgH?HPql zbqx)5jm#7b46K02&{EsLVDbsZ$>Q!g`6U5Gsl~cBpPG_cqF|_Jp=UUG38NOjPhwtrX<~Y+l|pK9yle2}vy9pRc0(K0 delta 110 zcmeyx{DXOdkM17^28K&O%m&2g85tPZf%G*feGf=;0{PFN{0|c=^Mp-x4UKe-EENn5 xtPISoj4ZVc3?_b`Ebg9@UlLH1T3oDesAr&?m{X9EsB36wFnJoI*5nI}S^zri8u0)C diff --git a/tests/phpunit/data/languages/continents-cities-es_ES.po b/tests/phpunit/data/languages/continents-cities-es_ES.po index 5c7ce1c6c5..2b63d0cddb 100644 --- a/tests/phpunit/data/languages/continents-cities-es_ES.po +++ b/tests/phpunit/data/languages/continents-cities-es_ES.po @@ -2,13 +2,14 @@ # This file is distributed under the same license as the Continents & Cities package. msgid "" msgstr "" -"PO-Revision-Date: 2015-12-29 10:06:29+0000\n" +"PO-Revision-Date: 2016-10-26 00:01+0200\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/1.0-alpha-1100\n" +"X-Generator: Poedit 1.8.10\n" "Project-Id-Version: Continents & Cities\n" +"Language: es_ES\n" #: wp-admin/includes/continents-cities.php:140 msgid "Vincennes" diff --git a/tests/phpunit/data/languages/de_DE.mo b/tests/phpunit/data/languages/de_DE.mo new file mode 100644 index 0000000000000000000000000000000000000000..f2c48b4b40033eb9a613cbdac26d42f89cc3d23c GIT binary patch literal 556 zcmZ9I(P|Vi6o#W+6-KKY}s0f;IW~gSC= z4*CQ>gzw<3w?2Y@bg|$M-~2g~ljNN9V|(yfK$pQya0sq~Pax?FxCXw0>);!>0lshi zCwv=hT@d0Id5>z`6?x<{OJMl;E~ zQ9A!#ta#lvt#->sGY32GnS|@ta|+F=4{Obhp@m)Rw&}ce{NEn0d>^$lv5C|PrZbkt z23oN7ZqRZNvlr?my|WRqn&8=5Rz| n$@O}P3Jo=rX(pZ%f8;b={g!*(qH_x5gdsJViiaW>X)3<~3CM~W literal 0 HcmV?d00001 diff --git a/tests/phpunit/data/languages/de_DE.po b/tests/phpunit/data/languages/de_DE.po new file mode 100644 index 0000000000..cd556ed401 --- /dev/null +++ b/tests/phpunit/data/languages/de_DE.po @@ -0,0 +1,42 @@ +# Translation of 4.6.x in German +# This file is distributed under the same license as the 4.6.x package. +msgid "" +msgstr "" +"PO-Revision-Date: 2016-10-25 18:27+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Poedit 1.8.10\n" +"Project-Id-Version: 4.6.x\n" +"Language: de_DE\n" + +#. translators: Translate this to the correct language tag for your locale, see +#. https://www.w3.org/International/articles/language-tags/ for reference. Do +#. not translate into your own language. +#: wp-includes/general-template.php:716 +msgid "html_lang_attribute" +msgstr "de-DE" + +#. translators: 'rtl' or 'ltr'. This sets the text direction for WordPress. +#: wp-includes/class-wp-locale.php:223 +msgctxt "text direction" +msgid "ltr" +msgstr "ltr" + +#. translators: $dec_point argument for https://secure.php.net/number_format, +#. default is . +#: wp-includes/class-wp-locale.php:215 +msgid "number_format_decimal_point" +msgstr "," + +#. translators: $thousands_sep argument for +#. https://secure.php.net/number_format, default is , +#: wp-includes/class-wp-locale.php:202 +msgid "number_format_thousands_sep" +msgstr "." + +#. translators: %s: Plugin name and version +#: wp-includes/script-loader.php:620 +msgid "Update %s now" +msgstr "Jetzt %s aktualisieren" diff --git a/tests/phpunit/data/languages/en_GB.mo b/tests/phpunit/data/languages/en_GB.mo index b569b3b2c502c8fd5c1f534bfe3daa2051667d9a..24a142cfa56053f1e5fe3629ac8796740b09e884 100644 GIT binary patch delta 111 zcmdnRx`%awkM2JP1_l>K1_m1-?aai$AOxfvfV3Epo(!aUf%GaM%?zY>OssswXK0{n zWTs$XU}a#aZD2GxhjB7bKz?dUW{HBKo`s&_WHBZ!exJm=^wPxiR4awlym)t~$@Wau E0Da6D9{>OV delta 109 zcmdnPx{Gy!kM17^1_l>K1_m1-?a0KyAOxiAfV3Epo(QCQf%FO>%?zZsO{{z*Xke&o zXrf?bXk}<(Wn`&sU@$q8ak993PJT&1QEG9qzM-ChZemVBMxw5vp}}MhCauX%OjQ6< Clov?= diff --git a/tests/phpunit/data/languages/en_GB.po b/tests/phpunit/data/languages/en_GB.po index aeb7f01a0d..a381d3c7d2 100644 --- a/tests/phpunit/data/languages/en_GB.po +++ b/tests/phpunit/data/languages/en_GB.po @@ -2,13 +2,14 @@ # This file is distributed under the same license as the Development (4.4.x) package. msgid "" msgstr "" -"PO-Revision-Date: 2016-01-14 21:14:29+0000\n" +"PO-Revision-Date: 2016-10-26 00:01+0200\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/1.0-alpha-1100\n" +"X-Generator: Poedit 1.8.10\n" "Project-Id-Version: Development (4.4.x)\n" +"Language: en_GB\n" #. translators: 'rtl' or 'ltr'. This sets the text direction for WordPress. #: wp-includes/locale.php:201 diff --git a/tests/phpunit/data/languages/es_ES.mo b/tests/phpunit/data/languages/es_ES.mo index 921c9a7dc017aeb3fc7e244b63fa78a98facb58d..068d37a710e0380e1c569a5d58075c13c19578ce 100644 GIT binary patch delta 111 zcmcc2dX;s8kM2JP1_l>K1_mD>?aai$AP%G_0BLC;y#h${0O=z@ni)u6oLKpY&(J{E z$W+15!pg`(+rVgY4&!8=fc(^y%n}7dJqta<$zn`e{62|!>7|M3sa6W9#qqAelkJ(N F006ir82|tP delta 109 zcmcc0dYN^CkM17^1_l>K1_mD>?a0KyAP%JafV4D_UIwIjfb=0C%?zZ^Ppo_-Xke&o zV6I?jVP$M;Wn!vrU@$q8ak993PJT&1QEG9qzM-ChZemVBMxw5vp}}MhCauX%Op^hL C%oq*; diff --git a/tests/phpunit/data/languages/es_ES.po b/tests/phpunit/data/languages/es_ES.po index 005ae62c3b..0736e9ba8a 100644 --- a/tests/phpunit/data/languages/es_ES.po +++ b/tests/phpunit/data/languages/es_ES.po @@ -2,13 +2,14 @@ # This file is distributed under the same license as the Development (4.4.x) package. msgid "" msgstr "" -"PO-Revision-Date: 2016-01-07 18:35:45+0000\n" +"PO-Revision-Date: 2016-10-25 18:28+0200\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: GlotPress/1.0-alpha-1100\n" +"X-Generator: Poedit 1.8.10\n" "Project-Id-Version: Development (4.4.x)\n" +"Language: es_ES\n" #. translators: 'rtl' or 'ltr'. This sets the text direction for WordPress. #: wp-includes/locale.php:201 diff --git a/tests/phpunit/data/languages/plugins/internationalized-plugin-de_DE.mo b/tests/phpunit/data/languages/plugins/internationalized-plugin-de_DE.mo index e789268e619b399bcf90995cdad1f166e1f8acb9..96bf7ad89073f1322a9cd8b834e3325300c6b68f 100644 GIT binary patch delta 52 zcmX@h+QB+OhnJ0sfgyu|fk6U@^Cw!i2pAgZ8ks2=7+4t?X&V?B7)%ysY-Tbv*gT!l Gj1d3~dJ2pH delta 120 zcmeBRJlhu52lfgyu|fk6U@w@kEb2{SO!HL_4Jw6HQY&^9nKFyQh@EH2RvDN4*M z&PgoEFS1eyNGwiH%u#U4EK1JENi9;aDF6#N6r~oHW)`KU=p|>^0d?i2mnNpC>V~8y S=2|ICJlo7@vN?#+j1d6Vp(KL< diff --git a/tests/phpunit/data/languages/plugins/internationalized-plugin-de_DE.po b/tests/phpunit/data/languages/plugins/internationalized-plugin-de_DE.po index b1fff26113..bfb7d8ca39 100644 --- a/tests/phpunit/data/languages/plugins/internationalized-plugin-de_DE.po +++ b/tests/phpunit/data/languages/plugins/internationalized-plugin-de_DE.po @@ -2,14 +2,12 @@ msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: 2015-12-31 16:31+0100\n" -"PO-Revision-Date: 2016-04-28 18:50+0200\n" -"Last-Translator: Pascal Birchler \n" -"Language-Team: \n" +"PO-Revision-Date: 2016-10-26 00:02+0200\n" "Language: de_DE\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.4\n" +"X-Generator: Poedit 1.8.10\n" "X-Poedit-Basepath: .\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;" diff --git a/tests/phpunit/data/languages/themes/internationalized-theme-de_DE.mo b/tests/phpunit/data/languages/themes/internationalized-theme-de_DE.mo index cfd2b5a27ea6d4177c8723deac7f63f519d415b9..5a95f01babf30f19e531c2ffe014891f1ccc6b20 100644 GIT binary patch delta 52 zcmX@j+QvFThnJ0sfgzoNfk7OI^Cnt03m6*c8ks2=7+4t?X&V?B7)%yoY-Tbv*gTEV Glo0?65DI|+ delta 120 zcmZo;J^0d?i2mnNpC>V~8y S=2|ICJk!i*vN@2^lo0^a86\n" -"Language-Team: \n" +"PO-Revision-Date: 2016-10-26 00:02+0200\n" "Language: de_DE\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.4\n" +"X-Generator: Poedit 1.8.10\n" "X-Poedit-Basepath: .\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;" diff --git a/tests/phpunit/tests/l10n.php b/tests/phpunit/tests/l10n.php index f1048aae30..154c78eab6 100644 --- a/tests/phpunit/tests/l10n.php +++ b/tests/phpunit/tests/l10n.php @@ -85,7 +85,7 @@ class Tests_L10n extends WP_UnitTestCase { $this->assertEmpty( $array ); $array = get_available_languages( DIR_TESTDATA . '/languages/' ); - $this->assertEquals( array( 'en_GB', 'es_ES' ), $array ); + $this->assertEquals( array( 'de_DE', 'en_GB', 'es_ES' ), $array ); } /** @@ -99,15 +99,15 @@ class Tests_L10n extends WP_UnitTestCase { $this->assertNotEmpty( $installed_translations['default']['en_GB'] ); $data_en_GB = $installed_translations['default']['en_GB']; - $this->assertEquals( '2016-01-14 21:14:29+0000', $data_en_GB['PO-Revision-Date'] ); + $this->assertEquals( '2016-10-26 00:01+0200', $data_en_GB['PO-Revision-Date'] ); $this->assertEquals( 'Development (4.4.x)', $data_en_GB['Project-Id-Version'] ); - $this->assertEquals( 'GlotPress/1.0-alpha-1100', $data_en_GB['X-Generator'] ); + $this->assertEquals( 'Poedit 1.8.10', $data_en_GB['X-Generator'] ); $this->assertNotEmpty( $installed_translations['admin']['es_ES'] ); $data_es_ES = $installed_translations['admin']['es_ES']; - $this->assertEquals( '2015-12-22 20:26:46+0000', $data_es_ES['PO-Revision-Date'] ); + $this->assertEquals( '2016-10-25 18:29+0200', $data_es_ES['PO-Revision-Date'] ); $this->assertEquals( 'Administration', $data_es_ES['Project-Id-Version'] ); - $this->assertEquals( 'GlotPress/1.0-alpha-1100', $data_es_ES['X-Generator'] ); + $this->assertEquals( 'Poedit 1.8.10', $data_es_ES['X-Generator'] ); } /**