diff options
Diffstat (limited to 'src/xact.cc')
-rw-r--r-- | src/xact.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/xact.cc b/src/xact.cc index af1538e0..52630a0e 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -170,7 +170,7 @@ bool xact_base_t::finalize() null_post->add_flags(POST_CALCULATED); } else if (! balance.is_null() && ! balance.is_realzero()) { - throw_(balance_error, "Transaction does not balance"); + throw_(balance_error, _("Transaction does not balance")); } balance = NULL_VALUE; @@ -271,7 +271,7 @@ bool xact_base_t::finalize() if (post->amount.commodity() == post->cost->commodity()) throw_(balance_error, - "A posting's cost must be of a different commodity than its amount"); + _("A posting's cost must be of a different commodity than its amount")); commodity_t::cost_breakdown_t breakdown = commodity_t::exchange(post->amount, *post->cost, false, @@ -304,10 +304,10 @@ bool xact_base_t::finalize() DEBUG("xact.finalize", "final balance = " << balance); if (! balance.is_null() && ! balance.is_zero()) { - add_error_context(item_context(*this, "While balancing transaction")); - add_error_context("Unbalanced remainder is:"); + add_error_context(item_context(*this, _("While balancing transaction"))); + add_error_context(_("Unbalanced remainder is:")); add_error_context(value_context(balance)); - throw_(balance_error, "Transaction does not balance"); + throw_(balance_error, _("Transaction does not balance")); } // Add the final calculated totals each to their related account @@ -334,7 +334,7 @@ bool xact_base_t::finalize() return false; // ignore this xact completely else if (some_null) throw_(balance_error, - "There cannot be null amounts after balancing a transaction"); + _("There cannot be null amounts after balancing a transaction")); } return true; |