Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Actually test the different autodetect methods.
- Loading branch information
Showing
11 changed files
with
272 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...ion/test/Horde/Translation/fixtures/composer/Horde/Translation/TestAutodetectComposer.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
/** | ||
* @author Jan Schneider <jan@horde.org> | ||
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 | ||
* @category Horde | ||
* @package Translation | ||
* @subpackage UnitTests | ||
*/ | ||
class Horde_Translation_TestAutodetectComposer extends Horde_Translation_Autodetect | ||
{ | ||
protected static $_domain = 'Horde_Translation'; | ||
protected static $_pearDirectory = '/non/existant/directory'; | ||
} |
Binary file added
BIN
+605 Bytes
.../test/Horde/Translation/fixtures/composer/data/locale/de/LC_MESSAGES/Horde_Translation.mo
Binary file not shown.
31 changes: 31 additions & 0 deletions
31
.../test/Horde/Translation/fixtures/composer/data/locale/de/LC_MESSAGES/Horde_Translation.po
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# German test translation for Horde_Translation. | ||
# Copyright 2010-2014 Horde LLC (http://www.horde.org/) | ||
# Jan Schneider <jan@horde.org>, 2010. | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Horde_Translation\n" | ||
"Report-Msgid-Bugs-To: dev@lists.horde.org\n" | ||
"POT-Creation-Date: 2010-08-17 18:32+0200\n" | ||
"PO-Revision-Date: 2010-08-25 13:24+0200\n" | ||
"Last-Translator: Jan Schneider <jan@horde.org>\n" | ||
"Language-Team: German <dev@lists.horde.org>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8-bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
msgid "Today" | ||
msgstr "Heute" | ||
|
||
msgid "Beautiful" | ||
msgstr "Schön" | ||
|
||
#, php-format | ||
msgid "%d days" | ||
msgstr "%d Tage" | ||
|
||
#, php-format | ||
msgid "%d week" | ||
msgid_plural "%d weeks" | ||
msgstr[0] "%d Woche" | ||
msgstr[1] "%d Wochen" |
Binary file added
BIN
+605 Bytes
...anslation/fixtures/pear/data/Horde_Translation/locale/de/LC_MESSAGES/Horde_Translation.mo
Binary file not shown.
31 changes: 31 additions & 0 deletions
31
...anslation/fixtures/pear/data/Horde_Translation/locale/de/LC_MESSAGES/Horde_Translation.po
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# German test translation for Horde_Translation. | ||
# Copyright 2010-2014 Horde LLC (http://www.horde.org/) | ||
# Jan Schneider <jan@horde.org>, 2010. | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Horde_Translation\n" | ||
"Report-Msgid-Bugs-To: dev@lists.horde.org\n" | ||
"POT-Creation-Date: 2010-08-17 18:32+0200\n" | ||
"PO-Revision-Date: 2010-08-25 13:24+0200\n" | ||
"Last-Translator: Jan Schneider <jan@horde.org>\n" | ||
"Language-Team: German <dev@lists.horde.org>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8-bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
msgid "Today" | ||
msgstr "Heute" | ||
|
||
msgid "Beautiful" | ||
msgstr "Schön" | ||
|
||
#, php-format | ||
msgid "%d days" | ||
msgstr "%d Tage" | ||
|
||
#, php-format | ||
msgid "%d week" | ||
msgid_plural "%d weeks" | ||
msgstr[0] "%d Woche" | ||
msgstr[1] "%d Wochen" |
13 changes: 13 additions & 0 deletions
13
...slation/test/Horde/Translation/fixtures/pear/php/Horde/Translation/TestAutodetectPear.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
/** | ||
* @author Jan Schneider <jan@horde.org> | ||
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 | ||
* @category Horde | ||
* @package Translation | ||
* @subpackage UnitTests | ||
*/ | ||
class Horde_Translation_TestAutodetectPear extends Horde_Translation_Autodetect | ||
{ | ||
protected static $_domain = 'Horde_Translation'; | ||
protected static $_pearDirectory = '../../../data'; | ||
} |
13 changes: 13 additions & 0 deletions
13
...ion/test/Horde/Translation/fixtures/source/lib/Horde/Translation/TestAutodetectSource.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
/** | ||
* @author Jan Schneider <jan@horde.org> | ||
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 | ||
* @category Horde | ||
* @package Translation | ||
* @subpackage UnitTests | ||
*/ | ||
class Horde_Translation_TestAutodetectSource extends Horde_Translation_Autodetect | ||
{ | ||
protected static $_domain = 'Horde_Translation'; | ||
protected static $_pearDirectory = '@data_dir@'; | ||
} |
Binary file added
BIN
+605 Bytes
...slation/test/Horde/Translation/fixtures/source/locale/de/LC_MESSAGES/Horde_Translation.mo
Binary file not shown.
31 changes: 31 additions & 0 deletions
31
...slation/test/Horde/Translation/fixtures/source/locale/de/LC_MESSAGES/Horde_Translation.po
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# German test translation for Horde_Translation. | ||
# Copyright 2010-2014 Horde LLC (http://www.horde.org/) | ||
# Jan Schneider <jan@horde.org>, 2010. | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Horde_Translation\n" | ||
"Report-Msgid-Bugs-To: dev@lists.horde.org\n" | ||
"POT-Creation-Date: 2010-08-17 18:32+0200\n" | ||
"PO-Revision-Date: 2010-08-25 13:24+0200\n" | ||
"Last-Translator: Jan Schneider <jan@horde.org>\n" | ||
"Language-Team: German <dev@lists.horde.org>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8-bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
msgid "Today" | ||
msgstr "Heute" | ||
|
||
msgid "Beautiful" | ||
msgstr "Schön" | ||
|
||
#, php-format | ||
msgid "%d days" | ||
msgstr "%d Tage" | ||
|
||
#, php-format | ||
msgid "%d week" | ||
msgid_plural "%d weeks" | ||
msgstr[0] "%d Woche" | ||
msgstr[1] "%d Wochen" |