[Gnucash-changes] r12174 - gnucash/trunk - Translate strings for multichoice options.

David Hampton hampton at cvs.gnucash.org
Fri Dec 23 00:33:50 EST 2005


Author: hampton
Date: 2005-12-23 00:33:48 -0500 (Fri, 23 Dec 2005)
New Revision: 12174
Trac: http://svn.gnucash.org/trac/changeset/12174

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/gnome-utils/dialog-options.c
Log:
Translate strings for multichoice options.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2005-12-22 21:40:37 UTC (rev 12173)
+++ gnucash/trunk/ChangeLog	2005-12-23 05:33:48 UTC (rev 12174)
@@ -1,3 +1,8 @@
+2005-12-23  David Hampton  <hampton at employees.org>
+
+	* src/gnome-utils/dialog-options.c: Translate strings for
+	multichoice options.
+
 2005-12-22  Christian Stimming  <stimming at tuhh.de>
 
 	* macros/g-wrap.m4: Copy macro file from gwrap-1.3.4 package

Modified: gnucash/trunk/src/gnome-utils/dialog-options.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-options.c	2005-12-22 21:40:37 UTC (rev 12173)
+++ gnucash/trunk/src/gnome-utils/dialog-options.c	2005-12-23 05:33:48 UTC (rev 12174)
@@ -543,8 +543,12 @@
   widget = gtk_combo_box_new_text();
   for (i = 0; i < num_values; i++) {
     string = gnc_option_permissible_value_name(option, i);
-    gtk_combo_box_append_text(GTK_COMBO_BOX(widget), string);
-    g_free(string);
+    if (string) {
+      gtk_combo_box_append_text(GTK_COMBO_BOX(widget), _(string));
+      g_free(string);
+    } else {
+      gtk_combo_box_append_text(GTK_COMBO_BOX(widget), "");
+    }
   }
   g_signal_connect(G_OBJECT(widget), "changed",
         	   G_CALLBACK(gnc_option_multichoice_cb), option);



More information about the gnucash-changes mailing list