]> git.openstreetmap.org Git - rails.git/commitdiff
Send a Content-Language header with any localised pages.
authorTom Hughes <tom@compton.nu>
Wed, 3 Jun 2009 12:29:26 +0000 (12:29 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 3 Jun 2009 12:29:26 +0000 (12:29 +0000)
app/controllers/application.rb

index c5624db146b4cdbfb86d03f84308c2d6f721f96e..6ead2d6685f260f32665bd321958ad5b81dfd66d 100644 (file)
@@ -112,6 +112,8 @@ class ApplicationController < ActionController::Base
     end
 
     I18n.locale = request.compatible_language_from(I18n.available_locales)
+
+    response.headers['Content-Language'] = I18n.locale
   end
 
   def api_call_handle_error