Permalink
Browse files

Revert "Fix pluralizations"

This reverts commit 6919231.
  • Loading branch information...
fesplugas committed Feb 21, 2013
1 parent 0343cf0 commit 08665c051180e462fc4eddbceb97cbfaaae29c43
@@ -33,7 +33,7 @@
<% unless klass.typus_options_for(:hide_from_dashboard) %>
<tr class="<%= cycle("even", "odd") %>">
<td>
- <%= link_to klass.model_name.human(:count => 2), :controller => "/admin/#{klass.to_resource}" %>
+ <%= link_to klass.model_name.human.pluralize, :controller => "/admin/#{klass.to_resource}" %>
</td>
</tr>
<% end %>
@@ -13,7 +13,7 @@
<% admin_user.models.map(&:constantize).each do |klass| %>
<tr class="<%= cycle("even", "odd") %>">
- <td><%= link_to klass.model_name.human(:count => 2), :controller => "/admin/#{klass.to_resource}" %></td>
+ <td><%= link_to klass.model_name.human.pluralize, :controller => "/admin/#{klass.to_resource}" %></td>
<td width="80px" align="right">
<%= link_to Typus::I18n.t("Add"), :controller => "/admin/#{klass.to_resource}", :action => 'new' %>
</td>
@@ -14,7 +14,7 @@
<% admin_user.models.map(&:constantize).each do |klass| %>
<tr class="<%= cycle("even", "odd") %>">
- <td><%= link_to klass.model_name.human(:count => 2), :controller => "/admin/#{klass.to_resource}" %></td>
+ <td><%= link_to klass.model_name.human.pluralize, :controller => "/admin/#{klass.to_resource}" %></td>
<td width="30px" align="right"><%= klass.count %></td>
<td width="80px" align="right">
<%= link_to Typus::I18n.t("Add"), :controller => "/admin/#{klass.to_resource}", :action => 'new' %>
@@ -1,5 +1,5 @@
<%
- page_title = @resource.model_name.human(:count => 2)
+ page_title = @resource.model_name.human.pluralize
admin_title(page_title)
%>
@@ -6,7 +6,7 @@
<ul>
<%= link_to :controller => "/admin/#{resource.to_resource}" do %>
<li class="header <%= html_class %>">
- <%= resource.model_name.human(:count => 2) %>
+ <%= resource.model_name.human.pluralize %>
</li>
<% end %>
</ul>
@@ -1,5 +1,5 @@
<%
- page_title = @resource.model_name.human(:count => 2)
+ page_title = @resource.model_name.human.pluralize
admin_title(page_title)
%>

0 comments on commit 08665c0

Please sign in to comment.