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

This commit is contained in:
lLefevre
2012-05-14 11:45:41 +00:00
parent 97a37ff566
commit 83703dc4ee
21 changed files with 830 additions and 761 deletions
+4 -1
View File
@@ -48,7 +48,10 @@ class PasswordControllerCore extends FrontController
else
{
if ((strtotime($customer->last_passwd_gen.'+'.(int)($min_time = Configuration::get('PS_PASSWD_TIME_FRONT')).' minutes') - time()) > 0)
$this->errors[] = Tools::displayError('You can regenerate your password only every').' '.(int)($min_time).' '.Tools::displayError('minute(s)');
$this->errors[] = sprintf(
Tools::displayError('You can regenerate your password only every %d minute(s)'),
(int)$min_time
);
else
{
if (Mail::Send($this->context->language->id, 'password_query', Mail::l('Password query confirmation'),