From 238bd7f8a5131e9bc51a649553fd2fafaf6337c2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 25 Feb 2009 03:51:42 -0400 Subject: 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". --- src/xact.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/xact.cc') 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; -- cgit v1.2.3