r17869 - gnucash/branches/2.2/src/report/report-gnome - [17819] Bug #565721: Fix untranslated report names in multicolumn report
Christian Stimming
cstim at cvs.gnucash.org
Sat Jan 31 15:30:53 EST 2009
Author: cstim
Date: 2009-01-31 15:30:53 -0500 (Sat, 31 Jan 2009)
New Revision: 17869
Trac: http://svn.gnucash.org/trac/changeset/17869
Modified:
gnucash/branches/2.2/src/report/report-gnome/dialog-column-view.c
Log:
[17819] 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.
Modified: gnucash/branches/2.2/src/report/report-gnome/dialog-column-view.c
===================================================================
--- gnucash/branches/2.2/src/report/report-gnome/dialog-column-view.c 2009-01-31 19:50:08 UTC (rev 17868)
+++ gnucash/branches/2.2/src/report/report-gnome/dialog-column-view.c 2009-01-31 20:30:53 UTC (rev 17869)
@@ -143,7 +143,7 @@
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_1(template_menu_name, SCM_CAR(names)));
+ name = _(SCM_STRING_CHARS(scm_call_1(template_menu_name, SCM_CAR(names))));
gtk_list_store_append(store, &iter);
gtk_list_store_set(store, &iter,
AVAILABLE_COL_NAME, name,
@@ -182,12 +182,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