Tuesday, April 19, 2011

[Rails] my app ignore default_locale

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@googlegroups.com.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate