[hotssh] Mark more some strings to translation
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hotssh] Mark more some strings to translation
- Date: Wed, 27 Nov 2013 00:40:05 +0000 (UTC)
commit a90d3545d841660c3ca9226926d23ba5e09edf30
Author: Yosef Or Boczko <yoseforb gmail com>
Date: Wed Nov 27 02:36:43 2013 +0200
Mark more some strings to translation
po/POTFILES.in | 1 +
src/hotssh-tab.c | 16 +++++++++-------
src/prefs.ui | 4 ++--
src/tab.ui | 2 +-
4 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index bc9d8d6..de74901 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,5 +1,6 @@
[encoding: UTF-8]
src/hotssh-win.c
+src/hotssh-tab.c
[type: gettext/glade]src/app-menu.ui
[type: gettext/glade]src/gears-menu.ui
[type: gettext/glade]src/prefs.ui
diff --git a/src/hotssh-tab.c b/src/hotssh-tab.c
index 77cd27d..1390b2b 100644
--- a/src/hotssh-tab.c
+++ b/src/hotssh-tab.c
@@ -28,6 +28,8 @@
#include <stdio.h>
#include <string.h>
+#include <glib/gi18n.h>
+
static const GSshConnectionAuthMechanism default_authentication_order[] = {
GSSH_CONNECTION_AUTH_MECHANISM_PUBLICKEY,
/* GSSH_CONNECTION_AUTH_MECHANISM_GSSAPI_MIC, Seems broken */
@@ -307,7 +309,7 @@ on_auth_complete (GObject *src,
if (!gssh_connection_auth_finish ((GSshConnection*)src, res, &local_error))
goto out;
- set_status (self, "Authenticated, requesting channel...");
+ set_status (self, _("Authenticated, requesting channel..."));
g_debug ("auth complete");
@@ -372,7 +374,7 @@ iterate_authentication_modes (HotSshTab *self)
if (priv->authmechanism_index >= G_N_ELEMENTS (default_authentication_order))
{
g_set_error (&local_error, G_IO_ERROR, G_IO_ERROR_FAILED,
- "No more authentication mechanisms available");
+ _("No more authentication mechanisms available"));
goto out;
}
else
@@ -381,7 +383,7 @@ iterate_authentication_modes (HotSshTab *self)
default_authentication_order[priv->authmechanism_index];
gboolean is_password = mech == GSSH_CONNECTION_AUTH_MECHANISM_PASSWORD;
gs_free char *authmsg =
- g_strdup_printf ("Requesting authentication via '%s'",
+ g_strdup_printf (_("Requesting authentication via '%s'"),
gssh_connection_auth_mechanism_to_string (mech));
/* Ugly gross hack until we have separate auth pages */
set_status (self, authmsg);
@@ -468,7 +470,7 @@ on_socket_client_event (GSocketClient *client,
switch (event)
{
case G_SOCKET_CLIENT_RESOLVING:
- set_status_printf (self, "Resolving '%s'...",
+ set_status_printf (self, _("Resolving '%s'..."),
priv->hostname);
break;
case G_SOCKET_CLIENT_CONNECTING:
@@ -483,7 +485,7 @@ on_socket_client_event (GSocketClient *client,
GInetAddress *inetaddr =
g_inet_socket_address_get_address ((GInetSocketAddress*)remote_address);
gs_free char *inet_str = g_inet_address_to_string (inetaddr);
- set_status_printf (self, "Connecting to '%s'...",
+ set_status_printf (self, _("Connecting to '%s'..."),
inet_str);
}
break;
@@ -638,7 +640,7 @@ on_negotiate_complete (GObject *src,
if (!gssh_connection_negotiate_finish ((GSshConnection*)src, result, &local_error))
goto out;
- set_status (self, "Authenticating...");
+ set_status (self, _("Authenticating..."));
iterate_authentication_modes (self);
@@ -658,7 +660,7 @@ on_approve_hostkey_clicked (GtkButton *button,
on_negotiate_complete, self);
page_transition (self, HOTSSH_TAB_PAGE_CONNECTING);
- set_status (self, "Negotiating authentication...");
+ set_status (self, _("Negotiating authentication..."));
}
static void
diff --git a/src/prefs.ui b/src/prefs.ui
index 1984234..5e19144 100644
--- a/src/prefs.ui
+++ b/src/prefs.ui
@@ -17,7 +17,7 @@
<property name="can_focus">False</property>
<child>
<object class="GtkButton" id="close">
- <property name="label">_Close</property>
+ <property name="label" translatable="yes">_Close</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="receives_default">False</property>
@@ -49,7 +49,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
- <property name="label">_Match System Terminal style:</property>
+ <property name="label" translatable="yes">_Match System Terminal style:</property>
<property name="use_underline">True</property>
</object>
<packing>
diff --git a/src/tab.ui b/src/tab.ui
index 27cf52c..1733967 100644
--- a/src/tab.ui
+++ b/src/tab.ui
@@ -466,7 +466,7 @@
</child>
<child>
<object class="GtkButton" id="auth_cancel_button">
- <property name="label">Disconnect</property>
+ <property name="label" translatable="yes">Disconnect</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]