[-] FO : #PSCFV-2151 : Translations of errors are connected width sprintf()

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15265 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-05-14 11:45:41 +00:00
parent f3ad820a08
commit 897c6acb82
21 changed files with 830 additions and 761 deletions
+11 -3
View File
@@ -179,7 +179,11 @@ class Tools extends ToolsCore
else
trigger_error('Function <strong>'.$callee['function'].'()</strong> is deprecated in <strong>'.$callee['file'].'</strong> on line <strong>'.$callee['line'].'</strong><br />', E_USER_WARNING);
$message = Tools::displayError('The function').' '.$callee['function'].' ('.Tools::displayError('Line').' '.$callee['line'].') '.Tools::displayError('is deprecated and will be removed in the next major version.');
$message = sprintf(
Tools::displayError('The function %1$s (Line %2$s) is deprecated and will be removed in the next major version.'),
$callee['function'],
$callee['line']
);
Logger::addLog($message, 3, $callee['class']);
}
}
@@ -199,8 +203,12 @@ class Tools extends ToolsCore
if(PS_USE_FIREPHP)
FB::trace('Parameter <strong>'.$parameter.'</strong> in function <strong>'.$callee['function'].'()</strong> is deprecated in <strong>'.$callee['file'].'</strong> on line <strong>'.$callee['Line'].'</strong><br />', 'deprecated parameter');
else
$message = Tools::displayError('The parameter').' '.$parameter.' '.Tools::displayError(' in function ').' '.$callee['function'].' ('.Tools::displayError('Line').' '.$callee['Line'].') '.Tools::displayError('is deprecated and will be removed in the next major version.');
$message = sprintf(
Tools::displayError('The parameter %1$s in function %2$s (Line %3$s) is deprecated and will be removed in the next major version.'),
$parameter,
$callee['function'],
$callee['Line']
);
Logger::addLog($message, 3, $callee['class']);
}
}