diff --git a/app/views/spree/admin/orders/_shipment.html.haml b/app/views/spree/admin/orders/_shipment.html.haml index 43a342f912..30b478222a 100644 --- a/app/views/spree/admin/orders/_shipment.html.haml +++ b/app/views/spree/admin/orders/_shipment.html.haml @@ -13,11 +13,11 @@ %form = render ConfirmModalComponent.new(id: "ship_order", confirm_reflexes: "click->Admin::OrdersReflex#ship", controller: "orders", reflex: "Admin::Orders#ship") do %div{class: "margin-bottom-30"} - %p This will mark the order as Shipped + %p= t('.mark_as_shipped_message') %div{class: "margin-bottom-30"} = hidden_field_tag :id, order.id = check_box_tag :send_shipment_email - = label_tag :send_shipment_email, "Send email confirmation to customer" + = label_tag :send_shipment_email, t('.mark_as_shipped_label_message') %table.stock-contents.index %colgroup diff --git a/app/views/spree/admin/orders/_table_row.html.haml b/app/views/spree/admin/orders/_table_row.html.haml index 5ee873bda5..7fc1ff396e 100644 --- a/app/views/spree/admin/orders/_table_row.html.haml +++ b/app/views/spree/admin/orders/_table_row.html.haml @@ -50,11 +50,11 @@ %form = render ConfirmModalComponent.new(id: "ship_order", confirm_reflexes: "click->Admin::OrdersReflex#ship", controller: "orders", reflex: "Admin::Orders#ship") do %div{class: "margin-bottom-30"} - %p This will mark the order as Shipped + %p= t('spree.admin.orders.shipment.mark_as_shipped_message') %div{class: "margin-bottom-30"} = hidden_field_tag :id, order.id = check_box_tag :send_shipment_email - = label_tag :send_shipment_email, "Send email confirmation to customer" + = label_tag :send_shipment_email, t('spree.admin.orders.shipment.mark_as_shipped_label_message') = render partial: 'admin/shared/tooltip_button', locals: {button_class: "icon-road icon_link with-tip no-text", reflex_data_id: order.id.to_s, tooltip_text: t('spree.admin.orders.index.ship'), shipment: true} diff --git a/config/locales/en.yml b/config/locales/en.yml index 3648158430..9907fd8b7b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -4177,6 +4177,9 @@ See the %{link} to find out more about %{sitename}'s features and to start using add_product: cannot_add_item_to_canceled_order: "Cannot add item to canceled order" include_out_of_stock_variants: "Include variants with no available stock" + shipment: + mark_as_shipped_message: "This will mark the order as Shipped" + mark_as_shipped_label_message: "Send email confirmation to customer" index: listing_orders: "Listing Orders" new_order: "New Order"