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
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
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
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:
4 matches
Mail list logo