From 8c56bd23fcdfe379edf41a35e76bfa6ece19cc41 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Wed, 12 Jul 2017 18:38:08 +0200 Subject: [PATCH] Add missing translation --- app/controllers/spree/admin/orders_controller_decorator.rb | 2 +- config/locales/en.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/spree/admin/orders_controller_decorator.rb b/app/controllers/spree/admin/orders_controller_decorator.rb index e84f7217bf..e99b91638b 100644 --- a/app/controllers/spree/admin/orders_controller_decorator.rb +++ b/app/controllers/spree/admin/orders_controller_decorator.rb @@ -79,7 +79,7 @@ Spree::Admin::OrdersController.class_eval do template = if Spree::Config.invoice_style2? then "spree/admin/orders/invoice2" else "spree/admin/orders/invoice" end pdf = render_to_string pdf: "invoice-#{@order.number}.pdf", template: template, formats: [:html], encoding: "UTF-8" Spree::OrderMailer.invoice_email(@order.id, pdf).deliver - flash[:success] = t(:invoice_email_sent) + flash[:success] = t('admin.orders.invoice_email_sent') respond_with(@order) { |format| format.html { redirect_to edit_admin_order_path(@order) } } end diff --git a/config/locales/en.yml b/config/locales/en.yml index 7048b53ee1..9519b207b3 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -378,6 +378,7 @@ en: index: capture: "Capture" ship: "Ship" + invoice_email_sent: 'Invoice sent' bulk_management: tip: "Use this page to alter product quantities across multiple orders. Products may also be removed from orders entirely, if required." shared: "Shared Resource?"