summaryrefslogtreecommitdiff
path: root/src/filters.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-25 03:51:42 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-25 03:51:42 -0400
commit238bd7f8a5131e9bc51a649553fd2fafaf6337c2 (patch)
treeb8ba95c43cbf66ed98abab8cc0c1944aa03ea50f /src/filters.cc
parentf745767fa68ad26195eed50b8c10dbaccba63e1e (diff)
downloadfork-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/filters.cc')
-rw-r--r--src/filters.cc10
1 files changed, 5 insertions, 5 deletions
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<post_t>::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);