On May 18, 11:52 am, lukas <[email protected]> wrote:
> Ah great, thanks. I just realized it works when I simply split them up
> like this:
>
> en_forms.yml
> en_labels.yml
> etc.
>
> however,
>
> will rails automatically know which one to pic if I f.example add
> french like this:
>
> fr_forms.yml
> fr_labels.yml

My understanding is that rails doesn't care in the slightest what the
files are called, it's only the data in side that matters ie putting

en:
  title: 'Hello world'

in fr.yml

and

fr:
  title: 'Bonjour'

in en.yml
 would be fine (although rather confusing)

Fred


>
> ?
>
> Or do I have to work with the directory structure as described in your
> link?
>
> On May 18, 12:47 pm, Frederick Cheung <[email protected]>
> wrote:
>
>
>
>
>
> > On May 18, 11:17 am, lukas <[email protected]> wrote:
>
> > > Hello,
>
> > > I have a problem with my en.yml file in my Rails project: It's getting
> > > waaaaay too big.
> > > Is it possible to split the file up into multiple files, like
> > > en_labels.yml, en_hints.yml and so forth?
>
> > Take a look 
> > athttp://guides.rubyonrails.org/i18n.html#organization-of-locale-files
>
> > Fred
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Ruby on Rails: Talk" 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 
> > athttp://groups.google.com/group/rubyonrails-talk?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" 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 
> athttp://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to