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/filters.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/filters.h') diff --git a/src/filters.h b/src/filters.h index a2ab5aec..8bc121ba 100644 --- a/src/filters.h +++ b/src/filters.h @@ -389,7 +389,7 @@ public: display_predicate(_display_predicate), only_predicate(_only_predicate), count(0), last_xact(NULL), last_post(NULL), - totals_account(NULL, ""), + totals_account(NULL, _("")), only_collapse_if_zero(_only_collapse_if_zero) { TRACE_CTOR(collapse_posts, "post_handler_ptr"); } @@ -468,7 +468,7 @@ public: bool _changed_values_only) : item_handler(handler), total_expr(_total_expr), report(_report), changed_values_only(_changed_values_only), - last_post(NULL), revalued_account(NULL, "") { + last_post(NULL), revalued_account(NULL, _("")) { TRACE_CTOR(changed_value_posts, "post_handler_ptr, const expr_t&, report_t&, bool"); } @@ -583,7 +583,7 @@ public: bool _exact_periods = false, bool _generate_empty_posts = false) : subtotal_posts(_handler, amount_expr), interval(_interval), - last_post(NULL), empty_account(NULL, ""), + last_post(NULL), empty_account(NULL, _("")), exact_periods(_exact_periods), generate_empty_posts(_generate_empty_posts) { TRACE_CTOR(interval_posts, @@ -615,9 +615,9 @@ class posts_as_equity : public subtotal_posts public: posts_as_equity(post_handler_ptr _handler, expr_t& amount_expr) : subtotal_posts(_handler, amount_expr), - equity_account(NULL, "Equity") { + equity_account(NULL, _("Equity")) { TRACE_CTOR(posts_as_equity, "post_handler_ptr, expr_t&"); - balance_account = equity_account.find_account("Opening Balances"); + balance_account = equity_account.find_account(_("Opening Balances")); } virtual ~posts_as_equity() throw() { TRACE_DTOR(posts_as_equity); -- cgit v1.2.3