projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2857918
)
Add some logging to help diagnose changeset feed locale issue
author
Tom Hughes
<tom@compton.nu>
Wed, 16 Nov 2011 08:56:35 +0000
(08:56 +0000)
committer
Tom Hughes
<tom@compton.nu>
Wed, 16 Nov 2011 08:56:35 +0000
(08:56 +0000)
app/controllers/application_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/application_controller.rb
b/app/controllers/application_controller.rb
index f07cacbd6cb121f96a29857781bd795875190f9c..0412080fa3a9109faf02dc2e27fe7b0fc297332d 100644
(file)
--- 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