diff options
| author | bwarsaw | 2001-08-17 05:44:43 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-08-17 05:44:43 +0000 |
| commit | 16019ffffdd20fff1596b82569626d35984c3a55 (patch) | |
| tree | a557690922b9b294d21dfd728a47418165f0daa8 /Mailman/Cgi/subscribe.py | |
| parent | 260462546ad13795b0d1db55a61224ec51d2b596 (diff) | |
| download | mailman-16019ffffdd20fff1596b82569626d35984c3a55.tar.gz mailman-16019ffffdd20fff1596b82569626d35984c3a55.tar.zst mailman-16019ffffdd20fff1596b82569626d35984c3a55.zip | |
Convert lots of split-line strings to triple-quoted strings. Yes,
this is ugly, but it makes the job much easier for translators of
certain languages.
Also say "list moderator" instead of "list administrator".
Diffstat (limited to 'Mailman/Cgi/subscribe.py')
| -rw-r--r-- | Mailman/Cgi/subscribe.py | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/Mailman/Cgi/subscribe.py b/Mailman/Cgi/subscribe.py index 89a2fb203..c2ec0a1c5 100644 --- a/Mailman/Cgi/subscribe.py +++ b/Mailman/Cgi/subscribe.py @@ -163,34 +163,31 @@ def process_form(mlist, doc, cgidata, lang): # check for all the errors that mlist.AddMember can throw # options on the web page for this cgi except Errors.MMBadEmailError: - results += (_("Mailman won't accept the given email " - "address as a valid address. (Does it " - "have an @ in it???)<p>")) + results += (_("""\ +Mailman won't accept the given email address as a valid address. +(E.g it must have an @ in it.)<p>""")) except Errors.MMListError: - results += (_("The list is not fully functional, and " - "can not accept subscription requests.<p>")) + results += (_("""\ +The list is not fully functional, and can not accept subscription +requests.<p>""")) except Errors.MMSubscribeNeedsConfirmation: - results += (_("Confirmation from your email address is " - "required, to prevent anyone from " - "subscribing you without permission. " - "Instructions are being " - "sent to you at %(email)s. Please note your " - "subscription will not start until you " - "confirm your subscription.")) - + results += (_("""\ +Confirmation from your email address is required, to prevent anyone from +subscribing you without permission. Instructions are being sent to you at +%(email)s. Please note your subscription will not start until you confirm your +subscription.""")) except Errors.MMNeedApproval, x: # We need to interpolate into x realname = mlist.real_name x = _(x) - results += (_("Subscription was <em>deferred</em> " - "because %(x)s. Your request has been " - "forwarded to the list administrator. " - "You will receive email informing you " - "of the moderator's decision when they " - "get to your request.<p>")) + results += (_("""\ +Subscription was <em>deferred</em> because %(x)s. Your request has been +forwarded to the list moderator. You will receive email informing you of +the moderator's decision when they get to your request.<p>""")) except Errors.MMHostileAddress: - results += (_("Your subscription is not allowed because " - "the email address you gave is insecure.<p>")) + results += (_("""\ +Your subscription is not allowed because the email address you gave is +insecure.<p>""")) except Errors.MMAlreadyAMember: results += _("You are already subscribed!<p>") # |
