Fernando Perez wrote:
> Let's say I want to submit a user. Currently if the user submission
> fails, I get the name "user", but I would like to translate it into
> other languages.
> 
> I can make the translation work for its attributes but not the model
> name itself.
> 
> Thanks in advance.

You can translate model names in a similar way you translate its 
attributes:

<code><pre>
en:
  activerecord:
    models:
      user: Gebruiker
    attributes:
      user:
        login: gebruikersnaam
</pre></code>

Hope this works for you!
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Railsi18n-discussion mailing list
Railsi18n-discussion@rubyforge.org
http://rubyforge.org/mailman/listinfo/railsi18n-discussion

Reply via email to