summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-05-03 22:20:23 +0000
committerbwarsaw2002-05-03 22:20:23 +0000
commit768be82a82edbf32481da0e773be8efe3be9d28b (patch)
treed313257647dc9d53915c50fd621dbca0355296fd
parent16b3c60aa71fd579701ec2ebe29e481a87984d94 (diff)
downloadmailman-768be82a82edbf32481da0e773be8efe3be9d28b.tar.gz
mailman-768be82a82edbf32481da0e773be8efe3be9d28b.tar.zst
mailman-768be82a82edbf32481da0e773be8efe3be9d28b.zip
_(): If s is the empty string, just return it. Don't try to translate
it or you'll get the catalog header!
-rw-r--r--Mailman/i18n.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/i18n.py b/Mailman/i18n.py
index 749cbccb4..c515e14b4 100644
--- a/Mailman/i18n.py
+++ b/Mailman/i18n.py
@@ -52,6 +52,9 @@ if _translation is None:
def _(s):
+ if s == '':
+ return s
+ assert s
# Do translation of the given string into the current language, and do
# Ping-string interpolation into the resulting string.
#