From 3b9e2659b0f6043246036f237f1227bcf1e10e51 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 2 Jul 2014 12:43:29 +0000 Subject: 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 --- include/template.class.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/template.class.php') 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'])) -- cgit v1.2.3