X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1368f194da3834559c195e6a9e269cd4cb580437..25d0017b18773458529275d2f60f2599ee03a633:/app/controllers/application_controller.rb diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 00104b0a1..0d6cdea64 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -110,9 +110,8 @@ class ApplicationController < ActionController::Base end end - I18n.locale = request.preferred_language_from(I18n.available_locales) || - request.compatible_language_from(I18n.available_locales) - logger.info("Select #{I18n.locale} matching #{request.user_preferred_languages.join(',')} against #{I18n.available_locales.join(',')}") + I18n.locale = request.compatible_language_from(I18n.available_locales) + response.headers['Content-Language'] = I18n.locale.to_s end