<div dir="ltr">ack thanks<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 18, 2015 at 5:50 PM, Christophe Fergeau <span dir="ltr"><<a href="mailto:cfergeau@redhat.com" target="_blank">cfergeau@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">These are only meant to be test tools so they don't need to be<br>
translated.<br>
---<br>
 po/POTFILES.in         |  4 ---<br>
 src/spicy-connect.c    | 15 ++++-----<br>
 src/spicy-screenshot.c | 27 +++++++---------<br>
 src/spicy-stats.c      | 15 +++------<br>
 src/spicy.c            | 86 ++++++++++++++++++++++++--------------------------<br>
 5 files changed, 64 insertions(+), 83 deletions(-)<br>
<br>
diff --git a/po/POTFILES.in b/po/POTFILES.in<br>
index 793dd78..ad12609 100644<br>
--- a/po/POTFILES.in<br>
+++ b/po/POTFILES.in<br>
@@ -3,10 +3,6 @@ src/desktop-integration.c<br>
 src/spice-channel.c<br>
 src/spice-cmdline.c<br>
 src/spice-option.c<br>
-src/spicy-screenshot.c<br>
-src/spicy-stats.c<br>
-src/spicy.c<br>
-src/spicy-connect.c<br>
 src/usb-device-manager.c<br>
 src/usb-device-widget.c<br>
 src/usbutil.c<br>
diff --git a/src/spicy-connect.c b/src/spicy-connect.c<br>
index 4fff75d..c471df5 100644<br>
--- a/src/spicy-connect.c<br>
+++ b/src/spicy-connect.c<br>
@@ -17,7 +17,6 @@<br>
 */<br>
<br>
 #include <gtk/gtk.h><br>
-#include <glib/gi18n.h><br>
 #include <gdk/gdkkeysyms.h><br>
 #include "spice-common.h"<br>
 #include "spicy-connect.h"<br>
@@ -34,9 +33,9 @@ static struct {<br>
     const char *prop;<br>
     GtkWidget *entry;<br>
 } connect_entries[] = {<br>
-    { .text = N_("Hostname"),   .prop = "host"      },<br>
-    { .text = N_("Port"),       .prop = "port"      },<br>
-    { .text = N_("TLS Port"),   .prop = "tls-port"  },<br>
+    { .text = "Hostname",   .prop = "host"      },<br>
+    { .text = "Port",       .prop = "port"      },<br>
+    { .text = "TLS Port",   .prop = "tls-port"  },<br>
 };<br>
<br>
 static gboolean can_connect(void)<br>
@@ -153,7 +152,7 @@ gboolean spicy_connect_dialog(SpiceSession *session)<br>
<br>
     /* Create the widgets */<br>
     window = GTK_WINDOW(gtk_window_new(GTK_WINDOW_TOPLEVEL));<br>
-    gtk_window_set_title(window, _("Connect to SPICE"));<br>
+    gtk_window_set_title(window, "Connect to SPICE");<br>
     gtk_window_set_resizable(window, FALSE);<br>
     gtk_container_set_border_width(GTK_CONTAINER(window), 5);<br>
<br>
@@ -186,7 +185,7 @@ gboolean spicy_connect_dialog(SpiceSession *session)<br>
     gtk_box_pack_start(main_box, GTK_WIDGET(recent_box), TRUE, TRUE, 0);<br>
     gtk_container_set_border_width(GTK_CONTAINER(recent_box), 5);<br>
<br>
-    label = gtk_label_new(_("Recent connections:"));<br>
+    label = gtk_label_new("Recent connections:");<br>
     gtk_box_pack_start(recent_box, label, FALSE, TRUE, 0);<br>
     gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);<br>
<br>
@@ -194,8 +193,8 @@ gboolean spicy_connect_dialog(SpiceSession *session)<br>
     gtk_button_box_set_layout(GTK_BUTTON_BOX(button_box), GTK_BUTTONBOX_END);<br>
     gtk_box_set_spacing(button_box, 5);<br>
     gtk_container_set_border_width(GTK_CONTAINER(button_box), 5);<br>
