// Fix module translation in the core

This commit is contained in:
Damien Metzger committed 2013-04-23 20:25:28 +02:00
1 parent 2d1a4ed180
commit d16f30f322
2 files changed
+2 -2

No files matched your search

@@ -117,7 +117,7 @@
<td style="width: 40%">{$key|stripslashes}</td> <td style="width: 40%">{$key|stripslashes}</td>
<td>= <td>=
{* Prepare name string for md5() *} {* Prepare name string for md5() *}
{capture assign="name"}{strtolower($module_name)}_{strtolower($theme_name)}_{strtolower($template_name)}_{md5($key)}{/capture} {capture assign="name"}{strtolower($module_name)}{if $theme_name}_{strtolower($theme_name)}{/if}_{strtolower($template_name)}_{md5($key)}{/capture}
{if $key|strlen < $textarea_sized} {if $key|strlen < $textarea_sized}
<input type="text" <input type="text"
style="width: 450px{if empty($value.trad)};background:#FBB{/if}" style="width: 450px{if empty($value.trad)};background:#FBB{/if}"
@@ -827,7 +827,7 @@ class AdminTranslationsControllerCore extends AdminController
} }
else else
{ {
$post_key = md5(strtolower($module_name).'_'.self::DEFAULT_THEME_NAME.'_'.strtolower($template_name).'_'.md5($key)); $post_key = md5(strtolower($module_name).'_'.strtolower($template_name).'_'.md5($key));
$pattern = '\'<{'.strtolower($module_name).'}prestashop>'.strtolower($template_name).'_'.md5($key).'\''; $pattern = '\'<{'.strtolower($module_name).'}prestashop>'.strtolower($template_name).'_'.md5($key).'\'';
} }