In application.rb i defined: config.i18n.default_locale = :ru But all texts on the site are in English. Typus interface is in English too and when I delete config/locales/en.yml it prints can not load translations from /home/kir/rails/tftc/config/locales/en.yml My server: Apache and Passenger 3. Apache config: <VirtualHost *:80> ServerName mysite.com DocumentRoot /home/user/rails/tftc/public RailsEnv development <Directory /home/user/rails/tftc/public> AllowOverride all Options -MultiViews </Directory> </VirtualHost> Why Rails 3 ignore the default_locale option? -- 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.
If I run the app via `rails server` everything is ok... On Apr 19, 10:20 pm, iEmpire <razor....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> In application.rb i defined: > > config.i18n.default_locale = :ru > But all texts on the site are in English. Typus interface is in > English too and when I delete config/locales/en.yml it prints can not > load translations from /home/kir/rails/tftc/config/locales/en.yml > > My server: Apache and Passenger 3. > > Apache config: > <VirtualHost *:80> > ServerName mysite.com > DocumentRoot /home/user/rails/tftc/public > RailsEnv development > <Directory /home/user/rails/tftc/public> > AllowOverride all > Options -MultiViews > </Directory> > </VirtualHost> > Why Rails 3 ignore the default_locale option?-- 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 20 Apr 2011, at 05:15, iEmpire <razor.psp-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> If I run the app via `rails server` everything is ok...Did you restart passenger (by touching your_app/tmp/restart.txt) after making the change Fred> > On Apr 19, 10:20 pm, iEmpire <razor....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> In application.rb i defined: >> >> config.i18n.default_locale = :ru >> But all texts on the site are in English. Typus interface is in >> English too and when I delete config/locales/en.yml it prints can not >> load translations from /home/kir/rails/tftc/config/locales/en.yml >> >> My server: Apache and Passenger 3. >> >> Apache config: >> <VirtualHost *:80> >> ServerName mysite.com >> DocumentRoot /home/user/rails/tftc/public >> RailsEnv development >> <Directory /home/user/rails/tftc/public> >> AllowOverride all >> Options -MultiViews >> </Directory> >> </VirtualHost> >> Why Rails 3 ignore the default_locale option? > > -- > 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. >-- 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.
Yes. Also I tried to run my app on another server with simmilar configuration, but no result. On Apr 20, 11:42 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 20 Apr 2011, at 05:15, iEmpire <razor....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > If I run the app via `rails server` everything is ok... > > Did you restart passenger (by touching your_app/tmp/restart.txt) after making the change > > Fred > > > > > > > > > > > On Apr 19, 10:20 pm, iEmpire <razor....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> In application.rb i defined: > > >> config.i18n.default_locale = :ru > >> But all texts on the site are in English. Typus interface is in > >> English too and when I delete config/locales/en.yml it prints can not > >> load translations from /home/kir/rails/tftc/config/locales/en.yml > > >> My server: Apache and Passenger 3. > > >> Apache config: > >> <VirtualHost *:80> > >> ServerName mysite.com > >> DocumentRoot /home/user/rails/tftc/public > >> RailsEnv development > >> <Directory /home/user/rails/tftc/public> > >> AllowOverride all > >> Options -MultiViews > >> </Directory> > >> </VirtualHost> > >> Why Rails 3 ignore the default_locale option? > > > -- > > 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 at http://groups.google.com/group/rubyonrails-talk?hl=en.
Just for future generations: it''s draper''s issue — https://github.com/jcasimir/draper/issues/202 Took me two days. iEmpire wrote in post #993970:> Yes. Also I tried to run my app on another server with simmilar > configuration, but no result. > > On Apr 20, 11:42am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>-- Posted via http://www.ruby-forum.com/. -- 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.