[refs #105] Add locale fixes
This commit is contained in:
parent
4ba268dd67
commit
bd6abf2681
|
@ -18,7 +18,7 @@ class ApplicationController < ActionController::Base
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def set_locale
|
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
|
end
|
||||||
|
|
||||||
def get_user_locale
|
def get_user_locale
|
||||||
|
|
Loading…
Reference in New Issue