oops: tr.php - dummies for linguist in PHP
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Mon, 17 Nov 2008 21:45:22 +0000 (21:45 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Mon, 17 Nov 2008 21:45:22 +0000 (21:45 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@193 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

www/inc/tr.php [new file with mode: 0644]

diff --git a/www/inc/tr.php b/www/inc/tr.php
new file mode 100644 (file)
index 0000000..cc67ef0
--- /dev/null
@@ -0,0 +1,21 @@
+<?
+//
+// PHP Implementation: tr
+//
+// Description: dummy implementation for Qt's tr and transalate to make the PHP code
+//  compatible with linguist
+//
+// Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2008
+//
+// Copyright: See README/COPYING files that come with this distribution
+//
+//
+
+/** tr() assumes the context is set with a C++ class statement (won't find any here)
+or with a special comment, please include / * TRANSLATOR php:: * / in all files using it */
+function tr($str,$comment=""){return $str;}
+
+/** translate() also takes a context*/
+function translate($context,$str,$comment=""){return $str;}
+
+?>
\ No newline at end of file