From: Tom Hughes Date: Wed, 3 Jun 2009 12:29:26 +0000 (+0000) Subject: Send a Content-Language header with any localised pages. X-Git-Tag: live~7218 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/6bc03625a1bea320f2dfb609d84bf6bc5bfed72a Send a Content-Language header with any localised pages. --- 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