From 0ae3bf985ac36f76298f421c99858a7906eb2119 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Wed, 4 Nov 2020 21:54:27 +0000 Subject: [PATCH] Fix some missing translations in orders edit page --- app/views/spree/admin/orders/_shipment.html.haml | 8 ++++---- config/locales/en.yml | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/views/spree/admin/orders/_shipment.html.haml b/app/views/spree/admin/orders/_shipment.html.haml index b2228d0a6a8..0175faf001d 100644 --- a/app/views/spree/admin/orders/_shipment.html.haml +++ b/app/views/spree/admin/orders/_shipment.html.haml @@ -54,8 +54,8 @@ %td.actions - if can? :update, shipment - = link_to '', '#', :class => 'save-method icon_link icon-ok no-text with-tip', :data => { 'shipment-number' => shipment.number, :action => 'save' }, title: Spree.t('actions.save') - = link_to '', '#', :class => 'cancel-method icon_link icon-cancel no-text with-tip', :data => { :action => 'cancel' }, :title => Spree.t('actions.cancel') + = link_to '', '#', :class => 'save-method icon_link icon-ok no-text with-tip', :data => { 'shipment-number' => shipment.number, :action => 'save' }, title: I18n.t('actions.save') + = link_to '', '#', :class => 'cancel-method icon_link icon-cancel no-text with-tip', :data => { :action => 'cancel' }, :title => I18n.t('actions.cancel') %tr.show-method.total %td{ :colspan => "4" } @@ -83,8 +83,8 @@ %td.actions - if can? :update, shipment - = link_to '', '#', :class => 'save-tracking icon_link icon-ok no-text with-tip', :data => { 'shipment-number' => shipment.number, :action => 'save' }, :title => Spree.t('actions.save') - = link_to '', '#', :class => 'cancel-tracking icon_link icon-cancel no-text with-tip', :data => { :action => 'cancel' }, :title => Spree.t('actions.cancel') + = link_to '', '#', :class => 'save-tracking icon_link icon-ok no-text with-tip', :data => { 'shipment-number' => shipment.number, :action => 'save' }, :title => I18n.t('actions.save') + = link_to '', '#', :class => 'cancel-tracking icon_link icon-cancel no-text with-tip', :data => { :action => 'cancel' }, :title => I18n.t('actions.cancel') %tr.show-tracking.total %td{ :colspan => "5" } diff --git a/config/locales/en.yml b/config/locales/en.yml index e0e56938e59..1ba74c312d9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3031,6 +3031,8 @@ See the %{link} to find out more about %{sitename}'s features and to start using delete: "Delete" cannot_set_shipping_method_without_address: "Cannot set shipping method until customer details are provided." no_tracking_present: "No tracking details provided." + tracking: "Tracking" + tracking_number: "Tracking Number" order_total: "Order Total" customer_details: "Customer Details" customer_search: "Customer Search"