summaryrefslogtreecommitdiff
path: root/smartyplugins/block.tr.php
diff options
context:
space:
mode:
Diffstat (limited to 'smartyplugins/block.tr.php')
-rw-r--r--smartyplugins/block.tr.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/smartyplugins/block.tr.php b/smartyplugins/block.tr.php
new file mode 100644
index 0000000..92e713d
--- /dev/null
+++ b/smartyplugins/block.tr.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ * Smarty plugin
+ * @package Smarty
+ * @subpackage plugins
+ */
+
+/**
+ * Smarty plugin
+ * -------------------------------------------------------------
+ * File: block.translate.php
+ * Type: block
+ * Name: translate
+ * Purpose: translate a block of text
+ * -------------------------------------------------------------
+ */
+//global $lang;
+//include_once('lang/language.php');
+function smarty_block_tr( $pParams, $pContent, &$gBitSmarty ) {
+ echo( tra( $pContent ) );
+}
+?>