r19378 - gnucash/trunk/src/gnome-utils - Fix missing translation of buttons in invoice reminder dialog.

Christian Stimming cstim at code.gnucash.org
Fri Jul 23 15:22:55 EDT 2010


Author: cstim
Date: 2010-07-23 15:22:55 -0400 (Fri, 23 Jul 2010)
New Revision: 19378
Trac: http://svn.gnucash.org/trac/changeset/19378

Modified:
   gnucash/trunk/src/gnome-utils/dialog-query-list.c
Log:
Fix missing translation of buttons in invoice reminder dialog.

Modified: gnucash/trunk/src/gnome-utils/dialog-query-list.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-query-list.c	2010-07-20 20:37:39 UTC (rev 19377)
+++ gnucash/trunk/src/gnome-utils/dialog-query-list.c	2010-07-23 19:22:55 UTC (rev 19378)
@@ -25,6 +25,7 @@
 
 #include "config.h"
 #include <gtk/gtk.h>
+#include <glib/gi18n.h>
 
 #include "QueryNew.h"
 
@@ -263,7 +264,9 @@
     /* build up the buttons */
     for (i = 0; buttons[i].label; i++)
     {
-        button = gtk_button_new_with_label (buttons[i].label);
+        /* Note: The "label" member of the GNCDisplayListButton still
+         * isn't translated. Hence, we must translate it here. */
+        button = gtk_button_new_with_label (_(buttons[i].label));
         g_object_set_data (G_OBJECT (button), "data", &(dql->buttons[i]));
         g_signal_connect (G_OBJECT (button), "clicked",
                           G_CALLBACK(gnc_dialog_query_list_button_clicked), dql);



More information about the gnucash-changes mailing list