mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Fix translation problem in the subject of order confirmation emails
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user