Hello everyone
i use
rails (= 3.0.3)
i18n (0.5.0)
in development all fine
in production i get translation missing
i found temp solution to change
config.cache_classes = false
in production but i wouldn't like turn off caching...
my locale is :ru
ls -l config/locales/
итого 24
-rw-rw-r-- 1 dnevnik dnevnik 1850 Янв 15 00:18 devise.en.yml
-rw-rw-r-- 1 dnevnik dnevnik 2717 Янв 15 00:18 devise.ru.yml
-rw-rw-r-- 1 dnevnik dnevnik 305 Янв 15 00:18 en.yml
-rw-rw-r-- 1 dnevnik dnevnik 678 Янв 15 00:18 netzke.ru.yml
-rw-rw-r-- 1 dnevnik dnevnik 6529 Янв 15 00:18 ru.yml
grep i18n config/application.rb
config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.
{rb,yml}').to_s]
config.i18n.default_locale = :ru
Any suggestions?
on 2011-01-15 14:13
on 2011-02-24 14:53
Exactly the same thing is happening with me. Turning off cache also clears the problem. I tried clearing the cache using Rails.cache.clear withing a initializer, but did't produce any results. Still no clue on what's causing it. Any ideas? cheers Diogo
on 2011-02-24 15:03
Looks like this guy got to the bottom of it. His solution worked for me, altought I did make a small change on the load path, to include all my locales, just in case. http://stackoverflow.com/questions/4884970/mixed-l... Cheers Diogo
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.