I have an application that uses I18n, but in the first deployment, I
don't want to enable different languages per user/request because
there are very few users who all speak german).
Therefore I have config.i18n.default_locale = :de in config/
I have no code whatsoever to set/change I18n.locale in my app.
In development environment, it works as expected: the application is
$ rails c
Loading development environment (Rails 3.0.0.rc)
But in production, the application is in english, although
default_locale is correctly set:
$ RAILS_ENV=production rails c
Loading production environment (Rails 3.0.0.rc)
Does anyone have an idea what might cause this, or how to change?
I have a completely unchanged config/environments/production.rb, but I
also tested with
config.i18n.fallbacks = false
with no change.
Some system information:
I18n gem is version 0.4.1. Ruby is:
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
but it is exactly the same on 1.9.2 p0.
Mac OS X 10.6.4, although the language of my account is English, I get
But I get the same behavior on Debian 5, with LANG=en_US.UTF-8