From 4408416b62a67bab980f9fdec3e4be04a7680039 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 16 Nov 2011 08:56:35 +0000 Subject: [PATCH] Add some logging to help diagnose changeset feed locale issue --- app/controllers/application_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index f07cacbd6..0412080fa 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -249,6 +249,8 @@ class ApplicationController < ActionController::Base I18n.locale = request.compatible_language_from(I18n.available_locales) + logger.info "Selected locale #{I18n.locale} from #{request.user_preferred_languages.inspect}" + response.headers['Content-Language'] = I18n.locale.to_s end -- 2.43.2