]> source.dussan.org Git - redmine.git/commitdiff
Fixed: Anonymous users may not see the issue list headers in the correct language.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 Feb 2008 14:14:18 +0000 (14:14 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 Feb 2008 14:14:18 +0000 (14:14 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1131 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/application.rb

index f4883cf52ee98d736e481a2fa218e76033dffce2..a6d881ff3ea90a683af783c341bb6423d8f29704 100644 (file)
@@ -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