[refs #443] fixed setting language

This commit is contained in:
Alexander Machehin 2012-05-17 16:28:58 +06:00
parent 9e3afa8fc0
commit 59acdf4f44
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class ApplicationController < ActionController::Base
def set_locale
I18n.locale = check_locale( get_user_locale ||
request.env['HTTP_ACCEPT_LANGUAGE'] ? request.env['HTTP_ACCEPT_LANGUAGE'][0,2].downcase : nil )
(request.env['HTTP_ACCEPT_LANGUAGE'] ? request.env['HTTP_ACCEPT_LANGUAGE'][0,2].downcase : nil ))
end
def get_user_locale