web/request.py
branch3.5
changeset 3275 5247789df541
parent 3094 978ed8c2c0e4
child 3293 69c0ba095536
child 3816 37b376bb4088
--- a/web/request.py	Wed Sep 16 21:23:35 2009 +0200
+++ b/web/request.py	Wed Sep 16 21:29:17 2009 +0200
@@ -114,7 +114,8 @@
         self.set_default_language(vreg)
 
     def set_language(self, lang):
-        self._ = self.__ = self.translations[lang]
+        gettext, self.pgettext = self.translations[lang]
+        self._ = self.__ = gettext
         self.lang = lang
         self.cnx.set_session_props(lang=lang)
         self.debug('request language: %s', lang)