diff options
author | friendica <info@friendica.com> | 2012-08-13 22:12:16 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-13 22:12:16 -0700 |
commit | 2a49460c7766d5868115689155e3b9595e5f36a2 (patch) | |
tree | 90572db5ee307c915ef99baf2624eb450fdfba9b /include/text.php | |
parent | 6fcb3b44156a89feda9293c289175d0dec79cd80 (diff) | |
download | volse-hubzilla-2a49460c7766d5868115689155e3b9595e5f36a2.tar.gz volse-hubzilla-2a49460c7766d5868115689155e3b9595e5f36a2.tar.bz2 volse-hubzilla-2a49460c7766d5868115689155e3b9595e5f36a2.zip |
improvements in js localisation/translation
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/include/text.php b/include/text.php index bddded7ee..f6c403388 100644 --- a/include/text.php +++ b/include/text.php @@ -387,42 +387,6 @@ function photo_new_resource() { }} -if(! function_exists('get_intltext_template')) { -function get_intltext_template($s) { - global $a; - - if(! isset($a->language)) - $a->language = 'en'; - - if(file_exists("view/{$a->language}/$s")) - return file_get_contents("view/{$a->language}/$s"); - elseif(file_exists("view/en/$s")) - return file_get_contents("view/en/$s"); - else - return file_get_contents("view/$s"); -}} - -if(! function_exists('get_markup_template')) { -function get_markup_template($s) { - $a=get_app(); - $theme = current_theme(); - - if(file_exists("view/theme/$theme/tpl/$s")) - return file_get_contents("view/theme/$theme/tpl/$s"); - elseif(file_exists("view/theme/$theme/$s")) - return file_get_contents("view/theme/$theme/$s"); - elseif (x($a->theme_info,"extends") && file_exists("view/theme/".$a->theme_info["extends"]."/tpl/$s")) - return file_get_contents("view/theme/".$a->theme_info["extends"]."/tpl/$s"); - elseif (x($a->theme_info,"extends") && file_exists("view/theme/".$a->theme_info["extends"]."/$s")) - return file_get_contents("view/theme/".$a->theme_info["extends"]."/$s"); - elseif(file_exists("view/tpl/$s")) - return file_get_contents("view/tpl/$s"); - else - return file_get_contents("view/$s"); - -}} - - |