[-] 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
+4 -2
View File
@@ -58,8 +58,10 @@ class OrderControllerCore extends ParentOrderController
if ($this->context->cart->getOrderTotal(false, Cart::ONLY_PRODUCTS) < $minimal_purchase && $this->step != -1)
{
$this->step = 0;
$this->errors[] = Tools::displayError('A minimum purchase total of').' '.Tools::displayPrice($minimal_purchase, $currency).
' '.Tools::displayError('is required in order to validate your order.');
$this->errors[] = sprintf(
Tools::displayError('A minimum purchase total of %d is required in order to validate your order.'),
Tools::displayPrice($minimal_purchase, $currency)
);
}
if (!$this->context->customer->isLogged(true) && in_array($this->step, array(1, 2, 3)))