summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/options.py
diff options
context:
space:
mode:
authorbwarsaw2001-07-12 13:44:20 +0000
committerbwarsaw2001-07-12 13:44:20 +0000
commitc1a3a4c03e6bee78e26c269796ea623026fed512 (patch)
tree73cee58c346220f0908b9dfc4364da9a4186f269 /Mailman/Cgi/options.py
parentfd27ff1b4e8d54e79ba1ce7516d9c4a5780a68d1 (diff)
downloadmailman-c1a3a4c03e6bee78e26c269796ea623026fed512.tar.gz
mailman-c1a3a4c03e6bee78e26c269796ea623026fed512.tar.zst
mailman-c1a3a4c03e6bee78e26c269796ea623026fed512.zip
Diffstat (limited to 'Mailman/Cgi/options.py')
-rw-r--r--Mailman/Cgi/options.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py
index 849f261ba..3aa2ac623 100644
--- a/Mailman/Cgi/options.py
+++ b/Mailman/Cgi/options.py
@@ -587,8 +587,11 @@ def loginpage(mlist, doc, user, cgidata):
def add_error_message(doc, errmsg, tag='Error: ', *args):
+ # Don't translate the tag if it's the empty string
+ if tag:
+ tag = _(tag)
doc.AddItem(Header(3, Bold(FontAttr(
- _(tag), color=mm_cfg.WEB_ERROR_COLOR, size="+2")).Format() +
+ tag, color=mm_cfg.WEB_ERROR_COLOR, size="+2")).Format() +
Italic(errmsg % args).Format()))