From 0368e6fdda59d639950d7023b3d5c430d02fab15 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Wed, 14 Jan 2009 19:59:53 +0000 Subject: [PATCH] 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 git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17819 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/report/report-gnome/dialog-column-view.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/report/report-gnome/dialog-column-view.c b/src/report/report-gnome/dialog-column-view.c index ef56fca61c..195dc7c3ff 100644 --- a/src/report/report-gnome/dialog-column-view.c +++ b/src/report/report-gnome/dialog-column-view.c @@ -145,7 +145,8 @@ update_display_lists(gnc_column_view_edit * view) 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 @@ update_display_lists(gnc_column_view_edit * view) 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),