From 4ee48d2ad971ec8133e3ca46a5df054ad8e267de Mon Sep 17 00:00:00 2001 From: Shaun McDonald Date: Wed, 27 May 2009 12:57:28 +0000 Subject: [PATCH 1/1] Actually set the locale from the users browser request, rather than just parsing it. --- app/controllers/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2