diff --git a/tests/file_gettext/po.php b/tests/file_gettext/po.php new file mode 100644 index 0000000..51dcc9a --- /dev/null +++ b/tests/file_gettext/po.php @@ -0,0 +1,25 @@ +The Jam Warehouse Software (Pty) Ltd. All Rights Reserved' => '© 2006 The Jam Warehouse Software (Pty) Ltd. Todos los Derechos Reservados - Orion Datacenter. Bussines Partner para Colombia', + 'Document "%s" renamed.' => 'El documento "%s" ha sido renombrado.', + 'Document archived: %s' => 'Documento archivados: %s', + 'Document checked in' => 'Documento liberado', +); + +$sFilename = "test2.po"; + +$foo = File_Gettext::factory('po', $sFilename); +$res = $foo->load(); +var_dump("t"); + +foreach ($aExpected as $sSrc => $sExpected) { + $sGot = $foo->strings[$sSrc]; + if ($sGot != $sExpected) { + print "Expected $sExpected, but got $sGot\n"; + } +} diff --git a/tests/file_gettext/test.mo b/tests/file_gettext/test.mo new file mode 100644 index 0000000..9f7da08 --- /dev/null +++ b/tests/file_gettext/test.mo diff --git a/tests/file_gettext/test.po b/tests/file_gettext/test.po new file mode 100644 index 0000000..e1bc0eb --- /dev/null +++ b/tests/file_gettext/test.po @@ -0,0 +1,26 @@ +msgid "" +msgstr "" +"Project-Id-Version: KTDMS 3.0 - Spanish 0.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2006-03-20 16:07+0200\n" +"PO-Revision-Date: 2006-03-20 21:08-0500\n" +"Last-Translator: Jaime Zárate \n" +"Language-Team: oriondatacenter \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Spanish\n" +"X-Poedit-Country: COLOMBIA\n" +"X-Poedit-SourceCharset: utf-8\n" + +msgid "© 2006 The Jam Warehouse Software (Pty) Ltd. All Rights Reserved" +msgstr "© 2006 The Jam Warehouse Software (Pty) Ltd. Todos los Derechos Reservados - Orion Datacenter. Bussines Partner para Colombia" + +msgid "Document \"%s\" renamed." +msgstr "El documento \"%s\" ha sido renombrado." + +msgid "Document archived: %s" +msgstr "Documento archivados: %s" + +msgid "Document checked in" +msgstr "Documento liberado" diff --git a/tests/file_gettext/test2.po b/tests/file_gettext/test2.po new file mode 100644 index 0000000..e5b3d03 --- /dev/null +++ b/tests/file_gettext/test2.po @@ -0,0 +1,31 @@ +msgid "" +msgstr "" +"Project-Id-Version: KTDMS 3.0 - Spanish 0.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2006-03-20 16:07+0200\n" +"PO-Revision-Date: 2006-03-20 21:08-0500\n" +"Last-Translator: Jaime Zárate \n" +"Language-Team: oriondatacenter \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Spanish\n" +"X-Poedit-Country: COLOMBIA\n" +"X-Poedit-SourceCharset: utf-8\n" + +msgid "" +"© 2006 The Jam Warehouse Software " +"(Pty) Ltd. All Rights Reserved" +msgstr "" +"© 2006 The Jam Warehouse Software " +"(Pty) Ltd. Todos los Derechos Reservados - Orion Datacenter. Bussines Partner para Colombia" + +msgid "Document \"%s\" renamed." +msgstr "El documento \"%s\" ha sido renombrado." + +msgid "Document archived: %s" +msgstr "Documento archivados: %s" + +msgid "Document checked in" +msgstr "Documento liberado"