Fix translation problem in the subject of order confirmation emails

This commit is contained in:
luisramos0
2019-04-04 12:32:15 +01:00
parent 6e49cf9f87
commit cf3b2308e1
2 changed files with 4 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ Spree::OrderMailer.class_eval do
def confirm_email_for_customer(order_or_order_id, resend = false)
@order = find_order(order_or_order_id)
I18n.with_locale valid_locale(@order.user) do
subject = mail_subject(t('order_mailer.confirm_email.subject'), resend)
subject = mail_subject(t('spree.order_mailer.confirm_email.subject'), resend)
mail(:to => @order.email,
:from => from_address,
:subject => subject,
@@ -27,7 +27,7 @@ Spree::OrderMailer.class_eval do
def confirm_email_for_shop(order_or_order_id, resend = false)
@order = find_order(order_or_order_id)
I18n.with_locale valid_locale(@order.user) do
subject = mail_subject(t('order_mailer.confirm_email.subject'), resend)
subject = mail_subject(t('spree.order_mailer.confirm_email.subject'), resend)
mail(:to => @order.distributor.contact.email,
:from => from_address,
:subject => subject)

View File

@@ -3088,6 +3088,8 @@ See the %{link} to find out more about %{sitename}'s features and to start using
instructions: "Your order has been CANCELED. Please retain this cancellation information for your records."
order_summary_canceled: "Order Summary [CANCELED]"
subject: "Cancellation of Order"
confirm_email:
subject: "Order Confirmation"
invoice_email:
hi: "Hi %{name}"
invoice_attached_text: Please find attached an invoice for your recent order from