Commit 14b3d6d0 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixed: Anonymous users may not see the issue list headers in the correct language.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1131 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 4155c972
......@@ -65,7 +65,7 @@ class ApplicationController < ActionController::Base
elsif request.env['HTTP_ACCEPT_LANGUAGE']
accept_lang = parse_qvalues(request.env['HTTP_ACCEPT_LANGUAGE']).first.split('-').first
if accept_lang and !accept_lang.empty? and GLoc.valid_languages.include? accept_lang.to_sym
accept_lang
User.current.language = accept_lang
end
end
rescue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment