app/views/administrate/application/_form.html.erb in administrate-0.8.1 vs app/views/administrate/application/_form.html.erb in administrate-0.9.0
- old
+ new
@@ -16,11 +16,14 @@
<%= form_for([namespace, page.resource], html: { class: "form" }) do |f| %>
<% if page.resource.errors.any? %>
<div id="error_explanation">
<h2>
- <%= pluralize(page.resource.errors.count, "error") %>
- prohibited this <%= page.resource_name %> from being saved:
+ <%= t(
+ "administrate.form.errors",
+ pluralized_errors: pluralize(page.resource.errors.count, t("administrate.form.error")),
+ resource_name: display_resource_name(page.resource_name)
+ ) %>
</h2>
<ul>
<% page.resource.errors.full_messages.each do |message| %>
<li class="flash-error"><%= message %></li>