From bd6abf2681dc26fad6a4974b4f2b3f45692e131b Mon Sep 17 00:00:00 2001 From: "konstantin.grabar" Date: Thu, 19 Jan 2012 00:58:38 +0400 Subject: [PATCH] [refs #105] Add locale fixes --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index b304e8821..494f54ae1 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -18,7 +18,7 @@ class ApplicationController < ActionController::Base protected def set_locale - I18n.locale = check_locale( get_user_locale || request.env['HTTP_ACCEPT_LANGUAGE'].to_sym ) + I18n.locale = check_locale( get_user_locale || request.env['HTTP_ACCEPT_LANGUAGE'] ) end def get_user_locale