diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-25 03:51:42 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-25 03:51:42 -0400 |
commit | 238bd7f8a5131e9bc51a649553fd2fafaf6337c2 (patch) | |
tree | b8ba95c43cbf66ed98abab8cc0c1944aa03ea50f /src/xact.cc | |
parent | f745767fa68ad26195eed50b8c10dbaccba63e1e (diff) | |
download | fork-ledger-238bd7f8a5131e9bc51a649553fd2fafaf6337c2.tar.gz fork-ledger-238bd7f8a5131e9bc51a649553fd2fafaf6337c2.tar.bz2 fork-ledger-238bd7f8a5131e9bc51a649553fd2fafaf6337c2.zip |
Marked all strings needing internationalization
These strings are now collected automagically in the file po/ledger.pot.
If you'd like to produce a translation, just run this command after
building Ledger:
msginit -l LOCALE -o LANG.po -i po/ledger.pot
Where LOCALE is a string like de or en_GB, and LANG is a short
descriptive word for your language.
Then send me this .po file so I can commit it to the Ledger sources
(alternatively, you could maintain the file in a fork on GitHub), and
setup the build script to format and install your new message catalog
during a "make install".
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; |