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
This commit is contained in:
plegall
2014-07-02 12:43:29 +00:00
parent 266f2f756c
commit 3b9e2659b0
11 changed files with 38 additions and 13 deletions
+10
View File
@@ -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']))