Log locale selection
authorTom Hughes <tom@compton.nu>
Tue, 14 Feb 2012 14:57:29 +0000 (14:57 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 14 Feb 2012 14:57:29 +0000 (14:57 +0000)
app/controllers/application_controller.rb

index a90a295..6e9be2d 100644 (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