From 82c71c4aa5ca9f9ad4463b2697bbab98a792949c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 28 Nov 1998 15:51:44 +0000 Subject: Internationalization fix. svn path=/trunk/; revision=2218 --- sink.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'sink.c') diff --git a/sink.c b/sink.c index d0081a88..e7ec4121 100644 --- a/sink.c +++ b/sink.c @@ -559,6 +559,13 @@ int open_sink(struct query *ctl, struct msgblk *msg, * This is a potential problem if the MTAs further upstream * didn't pass canonicalized From/Return-Path lines, *and* the * local SMTP listener insists on them. + * + * Note: send_bouncemail message strings are not made subject + * to gettext translation because (a) they're going to be + * embedded in a text/plain 7bit part, and (b) they're + * going to be associated with listener error-response + * messages, which are probably in English (none of the + * MTAs I know about are internationalized). */ ap = (msg->return_path[0]) ? msg->return_path : user; if (SMTP_from(ctl->smtp_socket, ap, options) != SM_OK) @@ -587,7 +594,7 @@ int open_sink(struct query *ctl, struct msgblk *msg, * */ send_bouncemail(msg, - _("We do not accept mail from you.)\r\n"), + "We do not accept mail from you.\r\n", 1, responses); return(PS_REFUSED); } @@ -625,7 +632,7 @@ int open_sink(struct query *ctl, struct msgblk *msg, * and allow it to be deleted. */ send_bouncemail(msg, - _("This message was too large.\r\n"), + "This message was too large.\r\n", 1, responses); return(PS_REFUSED); @@ -635,13 +642,13 @@ int open_sink(struct query *ctl, struct msgblk *msg, * cover his tracks. */ send_bouncemail(msg, - _("Invalid address.\r\n"), + "Invalid address.\r\n", 1, responses); return(PS_REFUSED); default: /* bounce the error back to the sender */ send_bouncemail(msg, - _("General SMTP/ESMTP error.\r\n"), + "General SMTP/ESMTP error.\r\n", 1, responses); return(PS_REFUSED); } @@ -829,7 +836,7 @@ int close_sink(struct query *ctl, struct msgblk *msg, flag forward) * it won't be re-forwarded on subsequent poll cycles. */ return(send_bouncemail(msg, - _("LSMTP partial delivery failure.\r\n"), + "LSMTP partial delivery failure.\r\n", errors, responses)); } } -- cgit v1.2.3