One more test.
authorJan Schneider <jan@horde.org>
Tue, 12 Oct 2010 22:52:15 +0000 (00:52 +0200)
committerJan Schneider <jan@horde.org>
Wed, 13 Oct 2010 00:34:41 +0000 (02:34 +0200)
framework/Translation/test/Horde/Translation/GettextTest.php
framework/Translation/test/Horde/Translation/locale/de/LC_MESSAGES/Horde_Other.mo [new file with mode: 0644]
framework/Translation/test/Horde/Translation/locale/de/LC_MESSAGES/Horde_Other.po [new file with mode: 0644]

index 7d8cd4d..a63bbdd 100644 (file)
@@ -10,6 +10,7 @@
 class Horde_Translation_GettextTest extends PHPUnit_Framework_TestCase
 {
     private $_dict;
+    private $_otherDict;
 
     public function setUp()
     {
@@ -17,6 +18,7 @@ class Horde_Translation_GettextTest extends PHPUnit_Framework_TestCase
         putenv('LANG=de_DE.UTF-8');
         putenv('LANGUAGE=de_DE.UTF-8');
         $this->_dict = new Horde_Translation_Gettext('Horde_Translation', dirname(__FILE__) . '/locale');
+        $this->_otherDict = new Horde_Translation_Gettext('Horde_Other', dirname(__FILE__) . '/locale');
     }
 
     public function testGettext()
@@ -24,6 +26,7 @@ class Horde_Translation_GettextTest extends PHPUnit_Framework_TestCase
         $this->assertEquals('Heute', $this->_dict->t('Today'));
         $this->assertEquals('Schön', $this->_dict->t('Beautiful'));
         $this->assertEquals('2 Tage', sprintf($this->_dict->t('%d days'), 2));
+        $this->assertEquals('Morgen', $this->_otherDict->t('Tomorrow'));
     }
 
     public function testNgettext()
diff --git a/framework/Translation/test/Horde/Translation/locale/de/LC_MESSAGES/Horde_Other.mo b/framework/Translation/test/Horde/Translation/locale/de/LC_MESSAGES/Horde_Other.mo
new file mode 100644 (file)
index 0000000..6a131d0
Binary files /dev/null and b/framework/Translation/test/Horde/Translation/locale/de/LC_MESSAGES/Horde_Other.mo differ
diff --git a/framework/Translation/test/Horde/Translation/locale/de/LC_MESSAGES/Horde_Other.po b/framework/Translation/test/Horde/Translation/locale/de/LC_MESSAGES/Horde_Other.po
new file mode 100644 (file)
index 0000000..ba6adfd
--- /dev/null
@@ -0,0 +1,18 @@
+# German test translation for Horde_Translation.
+# Copyright 2010 The Horde Project (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-10-13 00:48+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 "Tomorrow"
+msgstr "Morgen"