changeset 2942:1906e0e91f0c

Use user's language setting to generate notification topic, not http request
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Wed, 07 Nov 2007 19:19:43 +0100
parents dc6c37c55565
children fa428b3c7d64
files MoinMoin/events/emailnotify.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/events/emailnotify.py	Mon Nov 05 23:19:49 2007 +0100
+++ b/MoinMoin/events/emailnotify.py	Wed Nov 07 19:19:43 2007 +0100
@@ -32,8 +32,8 @@
     @rtype: dict
 
     """
-    _ = request.getText
     change = notification.page_change_message("page_changed", request, page, email_lang, comment=comment, revisions=revisions)
+    _ = lambda s, formatted=True, r=request, l=email_lang: r.getText(s, formatted=formatted, lang=l)
 
     subject = _('[%(sitename)s] %(trivial)sUpdate of "%(pagename)s" by %(username)s', formatted=False) % {
             'trivial': (trivial and _("Trivial ", formatted=False)) or "",