gnucash maint: Bug 797935 - Strange formal register headers
Robert Fewell
bobit at code.gnucash.org
Fri Sep 11 10:27:31 EDT 2020
Updated via https://github.com/Gnucash/gnucash/commit/d0309b39 (commit)
from https://github.com/Gnucash/gnucash/commit/6997f005 (commit)
commit d0309b39d9c2d495e7c48b3363a467bc7d79d124
Author: Robert Fewell <14uBobIT at gmail.com>
Date: Fri Sep 11 15:23:27 2020 +0100
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.
diff --git a/libgnucash/engine/Account.cpp b/libgnucash/engine/Account.cpp
index 9e23f8175..6c574cf02 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())
Summary of changes:
libgnucash/engine/Account.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the gnucash-changes
mailing list