[-] BO : fix small bug for translations
This commit is contained in:
@@ -257,8 +257,22 @@
|
||||
<select name="{$key}">
|
||||
<option value="">-</option>
|
||||
{if $key == 'months'}
|
||||
{*
|
||||
{l s='January'}
|
||||
{l s='February'}
|
||||
{l s='March'}
|
||||
{l s='April'}
|
||||
{l s='May'}
|
||||
{l s='June'}
|
||||
{l s='July'}
|
||||
{l s='August'}
|
||||
{l s='September'}
|
||||
{l s='October'}
|
||||
{l s='November'}
|
||||
{l s='December'}
|
||||
*}
|
||||
{foreach $select as $k => $v}
|
||||
<option value="{$k}" {if $k == $fields_value[$key]}selected="selected"{/if}>{$v}</option>
|
||||
<option value="{$k}" {if $k == $fields_value[$key]}selected="selected"{/if}>{l s=$v}</option>
|
||||
{/foreach}
|
||||
{else}
|
||||
{foreach $select as $v}
|
||||
|
||||
@@ -981,7 +981,7 @@ class AdminTranslationsControllerCore extends AdminController
|
||||
$tpl = $template;
|
||||
|
||||
// get controller name instead of file name
|
||||
$prefix_key = Tools::toCamelCase(str_replace(_PS_ADMIN_DIR_.DIRECTORY_SEPARATOR.'themes'.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR, '', $tpl), true);
|
||||
$prefix_key = Tools::toCamelCase(str_replace(_PS_ADMIN_DIR_.DIRECTORY_SEPARATOR.'themes', '', $tpl), true);
|
||||
$pos = strrpos($prefix_key, DIRECTORY_SEPARATOR);
|
||||
$tmp = substr($prefix_key, 0, $pos);
|
||||
$prefix_key = 'Admin'.ucfirst(substr($tmp, strrpos($tmp, DIRECTORY_SEPARATOR) + 1, $pos));
|
||||
|
||||
@@ -254,7 +254,7 @@ $(function(){ldelim}
|
||||
<select id="months" name="months">
|
||||
<option value="">-</option>
|
||||
{foreach from=$months key=k item=month}
|
||||
<option value="{$k|escape:'htmlall':'UTF-8'}" {if ($sl_month == $k)} selected="selected"{/if}>{l s="$month"} </option>
|
||||
<option value="{$k|escape:'htmlall':'UTF-8'}" {if ($sl_month == $k)} selected="selected"{/if}>{l s='$month'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<select id="years" name="years">
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user