[-] BO : fixed #PSFV-727 (issue #4)

This commit is contained in:
lLefevre
2012-04-05 10:06:17 +00:00
parent 9663b86ee2
commit 336c0f4d7f
6 changed files with 3820 additions and 4195 deletions
+5 -4
View File
@@ -31,11 +31,12 @@ $smarty->debugging_ctrl = 'NONE';
function smartyTranslate($params, &$smarty)
{
$htmlentities = !isset($params['js']);
$pdf = isset($params['pdf']);
$pdf = isset($params['pdf']);
$addslashes = isset($params['slashes']);
$sprintf = isset($params['sprintf']) ? $params['sprintf'] : false;
if ($pdf)
return Translate::getPdfTranslation($params['s']);
if ($pdf)
return Translate::getPdfTranslation($params['s']);
$filename = ((!isset($smarty->compiler_object) || !is_object($smarty->compiler_object->template)) ? $smarty->template_resource : $smarty->compiler_object->template->getTemplateFilepath());
@@ -64,5 +65,5 @@ function smartyTranslate($params, &$smarty)
$class = null;
}
return Translate::getAdminTranslation($params['s'], $class, $addslashes, $htmlentities);
return Translate::getAdminTranslation($params['s'], $class, $addslashes, $htmlentities, $sprintf);
}