[-] BO : fix #PSCFV-2316

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15322 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-05-15 18:03:17 +00:00
parent 518e62b636
commit a006f23a5b
2 changed files with 6 additions and 5 deletions
@@ -30,7 +30,7 @@
<p>
{l s='Expressions to translate'} : <b>{$count}</b>.<br />
{l s='Total missing expresssions:'} {$missing_translations}<br />
{l s='Total missing expresssions:'} {$missing_translations|array_sum}<br />
</p>
{if $post_limit_exceeded}
@@ -1643,7 +1643,7 @@ class AdminTranslationsControllerCore extends AdminController
{
$name_var = $this->translations_informations[$this->type_selected]['var'];
$GLOBALS[$name_var] = $this->fileExists();
$count_empty = 0;
$count_empty = array();
/* List files to parse */
$string_to_translate = array();
@@ -1674,12 +1674,13 @@ class AdminTranslationsControllerCore extends AdminController
if (array_key_exists(md5($key), $GLOBALS[$name_var]))
$string_to_translate[$key] = html_entity_decode($GLOBALS[$name_var][md5($key)], ENT_COMPAT, 'UTF-8');
else
{
$string_to_translate[$key] = '';
if (!isset($count_empty[$key]))
$count_empty[$key] = 1;
}
$this->total_expression++;
if (empty($string_to_translate[$key]))
$count_empty++;
}
}