AUDIT: r17819 - gnucash/trunk/src/report/report-gnome - Bug #565721: Fix untranslated report names in multicolumn report

Christian Stimming cstim at cvs.gnucash.org
Wed Jan 14 14:59:53 EST 2009


Author: cstim
Date: 2009-01-14 14:59:53 -0500 (Wed, 14 Jan 2009)
New Revision: 17819
Trac: http://svn.gnucash.org/trac/changeset/17819

Modified:
   gnucash/trunk/src/report/report-gnome/dialog-column-view.c
Log:
Bug #565721: Fix untranslated report names in multicolumn report

Report names are passed through the _() macro before they are stored to the
tree list.

Patch by C. Ernst.
BP

Modified: gnucash/trunk/src/report/report-gnome/dialog-column-view.c
===================================================================
--- gnucash/trunk/src/report/report-gnome/dialog-column-view.c	2009-01-14 19:59:46 UTC (rev 17818)
+++ gnucash/trunk/src/report/report-gnome/dialog-column-view.c	2009-01-14 19:59:53 UTC (rev 17819)
@@ -145,7 +145,8 @@
     for(i = 0; !SCM_NULLP(names); names = SCM_CDR(names), i++) {
       if (SCM_EQUALP (SCM_CAR(names), selection))
         row = i;
-      name = SCM_STRING_CHARS(scm_call_2(template_menu_name, SCM_CAR(names), SCM_BOOL_F));
+      name = _(SCM_STRING_CHARS(scm_call_2(template_menu_name, SCM_CAR(names),
+    		  SCM_BOOL_F)));
       gtk_list_store_append(store, &iter);
       gtk_list_store_set(store, &iter,
 			 AVAILABLE_COL_NAME, name,
@@ -185,12 +186,12 @@
 
       id = scm_num2int(SCM_CAAR(contents), SCM_ARG1, G_STRFUNC);
       this_report = gnc_report_find(id);
+      name = _(SCM_STRING_CHARS(scm_call_1(report_menu_name, this_report)));
 
       gtk_list_store_append(store, &iter);
       gtk_list_store_set
 	(store, &iter,
-	 CONTENTS_COL_NAME, SCM_STRING_CHARS(scm_call_1(report_menu_name,
-							this_report)),
+	 CONTENTS_COL_NAME, name,
 	 CONTENTS_COL_ROW, i,
 	 CONTENTS_COL_REPORT_COLS, scm_num2int(SCM_CADR(SCM_CAR(contents)),
 					       SCM_ARG1, G_STRFUNC),



More information about the gnucash-changes mailing list