From 73a58435a8f76c06ad58092165fc57e803ed3ff6 Mon Sep 17 00:00:00 2001 From: Isaac Haseley Date: Thu, 31 Jan 2019 21:45:12 -0600 Subject: [PATCH] Adopt one/other pluralization --- app/views/spree/admin/overview/_products.html.haml | 5 +---- config/locales/en.yml | 5 +++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/views/spree/admin/overview/_products.html.haml b/app/views/spree/admin/overview/_products.html.haml index 010bcfcf77..effc671162 100644 --- a/app/views/spree/admin/overview/_products.html.haml +++ b/app/views/spree/admin/overview/_products.html.haml @@ -12,10 +12,7 @@ - if @product_count > 0 %div.seven.columns.alpha.list-item %span.six.columns.alpha - - if @product_count == 1 - = t(".active_products_count_single", product_count: @product_count ) - - else - = t(".active_products_count_multiple", product_count: @product_count ) + = t(".active_products", count: @product_count ) %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 7c14048cdd..59b519de8f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2717,8 +2717,9 @@ See the %{link} to find out more about %{sitename}'s features and to start using order_cycle: "Order cycle:" overview: products: - active_products_count_single: "You have %{product_count} active product" - active_products_count_multiple: "You have %{product_count} active products" + active_products: + one: "You have one active product" + other: "You have %{count} active products" order_cycles: order_cycles: "Order Cycles" order_cycles_tip: "Order cycles determine when and where your products are available to customers."