X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Fcommon%2Fnntp.c;h=6bcc83ecaea3b7f3f4ecc1b3d583643991b76ab1;hp=b44bad8fa64de9d8002fb0fea65cbe7fcc4ac929;hb=7f45cb9804115d192ec2abbada2afb81c1f2e395;hpb=4125f5a2645d2ba3cb4056f92371fba799d34dff diff --git a/src/common/nntp.c b/src/common/nntp.c index b44bad8fa..6bcc83eca 100644 --- a/src/common/nntp.c +++ b/src/common/nntp.c @@ -65,7 +65,7 @@ Session *nntp_session_new(const gchar *server, gushort port, gchar *buf, SockInfo *sock; if ((sock = sock_connect(server, port)) == NULL) { - log_warning("Can't connect to NNTP server: %s:%d\n", + log_warning(_("Can't connect to NNTP server: %s:%d\n"), server, port); return NULL; } @@ -169,7 +169,7 @@ gint nntp_group(NNTPSession *session, const gchar *group, if (sscanf(buf, "%d %d %d %d", &resp, num, first, last) != 4) { - log_warning("protocol error: %s\n", buf); + log_warning(_("protocol error: %s\n"), buf); return NN_PROTOCOL; } @@ -192,7 +192,7 @@ gint nntp_get_article(NNTPSession *session, const gchar *cmd, gint num, extract_parenthesis(buf, '<', '>'); if (buf[0] == '\0') { - log_warning("protocol error\n"); + log_warning(_("protocol error\n")); return NN_PROTOCOL; } *msgid = g_strdup(buf); @@ -232,13 +232,13 @@ gint nntp_next(NNTPSession *session, gint *num, gchar **msgid) return ok; if (sscanf(buf, "%d %d", &resp, num) != 2) { - log_warning("protocol error: %s\n", buf); + log_warning(_("protocol error: %s\n"), buf); return NN_PROTOCOL; } extract_parenthesis(buf, '<', '>'); if (buf[0] == '\0') { - log_warning("protocol error\n"); + log_warning(_("protocol error\n")); return NN_PROTOCOL; } *msgid = g_strdup(buf); @@ -288,7 +288,7 @@ gint nntp_post(NNTPSession *session, FILE *fp) msg = get_outgoing_rfc2822_str(fp); if (sock_write_all(SESSION(session)->sock, msg, strlen(msg)) < 0) { - log_warning("Error occurred while posting\n"); + log_warning(_("Error occurred while posting\n")); g_free(msg); return NN_SOCKET; } @@ -366,7 +366,7 @@ static gint nntp_gen_send(SockInfo *sock, const gchar *format, ...) strcat(buf, "\r\n"); if (sock_write_all(sock, buf, strlen(buf)) < 0) { - log_warning("Error occurred while sending command\n"); + log_warning(_("Error occurred while sending command\n")); return NN_SOCKET; }