From 0e055cd6319374f9b7df5cc4b762aded7c5b52d2 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 15 Aug 2008 16:10:35 +0000 Subject: T() now accepts values like ET() but uses Q() to quote them --- tests/autoprepend.t | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 tests/autoprepend.t (limited to 'tests') diff --git a/tests/autoprepend.t b/tests/autoprepend.t new file mode 100755 index 0000000..e91996f --- /dev/null +++ b/tests/autoprepend.t @@ -0,0 +1,40 @@ +#!/www/server/bin/php -qC +statictext = array( + '_' => array("de" => "Deutsch", "en" => "English"), + 'foo' => array("de" => "bar {v1}", "en" => "qux {v1}"), +); + +is( + T('foo'), + "bar {v1}", + "simple T()", +); + +is( + T('foo', 'en'), + "qux {v1}", + "simple T() with language", +); + +is( + T('foo', 'v1' => "gna "gna "gna