Skip to content

Commit

Permalink
Translated sentences converted into magento standard
Browse files Browse the repository at this point in the history
  • Loading branch information
hidonet committed Dec 22, 2020
1 parent 5b00073 commit 2d1cdcc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Helper/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,19 @@ public function applyCoupon(\Magento\Quote\Model\Quote $quote, string $coupon):

catch (LocalizedException $e) {
$this->messageManager->addError(
__("Discount code <strong>$coupon</strong> couldn't be applied: " .
$e->getMessage())
__("Discount code <strong>%1</strong> couldn't be applied: %2",$coupon,$e->getMessage())
);
}

catch (\Exception $e) {
$this->messageManager->addError(
__("Discount code <strong>$coupon</strong> couldn't be applied or is invalid")
__("Discount code <strong>%1</strong> couldn't be applied or is invalid",$coupon)
);
}

if ($quote->getCouponCode() != $coupon) {
$this->messageManager->addError(
__("Discount code <strong>$coupon</strong> is invalid. Verify that it's correct and try again.")
__("Discount code <strong>%1</strong> is invalid. Verify that it's correct and try again.",$coupon)
);
}
}
Expand Down

0 comments on commit 2d1cdcc

Please sign in to comment.