Rails: How should Phusion Passenger and I18n.locale behave?
问题 I have a Rails 2.2 web app running on Passenger / REE I set the default locale in config/environment.rb config.i18n.default_locale = 'en-GB' The first request seems to have no locale set in I18n.locale If I the visit a page with a before_filter that sets I18n.locale every subsequent visit to any controller even if it doesn't have that same before_filter setting the I18n.locale get an I18n.locale of whatever was set, say, en-US . On Mongrel with the same code each request gets a locale of en