Thanks Krzysztof,

That's what I tested .. but it gives me an ArgumentError
------------  console --------------
$ rails c
Loading development environment (Rails 3.0.0)
ruby-1.9.2-p0 > I18n.t(:buddy)
ArgumentError: syntax error on line 43, col 3: `   common:'
        from /Users/yves/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/syck.rb:
135:in `load'

:buddy is in   config/locales/defaults/en.yml  and config/locales/
defaults/fr.yl

is there any way to check what's loaded and how ?

Erwin

On 23 sep, 20:23, Krzysztof Knapik <[email protected]> wrote:
> 2010/9/23 Erwin <[email protected]>:
>
>
>
>
>
> > [Rails 3, Ruby 1.9.2]
> > I tried to split my localizations into a structured hierarchy of
> > files :
>
> > default
> >   en.yml
> >   fr.yml
> >   de.yml
> > models
> >   users
> >     en.yml
> >     fr.yml
> >     de.yml
> > views
> >    users
> >     en.yml
> >     fr.yml
> >     de.yml
>
> > but this doesn't get loaded ?
> > I tried  config.i18n.load_path += Dir[Rails.root.join('config',
> > 'locales', '*.{rb,yml}').to_s]
>
>  config.i18n.load_path +=
> Dir[Rails.root.join('config/locales/**/*.{rb,yml}').to_s] ?

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