summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-02-28 21:32:20 +0000
committerbwarsaw2002-02-28 21:32:20 +0000
commit0d8c5db06ce942f2e9488435d93592e9d5e010e9 (patch)
tree8a99cc1c11ed0f5a00a37904811bd59ed83f4549
parentbda80de1b5439e741661045c56ba6041bb4f23cf (diff)
downloadmailman-0d8c5db06ce942f2e9488435d93592e9d5e010e9.tar.gz
mailman-0d8c5db06ce942f2e9488435d93592e9d5e010e9.tar.zst
mailman-0d8c5db06ce942f2e9488435d93592e9d5e010e9.zip
main(): Pass the list's preferred language to the UserNotification
constructor so that the message gets the proper charset settings.
-rwxr-xr-xcron/checkdbs7
1 files changed, 4 insertions, 3 deletions
diff --git a/cron/checkdbs b/cron/checkdbs
index 721a499e9..04a813a82 100755
--- a/cron/checkdbs
+++ b/cron/checkdbs
@@ -1,6 +1,6 @@
#! @PYTHON@
#
-# Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc.
+# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -64,10 +64,11 @@ def main():
'adminDB' : mlist.GetScriptURL('admindb', absolute=1),
'real_name': realname,
}, mlist=mlist)
- text = text + '\n' + pending_requests(mlist)
+ text += '\n' + pending_requests(mlist)
subject = _('%(count)d %(realname)s moderator request(s) waiting')
admin = mlist.GetAdminEmail()
- msg = Message.UserNotification(admin, admin, subject, text)
+ msg = Message.UserNotification(admin, admin, subject, text,
+ mlist.preferred_language)
msg.send(mlist, **{'tomoderators': 1})