projects
/
claws.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
revise 'translatable string' policy
[claws.git]
/
src
/
common
/
nntp.c
diff --git
a/src/common/nntp.c
b/src/common/nntp.c
index b44bad8fa64de9d8002fb0fea65cbe7fcc4ac929..6bcc83ecaea3b7f3f4ecc1b3d583643991b76ab1 100644
(file)
--- 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) {
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;
}
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) {
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;
}
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') {
extract_parenthesis(buf, '<', '>');
if (buf[0] == '\0') {
- log_warning(
"protocol error\n"
);
+ log_warning(
_("protocol error\n")
);
return NN_PROTOCOL;
}
*msgid = g_strdup(buf);
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) {
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') {
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);
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) {
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;
}
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) {
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;
}
return NN_SOCKET;
}