From ee26e988186697762896d296fee702e75f483c28 Mon Sep 17 00:00:00 2001 From: Toni Gundogdu Date: Sat, 15 Sep 2012 20:53:44 +0300 Subject: [PATCH] curl/verify.c: gettextize --- src/curl/verify.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/curl/verify.c b/src/curl/verify.c index efa4080..bcb2bc1 100644 --- a/src/curl/verify.c +++ b/src/curl/verify.c @@ -19,8 +19,9 @@ #include "config.h" -#include +#include #include +#include #include "quvi.h" /* -- */ @@ -45,6 +46,8 @@ static void _set_opts(_quvi_net_t n, _c_temp_t t, CURL *c) c_autoproxy(n->handle.quvi, n->url.addr->str); } +static const gchar *_EOK = N_("The server responded with the code %03ld"); + static QuviError _verify(_quvi_net_t n, CURL *c) { CURLcode curlcode; @@ -71,7 +74,8 @@ static QuviError _verify(_quvi_net_t n, CURL *c) } else { - g_string_printf(n->status.errmsg, "server returned HTTP/%03ld", + g_string_printf(n->status.errmsg, + g_dgettext(GETTEXT_PACKAGE, _EOK), n->status.resp_code); rc = QUVI_ERROR_CALLBACK; } -- 2.11.4.GIT