[spice-gtk 1/3] spicy: Ensure Host/Port/TLS Port labels are translated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]