Skip to content

Commit

Permalink
Fix not working translations
Browse files Browse the repository at this point in the history
  • Loading branch information
danielseider committed Mar 20, 2018
1 parent f3266ac commit 81088ec
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ protected function _validateGeneral($rule, $coupon)
Mage::throwException($this->_formatMessage(
'Your coupon was already used.',
$coupon->getUsageLimit(),
sprintf('It may only be used %s time(s).', $coupon->getUsageLimit())
'It may only be used %s time(s).'
));
}
// check per customer usage limit
Expand All @@ -202,8 +202,8 @@ protected function _validateGeneral($rule, $coupon)
) {
Mage::throwException($this->_formatMessage(
'You have already used your coupon.',
$coupon->getUsageLimit(),
sprintf('It may only be used %s time(s).', $coupon->getUsagePerCustomer())
$coupon->getUsagePerCustomer(),
'It may only be used %s time(s).'
));
}
}
Expand All @@ -217,8 +217,8 @@ protected function _validateGeneral($rule, $coupon)
if ($ruleCustomer->getTimesUsed() >= $rule->getUsesPerCustomer()) {
Mage::throwException($this->_formatMessage(
'You have already used your coupon.',
$coupon->getUsageLimit(),
sprintf('It may only be used %s time(s).', $coupon->getUsagePerCustomer())
$rule->getUsesPerCustomer(),
'It may only be used %s time(s).'
));
}
}
Expand Down

0 comments on commit 81088ec

Please sign in to comment.