changeset 367:cee1e71502a7

action.CheckTranslation: removed dependency to i18n for getting the user language
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 18 Apr 2009 20:10:12 +0200
parents c53c862bd556
children f31618787bec
files data/plugin/action/CheckTranslation.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/CheckTranslation.py	Wed Apr 15 16:56:12 2009 +0200
+++ b/data/plugin/action/CheckTranslation.py	Sat Apr 18 20:10:12 2009 +0200
@@ -10,7 +10,6 @@
 """
 
 from MoinMoin.i18n import strings
-from MoinMoin import i18n
 from MoinMoin.Page import Page
 from MoinMoin.util.dataset import TupleDataset, Column
 from MoinMoin.widget.browser import DataBrowserWidget
@@ -27,7 +26,7 @@
 
     SystemPages = getattr(strings, selection)
 
-    users_lang = i18n.requestLanguage(request)
+    users_lang = request.user.valid and request.user.language or 'en'
     if users_lang == "en":
         msg = _("Please select an other language than english in your settings for this action")
         request.theme.add_msg(msg, "err")