[refs #443] fixed setting language
This commit is contained in:
parent
9e3afa8fc0
commit
59acdf4f44
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue