Send a Content-Language header with any localised pages.

This commit is contained in:
Tom Hughes 2009-06-03 12:29:26 +00:00
parent b7aa25947e
commit 6bc03625a1

View 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