aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-03-15 19:17:20 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-03-15 19:17:20 +0000
commit319fa1c019f3a5ea31fb7eb33ecb412861fa9ed4 (patch)
tree73db2af15b6f99ba85207903530badb7393fcdd6
parentaff23c2545c15943f95d93fd47df8902e38d7412 (diff)
downloadfetchmail-319fa1c019f3a5ea31fb7eb33ecb412861fa9ed4.tar.gz
fetchmail-319fa1c019f3a5ea31fb7eb33ecb412861fa9ed4.tar.bz2
fetchmail-319fa1c019f3a5ea31fb7eb33ecb412861fa9ed4.zip
Internationalization fix.
svn path=/trunk/; revision=3601
-rw-r--r--driver.c2
-rw-r--r--smtp.c13
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;
}