I'm trying to customize (translate) an active record attribute name in rails 3.1 ("first_name"). Here's beginning of my locale file (config/locales/sv.yml):
"sv":
activerecord:
models:
employee: "Anställd"
attributes:
employee:
first_name: "Förnamn"
I'm sure this file is used by rails because changing translations further down in the file works. Here's the form field erb code that should say "Förnamn" not "First name":
<div class="field">
<%= f.label :first_name %><br />
<%= f.text_field :first_name %>
</div>
Running Employee.human_attribute_name(:first_name) in rails console returns "First name".
Thank you very much