From 8543bb7cfb101afbc8cde0c963ae1e150ffecdb8 Mon Sep 17 00:00:00 2001 From: Isaac Haseley Date: Wed, 23 Jan 2019 12:23:35 -0600 Subject: [PATCH] Add missing 'active products' translation on dashboard --- app/views/spree/admin/overview/_products.html.haml | 2 +- config/locales/en.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/spree/admin/overview/_products.html.haml b/app/views/spree/admin/overview/_products.html.haml index 37de2f11d4..459aa3483c 100644 --- a/app/views/spree/admin/overview/_products.html.haml +++ b/app/views/spree/admin/overview/_products.html.haml @@ -12,7 +12,7 @@ - if @product_count > 0 %div.seven.columns.alpha.list-item %span.six.columns.alpha - = "You have #{@product_count} active product#{@product_count > 1 ? "s" : ""}." + = t(".you_have") + " #{@product_count} #{@product_count > 1 ? t(".active_products") : t(".active_product")}." %span.one.column.omega %span.icon-ok-sign %a.seven.columns.alpha.button.bottom.blue{ href: "#{admin_products_path}" } diff --git a/config/locales/en.yml b/config/locales/en.yml index 0bde4fb005..7557acbb84 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2716,6 +2716,10 @@ See the %{link} to find out more about %{sitename}'s features and to start using distributor: "Distributor:" order_cycle: "Order cycle:" overview: + products: + you_have: "You have" + active_products: "active products" + active_product: "active product" order_cycles: order_cycles: "Order Cycles" order_cycles_tip: "Order cycles determine when and where your products are available to customers."