Fix translations

This commit is contained in:
Gaetan Craig-Riou
2023-04-17 12:06:02 +10:00
committed by Maikel Linke
parent a2e1e6ca33
commit 815dcbcefe
3 changed files with 4 additions and 4 deletions

View File

@@ -9,7 +9,7 @@
- if voucher_adjustment.present?
%span.button.voucher-added
%i.ofn-i_051-check-big
= "#{voucher_adjustment.originator.display_value} #{t("split_checkout.step2.voucher.voucher")}"
= t("split_checkout.step2.voucher.voucher", voucher_amount: voucher_adjustment.originator.display_value)
= link_to t("split_checkout.step2.voucher.remove_code"), voucher_adjustment_path(id: voucher_adjustment.id), method: "delete", data: { confirm: t("split_checkout.step2.voucher.confirm_delete") }
- # TODO: this might not be true, ie payment method include fee which wouldn't be covered by voucher, tax implication raise total to be bigger than voucher other ?
- if voucher_adjustment.originator.value > order.total

View File

@@ -2056,12 +2056,12 @@ en:
submit: Next - Order summary
cancel: Back to Your details
voucher:
voucher: Voucher
voucher: "%{voucher_amount} Voucher"
apply_voucher: Apply voucher
apply: Apply
placeholder: Enter voucher code
remove_code: Remove code
confirm_delete: Are you sure you want to remove the voucher ?
confirm_delete: Are you sure you want to remove the voucher?
warning_forfeit_remaining_amount: Your voucher value is more than your order. By using this voucher you are forfeiting the remaining value.
step3:
delivery_details:

View File

@@ -782,7 +782,7 @@ describe "As a consumer, I want to checkout my order" do
end
it "removes voucher" do
accept_confirm "Are you sure you want to remove the voucher ?" do
accept_confirm "Are you sure you want to remove the voucher?" do
click_on "Remove code"
end