Skip to content

Commit

Permalink
Don't pluralise "New [resource]" buttons. (#1056)
Browse files Browse the repository at this point in the history
In #1004 the handling of translation strings improved, but bought in a
change to the buttons for new resources. This started to pluralise them
when they shouldn't be.

So you'd have "New Line items", not "New Line item". This reverts that
change.
  • Loading branch information
nickcharlton authored Jan 12, 2018
1 parent 64c7eba commit 3972953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/administrate/application/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ It renders the `_table` partial to display details about the resources.
<%= link_to(
t(
"administrate.actions.new_resource",
name: display_resource_name(page.resource_name).titleize.downcase
name: page.resource_name.titleize.downcase
),
[:new, namespace, page.resource_path],
class: "button",
Expand Down

0 comments on commit 3972953

Please sign in to comment.