When scaffolding in Rails 3 the generator does this:
<% if @user.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>
<ul>
<% @user.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
But what about i18n? The messages get translated but why the hardcoded headline? Am I supposed to translate that manually? That doesn't seem very DRY?
Regards,
Jacob