[Spice-devel] [spice-gtk 1/3] spicy: Ensure Host/Port/TLS Port labels are translated
Christophe Fergeau
cfergeau at redhat.com
Tue Jun 16 05:34:23 PDT 2015
Strings marked for translation with N_() must be used together with _()
in order for them to actually be translated at runtime.
---
src/spicy-connect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/spicy-connect.c b/src/spicy-connect.c
index 76675a6..65ac4ee 100644
--- a/src/spicy-connect.c
+++ b/src/spicy-connect.c
@@ -176,7 +176,7 @@ gboolean spicy_connect_dialog(SpiceSession *session)
for (i = 0; i < SPICE_N_ELEMENTS(connect_entries); i++) {
gchar *txt;
- label = gtk_label_new(connect_entries[i].text);
+ label = gtk_label_new(_(connect_entries[i].text));
gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
gtk_table_attach_defaults(table, label, 0, 1, i, i+1);
connect_entries[i].entry = GTK_WIDGET(gtk_entry_new());
--
2.4.3
More information about the Spice-devel
mailing list