Tomas R. wrote in post #993402:
> ...
> my es.yml has this lines
>
> activerecord:
> errors:
> template:
> header:
> one: "No se pudo guardar este/a %{model} porque se encontrĂ³
> 1 error"
> other: "No se pudo guardar este/a %{model} porque se
> encontraron %{count} errores"
> # The variable :count is also available
> body: "Se encontraron problemas con los siguientes campos:"
activerecord:
models:
client: 'client in chilenian spanish'
should do it for the models and if I'm not wrong for the attributes:
(activerecord:)
attributes:
client:
phone: 'phone in spanish'
cellphone: 'cellphone in spanish'
...
I have a subdirectory for the model (activerecord) stuff locales/models
and within that a subdirectory for each model (would be
locales/models/clients in your case). So a locales/models/clients/es.yml
could caontain:
es:
attributes:
phone: 'phone in spanish'
cellphone: 'cellphone in spanish'
...
But how to set the model names in this way (outside the default dir) I
also would be interested in.
Regards T.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"rails-i18n" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rails-i18n?hl=en.