aboutsummaryrefslogtreecommitdiffstats
path: root/include/template.class.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2014-07-02 12:43:29 +0000
committerplegall <plg@piwigo.org>2014-07-02 12:43:29 +0000
commit3b9e2659b0f6043246036f237f1227bcf1e10e51 (patch)
tree2e1dba1d5d94d7d6561611c26e2ec1bc906f1a48 /include/template.class.php
parent266f2f756c83881bed287311caae83592ac828a5 (diff)
i18n for the new HTML5 upload (use i18n files from plupload)
optional specific $lang_info[jquery_code] and $lang_info[plupload_code] to load the right i18n file git-svn-id: http://piwigo.org/svn/trunk@28917 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/template.class.php')
-rw-r--r--include/template.class.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/template.class.php b/include/template.class.php
index 056d54102..322a78957 100644
--- a/include/template.class.php
+++ b/include/template.class.php
@@ -149,6 +149,16 @@ class Template
else
$this->set_template_dir($root);
+ if (isset($lang_info['code']) and !isset($lang_info['jquery_code']))
+ {
+ $lang_info['jquery_code'] = $lang_info['code'];
+ }
+
+ if (isset($lang_info['jquery_code']) and !isset($lang_info['plupload_code']))
+ {
+ $lang_info['plupload_code'] = str_replace('-', '_', $lang_info['jquery_code']);
+ }
+
$this->smarty->assign('lang_info', $lang_info);
if (!defined('IN_ADMIN') and isset($conf['extents_for_templates']))