2010/9/24 Erwin <[email protected]>

> I am trying to localize in Rails 3, and I don't understand the change
> w Rails 2 ...
>
> I wrote the following hierarchy :
>
> en:
>  model:
>    user: User
>    attributes:
>      login: Login
>      email: Email
>      password: Password
>      roles: Roles
>
> and tried to use  in my view   I18n.t('user.roles')  to get the
> localization of roles
> but cannot find it :   translation missing: fr, user, roles
>
I think you don't have to indent attributes in model. Try this:

en:
 model:
   user: User
 attributes:
   user:
     login: Login
     email: Email
     password: Password
     roles: Roles

>
> In rails 2 I had to stipulate activerecord:  should I do it also w
> Rails 3 ?
>
> thansk for your feedback
>
> --
> 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]<rails-i18n%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rails-i18n?hl=en.
>
>

-- 
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.

Reply via email to