-    connect_button = gtk_button_new_with_label(_("Connect"));<br>
-    cancel_button = gtk_button_new_with_label(_("Cancel"));<br>
+    connect_button = gtk_button_new_with_label("Connect");<br>
+    cancel_button = gtk_button_new_with_label("Cancel");<br>
     gtk_box_pack_start(button_box, cancel_button, FALSE, TRUE, 0);<br>
     gtk_box_pack_start(button_box, connect_button, FALSE, TRUE, 1);<br>
<br>
diff --git a/src/spicy-screenshot.c b/src/spicy-screenshot.c<br>
index e7835bf..d90d4e8 100644<br>
--- a/src/spicy-screenshot.c<br>
+++ b/src/spicy-screenshot.c<br>
@@ -16,7 +16,6 @@<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" rel="noreferrer" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
 #include "config.h"<br>
-#include <glib/gi18n.h><br>
<br>
 #include "spice-client.h"<br>
 #include "spice-common.h"<br>
@@ -56,7 +55,7 @@ static int write_ppm_32(void)<br>
<br>
     fp = fopen(outf,"w");<br>
     if (NULL == fp) {<br>
-       fprintf(stderr, _("%s: can't open %s: %s\n"), g_get_prgname(), outf, strerror(errno));<br>
+       fprintf(stderr, "%s: can't open %s: %s\n", g_get_prgname(), outf, strerror(errno));<br>
        return -1;<br>
     }<br>
     fprintf(fp, "P6\n%d %d\n255\n",<br>
@@ -84,12 +83,12 @@ static void invalidate(SpiceChannel *channel,<br>
         rc = write_ppm_32();<br>
         break;<br>
     default:<br>
-        fprintf(stderr, _("unsupported spice surface format %d\n"), d_format);<br>
+        fprintf(stderr, "unsupported spice surface format %d\n", d_format);<br>
         rc = -1;<br>
         break;<br>
     }<br>
     if (rc == 0)<br>
-        fprintf(stderr, _("wrote screen shot to %s\n"), outf);<br>
+        fprintf(stderr, "wrote screen shot to %s\n", outf);<br>
     g_main_loop_quit(mainloop);<br>
 }<br>
