[Rails] Re: I18n on model attributes

2011-11-09 Thread Xuan
On 8 nov, 23:21, Rodrigo Ruiz rodrigo.ru...@gmail.com wrote: I meant translation of the content of those attributes, not the name of the attributes Sorry for the misunderstanding. Globalize gem seems to be what you need: https://github.com/svenfuchs/globalize3 -- You received this message

[Rails] Re: I18n on model attributes

2011-11-08 Thread Xuan
You need a config/locales/es.something.yml file that looks like: es: [...] activerecord: models: user: Usuario attributes: user: name: Nombre [...] This way you'll have your attribute and models names translated when you use. Remember to have the same strings

[Rails] Re: I18n on model attributes

2011-11-08 Thread Andreas Arnold
You should have a look at the Rails Internationalization Guide, especially the part about localizing Active Model attributes. http://guides.rubyonrails.org/i18n.html#translations-for-active-record-models Simply set the local for the I18n API: I18n.locale = :de and translate all the active model

Re: [Rails] Re: I18n on model attributes

2011-11-08 Thread Rodrigo Ruiz
I meant translation of the content of those attributes, not the name of the attributes On Tue, Nov 8, 2011 at 7:29 AM, Xuan xua...@gmail.com wrote: You need a config/locales/es.something.yml file that looks like: es: [...] activerecord: models: user: Usuario attributes: