From: Darren S. <ds...@us...> - 2006-03-08 19:18:52
|
Update of /cvsroot/xine/gnome-xine/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15355/src Modified Files: preferences.c Log Message: Translate menu item text in the prefs window. Or at least call gettext(). Index: preferences.c =================================================================== RCS file: /cvsroot/xine/gnome-xine/src/preferences.c,v retrieving revision 1.58 retrieving revision 1.59 diff -u -r1.58 -r1.59 --- preferences.c 3 Mar 2006 19:36:28 -0000 1.58 +++ preferences.c 8 Mar 2006 19:18:47 -0000 1.59 @@ -305,8 +305,12 @@ int i; widget = gtk_combo_box_new_text (); for (i = 0; entry->enum_values[i]; ++i) - gtk_combo_box_append_text (GTK_COMBO_BOX(widget), - entry->enum_values[i]); + { + const char *label = gettext (entry->enum_values[i]); + if (label == entry->enum_values[i]) + label = dgettext (LIB_PACKAGE, label); + gtk_combo_box_append_text (GTK_COMBO_BOX(widget), label); + } gtk_combo_box_set_active (GTK_COMBO_BOX(widget), entry->num_value); g_signal_connect (G_OBJECT(widget), "changed", G_CALLBACK(enum_cb), strdup(entry->key)); |