From 6bc03625a1bea320f2dfb609d84bf6bc5bfed72a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 3 Jun 2009 12:29:26 +0000 Subject: [PATCH] Send a Content-Language header with any localised pages. --- app/controllers/application.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/application.rb b/app/controllers/application.rb index c5624db14..6ead2d668 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -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 -- 2.43.2