From e825e183a1b8087f9576dffff3461ef7bda89c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Fri, 12 Sep 2014 15:04:09 +0200 Subject: [PATCH] Mark all strings for translation in the auth dialog A few strings weren't marked for translation in the authentication dialog. --- po/POTFILES.in | 1 + src/virt-viewer-auth.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/po/POTFILES.in b/po/POTFILES.in index 3a3174e..06f8ad1 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -5,6 +5,7 @@ src/remote-viewer-main.c src/remote-viewer.c [type: gettext/glade] src/virt-viewer-about.xml src/virt-viewer-app.c +src/virt-viewer-auth.c [type: gettext/glade] src/virt-viewer-auth.xml src/virt-viewer-main.c src/virt-viewer-session-spice.c diff --git a/src/virt-viewer-auth.c b/src/virt-viewer-auth.c index 556a10b..230d720 100644 --- a/src/virt-viewer-auth.c +++ b/src/virt-viewer-auth.c @@ -23,6 +23,7 @@ #include #include +#include #include #ifdef HAVE_GTK_VNC @@ -74,12 +75,11 @@ virt_viewer_auth_collect_credentials(GtkWindow *window, gtk_widget_set_sensitive(promptPassword, password != NULL); if (address) { - message = g_strdup_printf("Authentication is required for the %s connection to:\n\n" - "%s\n\n", + message = g_strdup_printf(_("Authentication is required for the %s connection to:\n\n%s\n\n"), type, address); } else { - message = g_strdup_printf("Authentication is required for the %s connection:\n", + message = g_strdup_printf(_("Authentication is required for the %s connection:\n"), type); }