Move translation into the right place

The dashboard couldn't find a translation, because it is in the spree
namespace.

Also simplified the translation using the `count` feature.
This commit is contained in:
Maikel Linke
2017-07-19 10:14:28 +10:00
parent 8b2b51d511
commit 9723c8b82b
2 changed files with 7 additions and 6 deletions

View File

@@ -12,7 +12,7 @@
- if @order_cycle_count > 0
%div.seven.columns.alpha.list-item
%span.six.columns.alpha
= t('.you_have_active', num: @order_cycle_count, order_cycles: t('.order_cycle', count: @order_cycle_count))
= t('.you_have_active', count: @order_cycle_count)
%span.one.column.omega
%span.icon-ok-sign
%a.seven.columns.alpha.button.bottom.blue{ href: "#{main_app.admin_order_cycles_path}" }

View File

@@ -647,11 +647,6 @@ en:
has_no_enterprise_fees: "%{enterprise} has no enterprise fees"
order_cycles:
manage_order_cycles: MANAGE ORDER CYCLES
you_have_active: "You have %{num} active %{order_cycles}."
order_cycle:
zero: order cycle
one: order cycle
other: order cycles
enterprise_issues:
create_new: Create New
resend_email: Resend Email
@@ -2052,6 +2047,12 @@ Please follow the instructions there to make your enterprise visible on the Open
form:
distribution_fields:
title: Distribution
overview:
order_cycles:
you_have_active:
zero: "You have no active order cycles."
one: "You have one active order cycle."
other: "You have %{count} active order cycles."
products:
bulk_edit:
header: