From 319fa1c019f3a5ea31fb7eb33ecb412861fa9ed4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 15 Mar 2002 19:17:20 +0000 Subject: Internationalization fix. svn path=/trunk/; revision=3601 --- driver.c | 2 +- smtp.c | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/driver.c b/driver.c index a94c2445..d1a7bb4e 100644 --- a/driver.c +++ b/driver.c @@ -1311,7 +1311,7 @@ is restored.")); */ if (count > INT_MAX/sizeof(int)) { - report(stderr, "bogus message count!"); + report(stderr, GT_("bogus message count!")); return(PS_PROTOCOL); } diff --git a/smtp.c b/smtp.c index 68908412..618b294d 100644 --- a/smtp.c +++ b/smtp.c @@ -15,6 +15,7 @@ #include "socket.h" #include "smtp.h" #include "config.h" +#include "i18n.h" struct opt { @@ -73,7 +74,7 @@ static void SMTP_auth(int sock, char *username, char *password, char *buf) memset(digest, 0, 16); if (outlevel >= O_MONITOR) - report(stdout, "ESMTP CRAM-MD5 Authentication...\n"); + report(stdout, GT_("ESMTP CRAM-MD5 Authentication...\n")); SockPrintf(sock, "AUTH CRAM-MD5\r\n"); SockRead(sock, smtp_response, sizeof(smtp_response) - 1); strncpy(tmp, smtp_response, sizeof(tmp)); @@ -82,7 +83,7 @@ static void SMTP_auth(int sock, char *username, char *password, char *buf) SockPrintf(sock, "*\r\n"); SockRead(sock, smtp_response, sizeof(smtp_response) - 1); if (outlevel >= O_MONITOR) - report(stdout, "Server rejected the AUTH command.\n"); + report(stdout, GT_("Server rejected the AUTH command.\n")); return; } @@ -90,7 +91,7 @@ static void SMTP_auth(int sock, char *username, char *password, char *buf) p++; from64tobits(b64buf, p, sizeof(b64buf)); if (outlevel >= O_DEBUG) - report(stdout, "Challenge decoded: %s\n", b64buf); + report(stdout, GT_("Challenge decoded: %s\n"), b64buf); hmac_md5(password, strlen(password), b64buf, strlen(b64buf), digest, sizeof(digest)); for (c = 0; c < 16; c++) @@ -109,7 +110,7 @@ static void SMTP_auth(int sock, char *username, char *password, char *buf) else if (strstr(buf, "PLAIN")) { int len; if (outlevel >= O_MONITOR) - report(stdout, "ESMTP PLAIN Authentication...\n"); + report(stdout, GT_("ESMTP PLAIN Authentication...\n")); #ifdef HAVE_SNPRINTF snprintf(tmp, sizeof(tmp), #else @@ -129,7 +130,7 @@ static void SMTP_auth(int sock, char *username, char *password, char *buf) } else if (strstr(buf, "LOGIN")) { if (outlevel >= O_MONITOR) - report(stdout, "ESMTP LOGIN Authentication...\n"); + report(stdout, GT_("ESMTP LOGIN Authentication...\n")); SockPrintf(sock, "AUTH LOGIN\r\n"); SockRead(sock, smtp_response, sizeof(smtp_response) - 1); strncpy(tmp, smtp_response, sizeof(tmp)); @@ -138,7 +139,7 @@ static void SMTP_auth(int sock, char *username, char *password, char *buf) SockPrintf(sock, "*\r\n"); SockRead(sock, smtp_response, sizeof(smtp_response) - 1); if (outlevel >= O_MONITOR) - report(stdout, "Server rejected the AUTH command.\n"); + report(stdout, GT_("Server rejected the AUTH command.\n")); return; } -- cgit v1.2.3