Ignore:
Timestamp:
Jul 2, 2014, 2:43:29 PM (10 years ago)
Author:
plg
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/template.class.php

    r28703 r28917  
    150150      $this->set_template_dir($root);
    151151
     152    if (isset($lang_info['code']) and !isset($lang_info['jquery_code']))
     153    {
     154      $lang_info['jquery_code'] = $lang_info['code'];
     155    }
     156
     157    if (isset($lang_info['jquery_code']) and !isset($lang_info['plupload_code']))
     158    {
     159      $lang_info['plupload_code'] = str_replace('-', '_', $lang_info['jquery_code']);
     160    }
     161   
    152162    $this->smarty->assign('lang_info', $lang_info);
    153163
Note: See TracChangeset for help on using the changeset viewer.