[Xfce4-commits] <xfce4-mailwatch-plugin:master> Fix gettext translatable string
Ján SuÄan
noreply at xfce.org
Sat Aug 31 19:50:01 CEST 2013
Updating branch refs/heads/master
to fc9c9f704b72c5741d3cce2a977b023b5e9a0449 (commit)
from a3059a222c798e31530d9abdea0075cd89449d4e (commit)
commit fc9c9f704b72c5741d3cce2a977b023b5e9a0449
Author: Ján Sučan <sucan at runbox.com>
Date: Sat Aug 31 19:25:18 2013 +0200
Fix gettext translatable string
gettext does not support macros for type specifiers other than ISO C99
inttypes.
Divide string construction into the type specifier dependent code and
the type specifier independent code.
libmailwatch-core/mailwatch-net-conn.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libmailwatch-core/mailwatch-net-conn.c b/libmailwatch-core/mailwatch-net-conn.c
index 454f6ed..9e589a6 100644
--- a/libmailwatch-core/mailwatch-net-conn.c
+++ b/libmailwatch-core/mailwatch-net-conn.c
@@ -965,9 +965,11 @@ xfce_mailwatch_net_conn_recv_line(XfceMailwatchNetConn *net_conn,
if((gint)buf_len < p - (gchar *)net_conn->buffer) {
if(error) {
+ gchar *bl = g_strdup_printf("%" G_GSIZE_FORMAT, buf_len);
g_set_error(error, XFCE_MAILWATCH_ERROR, 0,
- _("Buffer is not large enough to hold a full line (%" G_GSIZE_FORMAT " < %d)"),
- buf_len, (gint)(p - (gchar *)net_conn->buffer));
+ _("Buffer is not large enough to hold a full line (%s < %d)"),
+ bl, (gint)(p - (gchar *)net_conn->buffer));
+ g_free(bl);
}
return -1;
}
More information about the Xfce4-commits
mailing list