[Rails3] Localization for non activerecord models


#1

I have a Contact model that is a non activerecord model. I can use the
validation thanks to Rails3, but I do not in which section of
en.yml/de.yml I should localize the attributes of my Contact model.


#2

The scope is not under activerecord, but activemodel, which you can
change:
https://github.com/rails/rails/blob/master/activemodel/lib/active_model/translation.rb#L26-29

Hope this helps

Cheers, iain


#3

Iain H. wrote in post #980254:

The scope is not under activerecord, but activemodel, which you can
change:

https://github.com/rails/rails/blob/master/activemodel/lib/active_model/translation.rb#L26-29

Hope this helps

Cheers, iain

Thank you!


#4

2011/2/9 Fernando P. removed_email_address@domain.invalid: