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
This commit is contained in:
Dominik Schilling (ocean90) 2016-10-25 22:25:08 +00:00
parent 895203b3e4
commit 4cfb962850
21 changed files with 73 additions and 27 deletions

View File

@ -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."

View File

@ -2,13 +2,14 @@
# This file is distributed under the same license as the Administration package.
msgid ""
msgstr ""
"PO-Revision-Date: 2015-12-22 20:26:46+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: es_ES\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."

View File

@ -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."

View File

@ -2,13 +2,14 @@
# 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"
"Language: es_ES\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."

View File

@ -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"

Binary file not shown.

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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 <pascal@required.ch>\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;"

View File

@ -2,14 +2,12 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2015-12-31 16:38+0100\n"
"PO-Revision-Date: 2016-04-28 18:50+0200\n"
"Last-Translator: Pascal Birchler <pascal@required.ch>\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;"

View File

@ -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'] );
}
/**