If the user does not fill in a field properly on the form an error
message is displayed.
I have managed to set up the YAML file to translate the messages but the
name of the field in the error message does not get translated.
For example:
City doit être rempli
How to I make sure the field names are translated in the error message?
Thanks in advance.
Mitch
Attachments:
http://www.ruby-forum.com/attachment/5650/Picture_3.png
--
Posted via http://www.ruby-forum.com/.
I have a form with labels that I translate using the I18n format with
YAML files.
If the user does not fill in a field properly on the form an error
message is displayed.
I have managed to set up the YAML file to translate the messages but the
name of the field in the error message does not get translated.
For example:
City doit être rempli
en: activerecord: models: city: city in german
How to I make sure the field names are translated in the error message?
Thanks in advance.
Mitch
Attachments:
http://www.ruby-forum.com/attachment/5650/Picture_3.png
--
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 rails...@googlegroups.com.
To unsubscribe from this group, send email to rails-i18n+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rails-i18n?hl=en.
Thank you very much that is perfect
Andrés Gutiérrez wrote in post #972249:
>> City doit tre rempli
>>Thank you very much that is perfect
>
> Mybe this help you:
>
http://edgeguides.rubyonrails.org/i18n.html#translations-for-active-record-models
> en:
> activerecord:
> models:
> city: city in german
--
Just for clarification: " City doit être rempli" is French and not German ;)