<br>
@@ -137,14 +136,14 @@ static GOptionEntry app_entries[] = {<br>
         .short_name       = 'o',<br>
         .arg              = G_OPTION_ARG_FILENAME,<br>
         .arg_data         = &outf,<br>
-        .description      = N_("Output file name (default spicy-screenshot.ppm)"),<br>
-        .arg_description  = N_("<filename>"),<br>
+        .description      = "Output file name (default spicy-screenshot.ppm)",<br>
+        .arg_description  = "<filename>",<br>
     },<br>
     {<br>
         .long_name        = "version",<br>
         .arg              = G_OPTION_ARG_NONE,<br>
         .arg_data         = &version,<br>
-        .description      = N_("Display version and quit"),<br>
+        .description      = "Display version and quit",<br>
     },<br>
     {<br>
         /* end of list */<br>
@@ -156,18 +155,14 @@ int main(int argc, char *argv[])<br>
     GError *error = NULL;<br>
     GOptionContext *context;<br>
<br>
-    bindtextdomain(GETTEXT_PACKAGE, SPICE_GTK_LOCALEDIR);<br>
-    bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");<br>
-    textdomain(GETTEXT_PACKAGE);<br>
-<br>
     /* parse opts */<br>
-    context = g_option_context_new(_(" - make screen shots"));<br>
-    g_option_context_set_summary(context, _("A Spice server client to take screenshots in ppm format."));<br>
-    g_option_context_set_description(context, _("Report bugs to " PACKAGE_BUGREPORT "."));<br>
+    context = g_option_context_new(" - make screen shots");<br>
+    g_option_context_set_summary(context, "A Spice server client to take screenshots in ppm format.");<br>
+    g_option_context_set_description(context, "Report bugs to " PACKAGE_BUGREPORT ".");<br>
     g_option_context_set_main_group(context, spice_cmdline_get_option_group());<br>
     g_option_context_add_main_entries(context, app_entries, NULL);<br>
     if (!g_option_context_parse (context, &argc, &argv, &error)) {<br>
-        g_print(_("option parsing failed: %s\n"), error->message);<br>
+        g_print("option parsing failed: %s\n", error->message);<br>
         exit(1);<br>
     }<br>
<br>
@@ -187,7 +182,7 @@ int main(int argc, char *argv[])<br>
     spice_cmdline_session_setup(session);<br>
<br>
     if (!spice_session_connect(session)) {<br>
-        fprintf(stderr, _("spice_session_connect failed\n"));<br>
+        fprintf(stderr, "spice_session_connect failed\n");<br>
         exit(1);<br>
     }<br>
<br>
diff --git a/src/spicy-stats.c b/src/spicy-stats.c<br>
index c98148d..d8a4706 100644<br>
--- a/src/spicy-stats.c<br>
+++ b/src/spicy-stats.c<br>
@@ -16,7 +16,6 @@<br>
    License along with this library; if not, see <<a href="http://www.gnu.org/licenses/" rel="noreferrer" target="_blank">http://www.gnu.org/licenses/</a>>.<br>
 */<br>
 #include "config.h"<br>
-#include <glib/gi18n.h><br>
<br>
 #include "spice-client.h"<br>
 #include "spice-common.h"<br>
@@ -68,7 +67,7 @@ static GOptionEntry app_entries[] = {<br>
         .long_name        = "version",<br>
         .arg              = G_OPTION_ARG_NONE,<br>
         .arg_data         = &version,<br>
-        .description      = N_("Display version and quit"),<br>
+        .description      = "Display version and quit",<br>
     },<br>
     {<br>
         /* end of list */<br>
@@ -88,18 +87,14 @@ int main(int argc, char *argv[])<br>
<br>
     signal(SIGINT, signal_handler);<br>
<br>
-    bindtextdomain(GETTEXT_PACKAGE, SPICE_GTK_LOCALEDIR);<br>
-    bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");<br>
-    textdomain(GETTEXT_PACKAGE);<br>
-<br>
     /* parse opts */<br>
     context = g_option_context_new(NULL);<br>
-    g_option_context_set_summary(context, _("A Spice client used for testing and measurements."));<br>
-    g_option_context_set_description(context, _("Report bugs to " PACKAGE_BUGREPORT "."));<br>
+    g_option_context_set_summary(context, "A Spice client used for testing and measurements.");<br>
+    g_option_context_set_description(context, "Report bugs to " PACKAGE_BUGREPORT ".");<br>
     g_option_context_set_main_group(context, spice_cmdline_get_option_group());<br>
     g_option_context_add_main_entries(context, app_entries, NULL);<br>
     if (!g_option_context_parse (context, &argc, &argv, &error)) {<br>
-        g_print(_("option parsing failed: %s\n"), error->message);<br>
+        g_print("option parsing failed: %s\n", error->message);<br>
         exit(1);<br>
     }<br>
<br>
@@ -119,7 +114,7 @@ int main(int argc, char *argv[])<br>
     spice_cmdline_session_setup(session);<br>
<br>
     if (!spice_session_connect(session)) {<br>
-        fprintf(stderr, _("spice_session_connect failed\n"));<br>
+        fprintf(stderr, "spice_session_connect failed\n");<br>
         exit(1);<br>
     }<br>
<br>
diff --git a/src/spicy.c b/src/spicy.c<br>
index 15ef377..f48a220 100644<br>
--- a/src/spicy.c<br>
+++ b/src/spicy.c<br>
@@ -17,7 +17,7 @@<br>
 */<br>
<br>
 #include "config.h"<br>
-#include <glib/gi18n.h><br>
+#include <glib.h><br>
<br>
 #include <sys/stat.h><br>
 #ifdef HAVE_TERMIOS_H<br>
@@ -185,10 +185,10 @@ static void update_status_window(SpiceWindow *win)<br>
     if (win->mouse_grabbed) {<br>
         SpiceGrabSequence *sequence = spice_display_get_grab_keys(SPICE_DISPLAY(win->spice));<br>
         gchar *seq = spice_grab_sequence_as_string(sequence);<br>
-        status = g_strdup_printf(_("Use %s to ungrab mouse."), seq);<br>
+        status = g_strdup_printf("Use %s to ungrab mouse.", seq);<br>
         g_free(seq);<br>
     } else {<br>
-        status = g_strdup_printf(_("mouse: %s, agent: %s"),<br>
+        status = g_strdup_printf("mouse: %s, agent: %s",<br>
                  win->conn->mouse_state, win->conn->agent_state);<br>
     }<br>
<br>
@@ -364,7 +364,7 @@ static void menu_cb_select_usb_devices(GtkAction *action, void *data)<br>
<br>
     /* Create the widgets */<br>
     dialog = gtk_dialog_new_with_buttons(<br>
-                    _("Select USB devices for redirection"),<br>
+                    "Select USB devices for redirection",<br>
                     GTK_WINDOW(win->toplevel),<br>
                     GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,<br>
                     GTK_STOCK_CLOSE, GTK_RESPONSE_ACCEPT,<br>
@@ -400,7 +400,7 @@ static void menu_cb_bool_prop(GtkToggleAction *action, gpointer data)<br>
     gpointer object;<br>
<br>
     name = gtk_action_get_name(GTK_ACTION(action));<br>
-    SPICE_DEBUG("%s: %s = %s", __FUNCTION__, name, state ? _("yes") : _("no"));<br>
+    SPICE_DEBUG("%s: %s = %s", __FUNCTION__, name, state ? "yes" : "no");<br>
<br>
     g_key_file_set_boolean(keyfile, "general", name, state);<br>
<br>
@@ -446,8 +446,8 @@ static void menu_cb_statusbar(GtkToggleAction *action, gpointer data)<br>
<br>
 static void menu_cb_about(GtkAction *action, void *data)<br>
 {<br>
-    char *comments = _("gtk test client app for the\n"<br>
-        "spice remote desktop protocol");<br>
+    char *comments = "gtk test client app for the\n"<br>
+        "spice remote desktop protocol";<br>
     static const char *copyright = "(c) 2010 Red Hat";<br>
     static const char *website = "<a href="http://www.spice-space.org" rel="noreferrer" target="_blank">http://www.spice-space.org</a>";<br>
     static const char *authors[] = { "Gerd Hoffmann <<a href="mailto:kraxel@redhat.com">kraxel@redhat.com</a>>",<br>
@@ -635,12 +635,12 @@ static const GtkActionEntry entries[] = {<br>
         /* File menu */<br>
         .name        = "Connect",<br>
         .stock_id    = GTK_STOCK_CONNECT,<br>
-        .label       = N_("_Connect ..."),<br>
+        .label       = "_Connect ...",<br>
         .callback    = G_CALLBACK(menu_cb_connect),<br>
     },{<br>
         .name        = "Close",<br>
         .stock_id    = GTK_STOCK_CLOSE,<br>
-        .label       = N_("_Close"),<br>
+        .label       = "_Close",<br>
         .callback    = G_CALLBACK(menu_cb_close),<br>
         .accelerator = "", /* none (disable default "<control>W") */<br>
     },{<br>
@@ -648,13 +648,13 @@ static const GtkActionEntry entries[] = {<br>
         /* Edit menu */<br>
         .name        = "CopyToGuest",<br>
         .stock_id    = GTK_STOCK_COPY,<br>
-        .label       = N_("_Copy to guest"),<br>
+        .label       = "_Copy to guest",<br>
         .callback    = G_CALLBACK(menu_cb_copy),<br>
         .accelerator = "", /* none (disable default "<control>C") */<br>
     },{<br>
         .name        = "PasteFromGuest",<br>
         .stock_id    = GTK_STOCK_PASTE,<br>
-        .label       = N_("_Paste from guest"),<br>
+        .label       = "_Paste from guest",<br>
         .callback    = G_CALLBACK(menu_cb_paste),<br>
         .accelerator = "", /* none (disable default "<control>V") */<br>
     },{<br>
@@ -662,18 +662,18 @@ static const GtkActionEntry entries[] = {<br>
         /* View menu */<br>
         .name        = "Fullscreen",<br>
         .stock_id    = GTK_STOCK_FULLSCREEN,<br>
-        .label       = N_("_Fullscreen"),<br>
+        .label       = "_Fullscreen",<br>
         .callback    = G_CALLBACK(menu_cb_fullscreen),<br>
         .accelerator = "<shift>F11",<br>
     },{<br>
 #ifdef USE_SMARTCARD<br>
        .name        = "InsertSmartcard",<br>
-       .label       = N_("_Insert Smartcard"),<br>
+       .label       = "_Insert Smartcard",<br>
        .callback    = G_CALLBACK(menu_cb_insert_smartcard),<br>
         .accelerator = "<shift>F8",<br>
     },{<br>
        .name        = "RemoveSmartcard",<br>
-       .label       = N_("_Remove Smartcard"),<br>
+       .label       = "_Remove Smartcard",<br>
        .callback    = G_CALLBACK(menu_cb_remove_smartcard),<br>
         .accelerator = "<shift>F9",<br>
     },{<br>
@@ -681,7 +681,7 @@ static const GtkActionEntry entries[] = {<br>
<br>
 #ifdef USE_USBREDIR<br>
         .name        = "SelectUsbDevices",<br>
-        .label       = N_("_Select USB Devices for redirection"),<br>
+        .label       = "_Select USB Devices for redirection",<br>
         .callback    = G_CALLBACK(menu_cb_select_usb_devices),<br>
         .accelerator = "<shift>F10",<br>
     },{<br>
@@ -690,7 +690,7 @@ static const GtkActionEntry entries[] = {<br>
         /* Help menu */<br>
         .name        = "About",<br>
         .stock_id    = GTK_STOCK_ABOUT,<br>
-        .label       = N_("_About ..."),<br>
+        .label       = "_About ...",<br>
         .callback    = G_CALLBACK(menu_cb_about),<br>
     }<br>
 };<br>
@@ -711,39 +711,39 @@ static const char *spice_gtk_session_properties[] = {<br>
 static const GtkToggleActionEntry tentries[] = {<br>
     {<br>
         .name        = "grab-keyboard",<br>
-        .label       = N_("Grab keyboard when active and focused"),<br>
+        .label       = "Grab keyboard when active and focused",<br>
         .callback    = G_CALLBACK(menu_cb_bool_prop),<br>
     },{<br>
         .name        = "grab-mouse",<br>
-        .label       = N_("Grab mouse in server mode (no tabled/vdagent)"),<br>
+        .label       = "Grab mouse in server mode (no tabled/vdagent)",<br>
         .callback    = G_CALLBACK(menu_cb_bool_prop),<br>
     },{<br>
         .name        = "resize-guest",<br>
-        .label       = N_("Resize guest to match window size"),<br>
+        .label       = "Resize guest to match window size",<br>
         .callback    = G_CALLBACK(menu_cb_bool_prop),<br>
     },{<br>
         .name        = "scaling",<br>
-        .label       = N_("Scale display"),<br>
+        .label       = "Scale display",<br>
         .callback    = G_CALLBACK(menu_cb_bool_prop),<br>
     },{<br>
         .name        = "disable-inputs",<br>
-        .label       = N_("Disable inputs"),<br>
+        .label       = "Disable inputs",<br>
         .callback    = G_CALLBACK(menu_cb_bool_prop),<br>
     },{<br>
         .name        = "auto-clipboard",<br>
-        .label       = N_("Automagic clipboard sharing between host and guest"),<br>
+        .label       = "Automagic clipboard sharing between host and guest",<br>
         .callback    = G_CALLBACK(menu_cb_bool_prop),<br>
     },{<br>
         .name        = "auto-usbredir",<br>
-        .label       = N_("Auto redirect newly plugged in USB devices"),<br>
+        .label       = "Auto redirect newly plugged in USB devices",<br>
         .callback    = G_CALLBACK(menu_cb_bool_prop),<br>
     },{<br>
         .name        = "Statusbar",<br>
-        .label       = N_("Statusbar"),<br>
+        .label       = "Statusbar",<br>
         .callback    = G_CALLBACK(menu_cb_statusbar),<br>
     },{<br>
         .name        = "Toolbar",<br>
-        .label       = N_("Toolbar"),<br>
+        .label       = "Toolbar",<br>
         .callback    = G_CALLBACK(menu_cb_toolbar),<br>
     }<br>
 };<br>
@@ -874,7 +874,7 @@ static SpiceWindow *create_spice_window(spice_connection *conn, SpiceChannel *ch<br>
     /* toplevel */<br>
     win->toplevel = gtk_window_new(GTK_WINDOW_TOPLEVEL);<br>
     if (spicy_title == NULL) {<br>
-        snprintf(title, sizeof(title), _("spice display %d:%d"), id, monitor_id);<br>
+        snprintf(title, sizeof(title), "spice display %d:%d", id, monitor_id);<br>
     } else {<br>
         snprintf(title, sizeof(title), "%s", spicy_title);<br>
     }<br>
@@ -951,7 +951,7 @@ static SpiceWindow *create_spice_window(spice_connection *conn, SpiceChannel *ch<br>
     gtk_container_add(GTK_CONTAINER(frame), win->status);<br>
<br>
     for (i = 0; i < STATE_MAX; i++) {<br>
-        win->st[i] = gtk_label_new(_("?"));<br>
+        win->st[i] = gtk_label_new("?");<br>
         gtk_label_set_width_chars(GTK_LABEL(win->st[i]), 5);<br>
         frame = gtk_frame_new(NULL);<br>
         gtk_box_pack_end(GTK_BOX(win->statusbar), frame, FALSE, FALSE, 0);<br>
@@ -1125,8 +1125,8 @@ static void main_channel_event(SpiceChannel *channel, SpiceChannelEvent event,<br>
         g_warning("main channel: auth failure (wrong password?)");<br>
         strcpy(password, "");<br>
         /* FIXME i18 */<br>
-        rc = ask_user(NULL, _("Authentication"),<br>
-                      _("Please enter the spice server password"),<br>
+        rc = ask_user(NULL, "Authentication",<br>
+                      "Please enter the spice server password",<br>
                       password, sizeof(password), true);<br>
         if (rc == 0) {<br>
             g_object_set(conn->session, "password", password, NULL);<br>
@@ -1168,7 +1168,7 @@ static void main_agent_update(SpiceChannel *channel, gpointer data)<br>
     spice_connection *conn = data;<br>
<br>
     g_object_get(channel, "agent-connected", &conn->agent_connected, NULL);<br>
-    conn->agent_state = conn->agent_connected ? _("yes") : _("no");<br>
+    conn->agent_state = conn->agent_connected ? "yes" : "no";<br>
     update_status(conn);<br>
     update_edit_menu(conn);<br>
 }<br>
@@ -1184,11 +1184,11 @@ static void inputs_modifiers(SpiceChannel *channel, gpointer data)<br>
             continue;<br>
<br>
         gtk_label_set_text(GTK_LABEL(conn->wins[i]->st[STATE_SCROLL_LOCK]),<br>
-                           m & SPICE_KEYBOARD_MODIFIER_FLAGS_SCROLL_LOCK ? _("SCROLL") : "");<br>
+                           m & SPICE_KEYBOARD_MODIFIER_FLAGS_SCROLL_LOCK ? "SCROLL" : "");<br>
         gtk_label_set_text(GTK_LABEL(conn->wins[i]->st[STATE_CAPS_LOCK]),<br>
-                           m & SPICE_KEYBOARD_MODIFIER_FLAGS_CAPS_LOCK ? _("CAPS") : "");<br>
+                           m & SPICE_KEYBOARD_MODIFIER_FLAGS_CAPS_LOCK ? "CAPS" : "");<br>
         gtk_label_set_text(GTK_LABEL(conn->wins[i]->st[STATE_NUM_LOCK]),<br>
-                           m & SPICE_KEYBOARD_MODIFIER_FLAGS_NUM_LOCK ? _("NUM") : "");<br>
+                           m & SPICE_KEYBOARD_MODIFIER_FLAGS_NUM_LOCK ? "NUM" : "");<br>
     }<br>
 }<br>
<br>
@@ -1556,18 +1556,18 @@ static GOptionEntry cmd_entries[] = {<br>
         .short_name       = 'f',<br>
         .arg              = G_OPTION_ARG_NONE,<br>
         .arg_data         = &fullscreen,<br>
-        .description      = N_("Open in full screen mode"),<br>
+        .description      = "Open in full screen mode",<br>
     },{<br>
         .long_name        = "version",<br>
         .arg              = G_OPTION_ARG_NONE,<br>
         .arg_data         = &version,<br>
-        .description      = N_("Display version and quit"),<br>
+        .description      = "Display version and quit",<br>
     },{<br>
         .long_name        = "title",<br>
         .arg              = G_OPTION_ARG_STRING,<br>
         .arg_data         = &spicy_title,<br>
-        .description      = N_("Set the window title"),<br>
-        .arg_description  = N_("<title>"),<br>
+        .description      = "Set the window title",<br>
+        .arg_description  = "<title>",<br>
     },{<br>
         /* end of list */<br>
     }<br>
@@ -1637,10 +1637,6 @@ int main(int argc, char *argv[])<br>
 #if !GLIB_CHECK_VERSION(2,31,18)<br>
     g_thread_init(NULL);<br>
 #endif<br>
-    bindtextdomain(GETTEXT_PACKAGE, SPICE_GTK_LOCALEDIR);<br>
-    bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");<br>
-    textdomain(GETTEXT_PACKAGE);<br>
-<br>
     keyfile = g_key_file_new();<br>
<br>
     int mode = S_IRWXU;<br>
@@ -1658,15 +1654,15 @@ int main(int argc, char *argv[])<br>
<br>
     /* parse opts */<br>
     gtk_init(&argc, &argv);<br>
-    context = g_option_context_new(_("- spice client test application"));<br>
-    g_option_context_set_summary(context, _("Gtk+ test client to connect to Spice servers."));<br>
-    g_option_context_set_description(context, _("Report bugs to " PACKAGE_BUGREPORT "."));<br>
+    context = g_option_context_new("- spice client test application");<br>
+    g_option_context_set_summary(context, "Gtk+ test client to connect to Spice servers.");<br>
+    g_option_context_set_description(context, "Report bugs to " PACKAGE_BUGREPORT ".");<br>
     g_option_context_add_group(context, spice_get_option_group());<br>
     g_option_context_set_main_group(context, spice_cmdline_get_option_group());<br>
     g_option_context_add_main_entries(context, cmd_entries, NULL);<br>
     g_option_context_add_group(context, gtk_get_option_group(TRUE));<br>
     if (!g_option_context_parse (context, &argc, &argv, &error)) {<br>
-        g_print(_("option parsing failed: %s\n"), error->message);<br>
+        g_print("option parsing failed: %s\n", error->message);<br>
         exit(1);<br>
     }<br>
     g_option_context_free(context);<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.4.3<br>
<br>
_______________________________________________<br>
Spice-devel mailing list<br>
<a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Marc-André Lureau</div>
</div>