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? I couldn''t find anything so far.. Cheers L. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On May 18, 11:17 am, lukas <lukas.zielin...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 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 at http://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 ? Or do I have to work with the directory structure as described in your link? On May 18, 12:47 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On May 18, 11:17 am, lukas <lukas.zielin...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On May 18, 11:52 am, lukas <lukas.zielin...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 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.ymlMy 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 <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > > > On May 18, 11:17 am, lukas <lukas.zielin...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Yes, I think you''re right about the meaninglessness of the filename. Okay, another problem solved. Thanks, Fred! :) On May 18, 1:03 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On May 18, 11:52 am, lukas <lukas.zielin...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 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 <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > > On May 18, 11:17 am, lukas <lukas.zielin...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm. > > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.