From a9f9e28ec4cf3ada99b43b92f9168272e0837f81 Mon Sep 17 00:00:00 2001 From: Viacheslav Ptsarev Date: Sun, 24 Dec 2017 03:57:43 +0300 Subject: [PATCH] Fix RelationType.model_name.human(count: :many) translation --- app/views/spree/admin/relation_types/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/spree/admin/relation_types/index.html.erb b/app/views/spree/admin/relation_types/index.html.erb index dae7df6b..13e1551b 100644 --- a/app/views/spree/admin/relation_types/index.html.erb +++ b/app/views/spree/admin/relation_types/index.html.erb @@ -1,5 +1,5 @@ <% content_for :page_title do %> - <%= Spree::RelationType.model_name.human(count: :many) %> + <%= Spree::RelationType.model_name.human(count: 2.1) %> <% end %> <% content_for :page_actions do %> @@ -38,7 +38,7 @@ <% else %>
- <%= Spree.t(:no_resource_found, resource: Spree::RelationType.model_name.human(count: :many)) %>, + <%= Spree.t(:no_resource_found, resource: Spree::RelationType.model_name.human(count: 2.1)) %>, <%= link_to Spree.t(:add_one), spree.new_admin_relation_type_path %>!
<% end %>