Log locale selection

This commit is contained in:
Tom Hughes 2012-02-14 14:57:29 +00:00
parent a3c83f8623
commit 101ee6ade2

View file

@ -250,6 +250,8 @@ class ApplicationController < ActionController::Base
I18n.locale = request.compatible_language_from(I18n.available_locales) || I18n.default_locale
logger.info "Selected locale #{I18n.locale} from #{request.user_preferred_languages.inspect}"
response.headers['Content-Language'] = I18n.locale.to_s
end