Add missing translation to order form

I saw the following error:

  translation missing: en.spree.line_item_adjustments

In this commit I change all three translations in the view file to use
lazy lookup.
This commit is contained in:
Maikel Linke
2019-04-02 17:47:36 +11:00
parent 2a6236823f
commit 0c846758dd
2 changed files with 6 additions and 3 deletions

View File

@@ -4,12 +4,12 @@
= render :partial => "spree/admin/orders/shipment", :collection => @order.shipments, :locals => { :order => order }
= render :partial => "spree/admin/orders/_form/adjustments", :locals => { :adjustments => @order.price_adjustments, :title => Spree.t(:line_item_adjustments)}
= render :partial => "spree/admin/orders/_form/adjustments", :locals => { :adjustments => order_adjustments(@order), :title => Spree.t(:order_adjustments)}
= render :partial => "spree/admin/orders/_form/adjustments", :locals => { :adjustments => @order.price_adjustments, :title => t(".line_item_adjustments")}
= render :partial => "spree/admin/orders/_form/adjustments", :locals => { :adjustments => order_adjustments(@order), :title => t(".order_adjustments")}
- if order.line_items.exists?
%fieldset#order-total.no-border-bottom{"data-hook" => "order_details_total"}
%legend= Spree.t(:order_total)
%legend= t(".order_total")
%span.order-total= order.display_total
= form_for @order, url: admin_order_url(@order), method: :put do |f|

View File

@@ -2932,6 +2932,9 @@ See the %{link} to find out more about %{sitename}'s features and to start using
title: "Distribution"
distributor: "Distributor:"
order_cycle: "Order cycle:"
line_item_adjustments: "Line Item Adjustments"
order_adjustments: "Order Adjustments"
order_total: "Order Total"
overview:
products:
active_products: