From: Shaun McDonald Date: Wed, 27 May 2009 12:57:28 +0000 (+0000) Subject: Actually set the locale from the users browser request, rather than just parsing it. X-Git-Tag: live~7339^2~71 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/4ee48d2ad971ec8133e3ca46a5df054ad8e267de?hp=7cda38bb25caf1b3700c550740b2072e59fd5bf9;ds=sidebyside Actually set the locale from the users browser request, rather than just parsing it. --- diff --git a/app/controllers/application.rb b/app/controllers/application.rb index 97332ba01..3d16ffa69 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -102,7 +102,7 @@ class ApplicationController < ActionController::Base end def set_locale - request.compatible_language_from(I18n.available_locales) + I18n.locale = request.compatible_language_from(I18n.available_locales) end def api_call_handle_error