From 16660934cc48f357b1322bce7869158db2f7cb58 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 6 Jan 2006 05:32:33 +0000 Subject: Adding I18N unit test cases. --- .../UnitTests/framework/I18N/messages/en/tests.mo | Bin 0 -> 403 bytes .../UnitTests/framework/I18N/messages/en/tests.po | 18 ++++++ .../UnitTests/framework/I18N/messages/en/tests.xml | 17 +++++ .../framework/I18N/messages/en_AU/tests.mo | Bin 0 -> 371 bytes .../framework/I18N/messages/en_AU/tests.mo.bak | Bin 0 -> 371 bytes .../framework/I18N/messages/en_AU/tests.po | 15 +++++ .../framework/I18N/messages/en_AU/tests.po.bak | 15 +++++ .../framework/I18N/messages/en_AU/tests.xml | 13 ++++ .../framework/I18N/messages/en_AU/tests.xml.bak | 13 ++++ .../UnitTests/framework/I18N/messages/messages.db | Bin 0 -> 8192 bytes .../framework/I18N/messages/messages.db.bak | Bin 0 -> 8192 bytes .../framework/I18N/messages/messages.en.mo | Bin 0 -> 373 bytes .../framework/I18N/messages/messages.en.po | 15 +++++ .../framework/I18N/messages/messages.en.xml | 19 ++++++ .../framework/I18N/messages/messages.en_AU.mo | Bin 0 -> 414 bytes .../framework/I18N/messages/messages.en_AU.mo.bak | Bin 0 -> 414 bytes .../framework/I18N/messages/messages.en_AU.po | 18 ++++++ .../framework/I18N/messages/messages.en_AU.po.bak | 18 ++++++ .../framework/I18N/messages/messages.en_AU.xml | 17 +++++ .../framework/I18N/messages/messages.en_AU.xml.bak | 17 +++++ .../UnitTests/framework/I18N/messages/messages.mo | Bin 0 -> 409 bytes .../UnitTests/framework/I18N/messages/messages.po | 18 ++++++ .../UnitTests/framework/I18N/messages/messages.xml | 23 +++++++ .../framework/I18N/messages/messages_mysql.sql | 69 +++++++++++++++++++++ .../framework/I18N/messages/tests.en_AU.po | 7 +++ tests/UnitTests/framework/I18N/messages/tests.mo | Bin 0 -> 404 bytes tests/UnitTests/framework/I18N/messages/tests.po | 18 ++++++ tests/UnitTests/framework/I18N/messages/tests.xml | 17 +++++ 28 files changed, 347 insertions(+) create mode 100644 tests/UnitTests/framework/I18N/messages/en/tests.mo create mode 100644 tests/UnitTests/framework/I18N/messages/en/tests.po create mode 100644 tests/UnitTests/framework/I18N/messages/en/tests.xml create mode 100644 tests/UnitTests/framework/I18N/messages/en_AU/tests.mo create mode 100644 tests/UnitTests/framework/I18N/messages/en_AU/tests.mo.bak create mode 100644 tests/UnitTests/framework/I18N/messages/en_AU/tests.po create mode 100644 tests/UnitTests/framework/I18N/messages/en_AU/tests.po.bak create mode 100644 tests/UnitTests/framework/I18N/messages/en_AU/tests.xml create mode 100644 tests/UnitTests/framework/I18N/messages/en_AU/tests.xml.bak create mode 100644 tests/UnitTests/framework/I18N/messages/messages.db create mode 100644 tests/UnitTests/framework/I18N/messages/messages.db.bak create mode 100644 tests/UnitTests/framework/I18N/messages/messages.en.mo create mode 100644 tests/UnitTests/framework/I18N/messages/messages.en.po create mode 100644 tests/UnitTests/framework/I18N/messages/messages.en.xml create mode 100644 tests/UnitTests/framework/I18N/messages/messages.en_AU.mo create mode 100644 tests/UnitTests/framework/I18N/messages/messages.en_AU.mo.bak create mode 100644 tests/UnitTests/framework/I18N/messages/messages.en_AU.po create mode 100644 tests/UnitTests/framework/I18N/messages/messages.en_AU.po.bak create mode 100644 tests/UnitTests/framework/I18N/messages/messages.en_AU.xml create mode 100644 tests/UnitTests/framework/I18N/messages/messages.en_AU.xml.bak create mode 100644 tests/UnitTests/framework/I18N/messages/messages.mo create mode 100644 tests/UnitTests/framework/I18N/messages/messages.po create mode 100644 tests/UnitTests/framework/I18N/messages/messages.xml create mode 100644 tests/UnitTests/framework/I18N/messages/messages_mysql.sql create mode 100644 tests/UnitTests/framework/I18N/messages/tests.en_AU.po create mode 100644 tests/UnitTests/framework/I18N/messages/tests.mo create mode 100644 tests/UnitTests/framework/I18N/messages/tests.po create mode 100644 tests/UnitTests/framework/I18N/messages/tests.xml (limited to 'tests/UnitTests/framework/I18N/messages') diff --git a/tests/UnitTests/framework/I18N/messages/en/tests.mo b/tests/UnitTests/framework/I18N/messages/en/tests.mo new file mode 100644 index 00000000..ee243202 Binary files /dev/null and b/tests/UnitTests/framework/I18N/messages/en/tests.mo differ diff --git a/tests/UnitTests/framework/I18N/messages/en/tests.po b/tests/UnitTests/framework/I18N/messages/en/tests.po new file mode 100644 index 00000000..07860851 --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/en/tests.po @@ -0,0 +1,18 @@ +msgid "" +msgstr "" +"Project-Id-Version: I18N Tests\n" +"POT-Creation-Date: \n" +"PO-Revision-Date: 2005-01-09 14:11+1000\n" +"Last-Translator: \n" +"Language-Team: Wei Zhuo\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Basepath: F:\\www\\prado\\framework\\I18N\\tests\n" + +msgid "Hello" +msgstr "hello" + +msgid "Goodbye" +msgstr "Sayonara" + diff --git a/tests/UnitTests/framework/I18N/messages/en/tests.xml b/tests/UnitTests/framework/I18N/messages/en/tests.xml new file mode 100644 index 00000000..dbcd6831 --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/en/tests.xml @@ -0,0 +1,17 @@ + + + + + + + + Hello + hello + + + Goodbye + Sayonara + + + + diff --git a/tests/UnitTests/framework/I18N/messages/en_AU/tests.mo b/tests/UnitTests/framework/I18N/messages/en_AU/tests.mo new file mode 100644 index 00000000..a9a26db2 Binary files /dev/null and b/tests/UnitTests/framework/I18N/messages/en_AU/tests.mo differ diff --git a/tests/UnitTests/framework/I18N/messages/en_AU/tests.mo.bak b/tests/UnitTests/framework/I18N/messages/en_AU/tests.mo.bak new file mode 100644 index 00000000..a9a26db2 Binary files /dev/null and b/tests/UnitTests/framework/I18N/messages/en_AU/tests.mo.bak differ diff --git a/tests/UnitTests/framework/I18N/messages/en_AU/tests.po b/tests/UnitTests/framework/I18N/messages/en_AU/tests.po new file mode 100644 index 00000000..9f81f650 --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/en_AU/tests.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: I18N Tests\n" +"POT-Creation-Date: \n" +"PO-Revision-Date: 2004-12-25 12:25+1000\n" +"Last-Translator: \n" +"Language-Team: Wei Zhuo\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Basepath: F:\\www\\prado\\framework\\I18N\\tests\n" + +msgid "Hello" +msgstr "Howdy!" + diff --git a/tests/UnitTests/framework/I18N/messages/en_AU/tests.po.bak b/tests/UnitTests/framework/I18N/messages/en_AU/tests.po.bak new file mode 100644 index 00000000..9f81f650 --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/en_AU/tests.po.bak @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: I18N Tests\n" +"POT-Creation-Date: \n" +"PO-Revision-Date: 2004-12-25 12:25+1000\n" +"Last-Translator: \n" +"Language-Team: Wei Zhuo\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Basepath: F:\\www\\prado\\framework\\I18N\\tests\n" + +msgid "Hello" +msgstr "Howdy!" + diff --git a/tests/UnitTests/framework/I18N/messages/en_AU/tests.xml b/tests/UnitTests/framework/I18N/messages/en_AU/tests.xml new file mode 100644 index 00000000..7ed84220 --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/en_AU/tests.xml @@ -0,0 +1,13 @@ + + + + + + + + Hello + Howdy! + + + + diff --git a/tests/UnitTests/framework/I18N/messages/en_AU/tests.xml.bak b/tests/UnitTests/framework/I18N/messages/en_AU/tests.xml.bak new file mode 100644 index 00000000..7ed84220 --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/en_AU/tests.xml.bak @@ -0,0 +1,13 @@ + + + + + + + + Hello + Howdy! + + + + diff --git a/tests/UnitTests/framework/I18N/messages/messages.db b/tests/UnitTests/framework/I18N/messages/messages.db new file mode 100644 index 00000000..73b518c5 Binary files /dev/null and b/tests/UnitTests/framework/I18N/messages/messages.db differ diff --git a/tests/UnitTests/framework/I18N/messages/messages.db.bak b/tests/UnitTests/framework/I18N/messages/messages.db.bak new file mode 100644 index 00000000..73b518c5 Binary files /dev/null and b/tests/UnitTests/framework/I18N/messages/messages.db.bak differ diff --git a/tests/UnitTests/framework/I18N/messages/messages.en.mo b/tests/UnitTests/framework/I18N/messages/messages.en.mo new file mode 100644 index 00000000..db8838e3 Binary files /dev/null and b/tests/UnitTests/framework/I18N/messages/messages.en.mo differ diff --git a/tests/UnitTests/framework/I18N/messages/messages.en.po b/tests/UnitTests/framework/I18N/messages/messages.en.po new file mode 100644 index 00000000..9299045c --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/messages.en.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: I18N Tests\n" +"POT-Creation-Date: \n" +"PO-Revision-Date: 2004-12-25 12:26+1000\n" +"Last-Translator: \n" +"Language-Team: Wei Zhuo\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Basepath: F:\\www\\prado\\framework\\I18N\\tests\n" + +msgid "Hello" +msgstr "Hello :)" + diff --git a/tests/UnitTests/framework/I18N/messages/messages.en.xml b/tests/UnitTests/framework/I18N/messages/messages.en.xml new file mode 100644 index 00000000..c3eb465b --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/messages.en.xml @@ -0,0 +1,19 @@ + + + + + + + + Hello + Hello :) + + + + \ No newline at end of file diff --git a/tests/UnitTests/framework/I18N/messages/messages.en_AU.mo b/tests/UnitTests/framework/I18N/messages/messages.en_AU.mo new file mode 100644 index 00000000..f4822800 Binary files /dev/null and b/tests/UnitTests/framework/I18N/messages/messages.en_AU.mo differ diff --git a/tests/UnitTests/framework/I18N/messages/messages.en_AU.mo.bak b/tests/UnitTests/framework/I18N/messages/messages.en_AU.mo.bak new file mode 100644 index 00000000..f4822800 Binary files /dev/null and b/tests/UnitTests/framework/I18N/messages/messages.en_AU.mo.bak differ diff --git a/tests/UnitTests/framework/I18N/messages/messages.en_AU.po b/tests/UnitTests/framework/I18N/messages/messages.en_AU.po new file mode 100644 index 00000000..d795be2b --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/messages.en_AU.po @@ -0,0 +1,18 @@ +msgid "" +msgstr "" +"Project-Id-Version: I18N Tests\n" +"POT-Creation-Date: \n" +"PO-Revision-Date: 2005-01-09 14:02:25\n" +"Last-Translator: \n" +"Language-Team: Wei Zhuo\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Basepath: F:\\www\\prado\\framework\\I18N\\ ests\n" + +msgid "Hello" +msgstr "G'day Mate!" + +msgid "Welcome" +msgstr "Welcome Mate!" + diff --git a/tests/UnitTests/framework/I18N/messages/messages.en_AU.po.bak b/tests/UnitTests/framework/I18N/messages/messages.en_AU.po.bak new file mode 100644 index 00000000..d795be2b --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/messages.en_AU.po.bak @@ -0,0 +1,18 @@ +msgid "" +msgstr "" +"Project-Id-Version: I18N Tests\n" +"POT-Creation-Date: \n" +"PO-Revision-Date: 2005-01-09 14:02:25\n" +"Last-Translator: \n" +"Language-Team: Wei Zhuo\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Basepath: F:\\www\\prado\\framework\\I18N\\ ests\n" + +msgid "Hello" +msgstr "G'day Mate!" + +msgid "Welcome" +msgstr "Welcome Mate!" + diff --git a/tests/UnitTests/framework/I18N/messages/messages.en_AU.xml b/tests/UnitTests/framework/I18N/messages/messages.en_AU.xml new file mode 100644 index 00000000..cb4c4255 --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/messages.en_AU.xml @@ -0,0 +1,17 @@ + + + + + + + + Hello + G'day Mate! + + + Welcome + Welcome Mate! + + + + diff --git a/tests/UnitTests/framework/I18N/messages/messages.en_AU.xml.bak b/tests/UnitTests/framework/I18N/messages/messages.en_AU.xml.bak new file mode 100644 index 00000000..cb4c4255 --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/messages.en_AU.xml.bak @@ -0,0 +1,17 @@ + + + + + + + + Hello + G'day Mate! + + + Welcome + Welcome Mate! + + + + diff --git a/tests/UnitTests/framework/I18N/messages/messages.mo b/tests/UnitTests/framework/I18N/messages/messages.mo new file mode 100644 index 00000000..12cf1ff8 Binary files /dev/null and b/tests/UnitTests/framework/I18N/messages/messages.mo differ diff --git a/tests/UnitTests/framework/I18N/messages/messages.po b/tests/UnitTests/framework/I18N/messages/messages.po new file mode 100644 index 00000000..ade60e01 --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/messages.po @@ -0,0 +1,18 @@ +msgid "" +msgstr "" +"Project-Id-Version: I18N Tests\n" +"POT-Creation-Date: \n" +"PO-Revision-Date: 2004-12-25 12:25+1000\n" +"Last-Translator: \n" +"Language-Team: Wei Zhuo\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Basepath: F:\\www\\prado\\framework\\I18N\\tests\n" + +msgid "Hello" +msgstr "Hello World" + +msgid "Welcome" +msgstr "Welcome!" + diff --git a/tests/UnitTests/framework/I18N/messages/messages.xml b/tests/UnitTests/framework/I18N/messages/messages.xml new file mode 100644 index 00000000..5fe588b6 --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/messages.xml @@ -0,0 +1,23 @@ + + + + + + + + Hello + Hello World + + + Welcome + Welcome! + + + + \ No newline at end of file diff --git a/tests/UnitTests/framework/I18N/messages/messages_mysql.sql b/tests/UnitTests/framework/I18N/messages/messages_mysql.sql new file mode 100644 index 00000000..811010c4 --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/messages_mysql.sql @@ -0,0 +1,69 @@ +# phpMyAdmin SQL Dump +# version 2.5.5-rc2 +# http://www.phpmyadmin.net +# +# Host: localhost +# Generation Time: Jan 09, 2005 at 09:24 PM +# Server version: 4.0.17 +# PHP Version: 5.0.2 +# +# Database : `messages` +# + +# -------------------------------------------------------- + +# +# Table structure for table `catalogue` +# + +DROP TABLE IF EXISTS catalogue; +CREATE TABLE catalogue ( + cat_id int(11) NOT NULL auto_increment, + name varchar(100) NOT NULL default '', + source_lang varchar(100) NOT NULL default '', + target_lang varchar(100) NOT NULL default '', + date_created int(11) NOT NULL default '0', + date_modified int(11) NOT NULL default '0', + author varchar(255) NOT NULL default '', + PRIMARY KEY (cat_id) +) TYPE=MyISAM AUTO_INCREMENT=7 ; + + +INSERT INTO catalogue VALUES ('1', 'messages', '', '', '', '1103936017', ''); +INSERT INTO catalogue VALUES ('2', 'messages.en', '', '', '', '1103936017', ''); +INSERT INTO catalogue VALUES ('3', 'messages.en_AU', '', '', '', '1105250301', ''); +INSERT INTO catalogue VALUES ('4', 'tests', '', '', '', '1103936017', ''); +INSERT INTO catalogue VALUES ('5', 'tests.en', '', '', '', '1103936017', ''); +INSERT INTO catalogue VALUES ('6', 'tests.en_AU', '', '', '', '1103936017', ''); + +# -------------------------------------------------------- + +# +# Table structure for table `trans_unit` +# + +DROP TABLE IF EXISTS trans_unit; +CREATE TABLE trans_unit ( + msg_id int(11) NOT NULL auto_increment, + cat_id int(11) NOT NULL default '1', + id varchar(255) NOT NULL default '', + source text NOT NULL, + target text NOT NULL, + comments text NOT NULL, + date_added int(11) NOT NULL default '0', + date_modified int(11) NOT NULL default '0', + author varchar(255) NOT NULL default '', + translated tinyint(1) NOT NULL default '0', + PRIMARY KEY (msg_id) +) TYPE=MyISAM AUTO_INCREMENT=19 ; + +INSERT INTO trans_unit VALUES ('1', '1', '1', 'Hello', 'Hello World', '', '', '', '', '1'); +INSERT INTO trans_unit VALUES ('2', '2', '1', 'Hello', 'Hello :)', '', '', '', '', '0'); +INSERT INTO trans_unit VALUES ('3', '1', '1', 'Welcome', 'Welcome!', '', '', '', '', '0'); +INSERT INTO trans_unit VALUES ('4', '3', '1', 'Hello', 'G''day Mate!', '', '', '', '', '0'); +INSERT INTO trans_unit VALUES ('5', '3', '2', 'Welcome', 'Welcome Mate!', '', '', '', '', '0'); +INSERT INTO trans_unit VALUES ('13', '4', '1', 'Goodbye', 'Aloha!', '', '', '', '', '0'); +INSERT INTO trans_unit VALUES ('14', '4', '2', 'Welcome', 'Ho Ho!', '', '', '', '', '0'); +INSERT INTO trans_unit VALUES ('15', '5', '1', 'Hello', 'hello', '', '', '', '', '0'); +INSERT INTO trans_unit VALUES ('16', '5', '2', 'Goodbye', 'Sayonara', '', '', '', '', '0'); +INSERT INTO trans_unit VALUES ('17', '6', '1', 'Hello', 'Howdy!', '', '', '', '', '0'); \ No newline at end of file diff --git a/tests/UnitTests/framework/I18N/messages/tests.en_AU.po b/tests/UnitTests/framework/I18N/messages/tests.en_AU.po new file mode 100644 index 00000000..fda7021d --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/tests.en_AU.po @@ -0,0 +1,7 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2005-01-09 14:17:13\n" + +msgid "Testing123" +msgstr "" + diff --git a/tests/UnitTests/framework/I18N/messages/tests.mo b/tests/UnitTests/framework/I18N/messages/tests.mo new file mode 100644 index 00000000..394b6196 Binary files /dev/null and b/tests/UnitTests/framework/I18N/messages/tests.mo differ diff --git a/tests/UnitTests/framework/I18N/messages/tests.po b/tests/UnitTests/framework/I18N/messages/tests.po new file mode 100644 index 00000000..4f5f3fbc --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/tests.po @@ -0,0 +1,18 @@ +msgid "" +msgstr "" +"Project-Id-Version: I18N Tests\n" +"POT-Creation-Date: \n" +"PO-Revision-Date: 2005-01-09 14:07+1000\n" +"Last-Translator: \n" +"Language-Team: Wei Zhuo\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Basepath: F:\\www\\prado\\framework\\I18N\\tests\n" + +msgid "Goodbye" +msgstr "Aloha!" + +msgid "Welcome" +msgstr "Ho Ho!" + diff --git a/tests/UnitTests/framework/I18N/messages/tests.xml b/tests/UnitTests/framework/I18N/messages/tests.xml new file mode 100644 index 00000000..73f404b1 --- /dev/null +++ b/tests/UnitTests/framework/I18N/messages/tests.xml @@ -0,0 +1,17 @@ + + + + + + + + Goodbye + Aloha! + + + Welcome + Ho Ho! + + + + -- cgit v1.2.3