rails/rails — pull request #14997 by jpcody (2014-05-06 18:50:16+00:00)
Title: Include label value in i18n attribute lookup

Previously, only the object and method name from the label tag were
used when looking up the translation for a label. If a value is
given for the label, this ought to be additionally used. The
following:

# form.html.erb
<%= form_for @post do |f| %>
<%= f.label :type, value: "long" %>
<% end %>

# en.yml
en:
activerecord:
attributes:
post/long: "Long-form Post"

Used to simply return "long", but now it will return "Long-form
Post".