mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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:
@@ -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']))
|
||||
|
||||
Reference in New Issue
Block a user