diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-02-10 14:14:18 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-02-10 14:14:18 +0000 |
commit | 14b3d6d0120549cd7f36c395bedc39272c322f9a (patch) | |
tree | 731317637687abf9f0532341e4fbd9c453dd2fa8 /app/controllers | |
parent | 4155c97222cea69406060979efca3ebaaed9dcec (diff) | |
download | redmine-14b3d6d0120549cd7f36c395bedc39272c322f9a.tar.gz redmine-14b3d6d0120549cd7f36c395bedc39272c322f9a.zip |
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
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application.rb b/app/controllers/application.rb index f4883cf52..a6d881ff3 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -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 |