From d0309b39d9c2d495e7c48b3363a467bc7d79d124 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Fri, 11 Sep 2020 15:23:27 +0100 Subject: [PATCH] Bug 797935 - Strange formal register headers The headers were made up from two parts, 'Tot' which was translated and 'Debit/Credit' which was not. Traced to some missing brackets around the returned dflt_acct_debit_str and dflt_acct_credit_str. --- libgnucash/engine/Account.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgnucash/engine/Account.cpp b/libgnucash/engine/Account.cpp index 9e23f81752..6c574cf026 100644 --- a/libgnucash/engine/Account.cpp +++ b/libgnucash/engine/Account.cpp @@ -4075,7 +4075,7 @@ xaccAccountSetTaxUSCopyNumber (Account *acc, gint64 copy_number) const char *gnc_account_get_debit_string (GNCAccountType acct_type) { if (gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, GNC_PREF_ACCOUNTING_LABELS)) - return dflt_acct_debit_str; + return _(dflt_acct_debit_str); auto result = gnc_acct_debit_strs.find(acct_type); if (result != gnc_acct_debit_strs.end()) @@ -4087,7 +4087,7 @@ const char *gnc_account_get_debit_string (GNCAccountType acct_type) const char *gnc_account_get_credit_string (GNCAccountType acct_type) { if (gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, GNC_PREF_ACCOUNTING_LABELS)) - return dflt_acct_credit_str; + return _(dflt_acct_credit_str); auto result = gnc_acct_credit_strs.find(acct_type); if (result != gnc_acct_credit_strs.end())