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.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/filters.cc') diff --git a/src/filters.cc b/src/filters.cc index 8b5bca1e..7f305dd3 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -48,7 +48,7 @@ pass_down_posts::pass_down_posts(post_handler_ptr handler, item_handler::operator()(*post); } catch (const std::exception& err) { - add_error_context(item_context(*post, "While handling posting")); + add_error_context(item_context(*post, _("While handling posting"))); throw; } } @@ -401,7 +401,7 @@ void changed_value_posts::output_diff(post_t * post, const date_t& date) xact_temps.push_back(xact_t()); xact_t& xact = xact_temps.back(); - xact.payee = "Commodities revalued"; + xact.payee = _("Commodities revalued"); xact._date = is_valid(date) ? date : post->date(); handle_value(diff, &revalued_account, &xact, POST_EXT_NO_TOTAL, @@ -576,7 +576,7 @@ void posts_as_equity::report_subtotal() xact_temps.push_back(xact_t()); xact_t& xact = xact_temps.back(); - xact.payee = "Opening Balances"; + xact.payee = _("Opening Balances"); xact._date = finish; value_t total = 0L; @@ -714,7 +714,7 @@ void budget_posts::report_budget_items(const date_t& date) xact_temps.push_back(xact_t()); xact_t& xact = xact_temps.back(); - xact.payee = "Budget transaction"; + xact.payee = _("Budget transaction"); xact._date = begin; post_temps.push_back(post); @@ -802,7 +802,7 @@ void forecast_posts::flush() xact_temps.push_back(xact_t()); xact_t& xact = xact_temps.back(); - xact.payee = "Forecast transaction"; + xact.payee = _("Forecast transaction"); xact._date = begin; post_temps.push_back(post); -- cgit v1.2.3