AutoCommit Son Aug 30 18:03:01 CEST 2015
This commit is contained in:
@@ -16,7 +16,13 @@
|
||||
|
||||
end
|
||||
end
|
||||
I18n.locale = session[:locale] || request.env['HTTP_ACCEPT_LANGUAGE'].scan(/^de|en/).first || I18n.default_locale
|
||||
http_header=request.env['HTTP_ACCEPT_LANGUAGE']
|
||||
unless http_header.nil?
|
||||
ht= http_header.scan(/^de|en/).first
|
||||
else
|
||||
ht=nil
|
||||
end
|
||||
I18n.locale = session[:locale] || ht || I18n.default_locale
|
||||
|
||||
|
||||
session[:locale] = I18n.locale
|
||||
|
||||
Reference in New Issue
Block a user