Hi, > If I should believe the things I find on the internet, this is the > correct approach for form labels: > --- > en: > activerecord: > attributes: > user: > last_name: Surname > --- > And then: > > <% form_for @user do |f| %> > <%= f.label :last_name %> > <%= f.text_field :last_name %> > <% end %> > > However, this results in a form label "Last name" instead of > "Surname". What am I doing wrong? I'm on Rails 2.3.5.
For the moment I think this is the normal behavior but it will be available with Rails3: http://guides.rails.info/3_0_release_notes.html#internationalization For the moment, what I do is : <% form_for @user do |f| %> <%= f.label t('activerecord.attributes.user.last_name') %> <%= f.text_field :last_name %> <% end %> Not so clean but it works... @+ @lex
smime.p7s
Description: S/MIME cryptographic signature

