aboutsummaryrefslogtreecommitdiffstats
path: root/include/friendica_smarty.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-05-15 21:21:44 -0700
committerfriendica <info@friendica.com>2013-05-15 21:21:44 -0700
commitb00c900fa2d999657b17caf577acea5ab772dec1 (patch)
tree5a8e325ac072278a6d77cb63055e748f9315c7e5 /include/friendica_smarty.php
parent343fb61badf0e58070314592a24397a8692d1f45 (diff)
downloadvolse-hubzilla-b00c900fa2d999657b17caf577acea5ab772dec1.tar.gz
volse-hubzilla-b00c900fa2d999657b17caf577acea5ab772dec1.tar.bz2
volse-hubzilla-b00c900fa2d999657b17caf577acea5ab772dec1.zip
fix intltext templates - maybe
Diffstat (limited to 'include/friendica_smarty.php')
-rwxr-xr-xinclude/friendica_smarty.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/friendica_smarty.php b/include/friendica_smarty.php
index d242a6a42..e34fac003 100755
--- a/include/friendica_smarty.php
+++ b/include/friendica_smarty.php
@@ -86,4 +86,25 @@ class FriendicaSmartyEngine implements ITemplateEngine {
}
return "";
}
+
+ public function get_intltext_template($file, $root='') {
+ $a = get_app();
+
+ if(file_exists("view/{$a->language}/$s"))
+ $template_file = "view/{$a->language}/$s";
+ elseif(file_exists("view/en/$s"))
+ $template_file = "view/en/$s";
+ else
+ $template_file = theme_include($file,$root);
+ if($template_file) {
+ $template = new FriendicaSmarty();
+ $template->filename = $template_file;
+
+ return $template;
+ }
+ return "";
+ }
+
+
+
}