[Spice-commits] po/POTFILES.in src/channel-main.c
Jonathon Jongsma
jjongsma at kemper.freedesktop.org
Thu Sep 1 15:39:20 UTC 2016
po/POTFILES.in | 1 +
src/channel-main.c | 9 +++++----
2 files changed, 6 insertions(+), 4 deletions(-)
New commits:
commit eece54cf67f03224cfda8128e17ffd05c9dcf557
Author: Jonathon Jongsma <jjongsma at redhat.com>
Date: Thu Aug 11 13:07:16 2016 -0500
Translate file transfer error messages
If we are to ever display error messages to a user in a UI, they need to
be translated.
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma at redhat.com>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index ad12609..db42281 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,3 +1,4 @@
+src/channel-main.c
src/channel-usbredir.c
src/desktop-integration.c
src/spice-channel.c
diff --git a/src/channel-main.c b/src/channel-main.c
index 419b0c2..26c8c6d 100644
--- a/src/channel-main.c
+++ b/src/channel-main.c
@@ -20,6 +20,7 @@
#include <math.h>
#include <spice/vd_agent.h>
#include <glib/gstdio.h>
+#include <glib/gi18n-lib.h>
#include "spice-client.h"
#include "spice-common.h"
@@ -1853,12 +1854,12 @@ static void main_agent_handle_xfer_status(SpiceMainChannel *channel,
spice_file_transfer_task_read_async(xfer_task, file_xfer_read_async_cb, xfer_op);
return;
case VD_AGENT_FILE_XFER_STATUS_CANCELLED:
- error = g_error_new(SPICE_CLIENT_ERROR, SPICE_CLIENT_ERROR_FAILED,
- "The spice agent cancelled the file transfer");
+ error = g_error_new_literal(SPICE_CLIENT_ERROR, SPICE_CLIENT_ERROR_FAILED,
+ _("The spice agent cancelled the file transfer"));
break;
case VD_AGENT_FILE_XFER_STATUS_ERROR:
- error = g_error_new(SPICE_CLIENT_ERROR, SPICE_CLIENT_ERROR_FAILED,
- "The spice agent reported an error during the file transfer");
+ error = g_error_new_literal(SPICE_CLIENT_ERROR, SPICE_CLIENT_ERROR_FAILED,
+ _("The spice agent reported an error during the file transfer"));
break;
case VD_AGENT_FILE_XFER_STATUS_SUCCESS:
break;
More information about the Spice-commits
mailing list