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/balance.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/balance.h') diff --git a/src/balance.h b/src/balance.h index e4f54696..a9684796 100644 --- a/src/balance.h +++ b/src/balance.h @@ -111,7 +111,7 @@ public: TRACE_CTOR(balance_t, "const amount_t&"); if (amt.is_null()) throw_(balance_error, - "Cannot initialize a balance from an uninitialized amount"); + _("Cannot initialize a balance from an uninitialized amount")); if (! amt.is_realzero()) amounts.insert(amounts_map::value_type(&amt.commodity(), amt)); } @@ -165,7 +165,7 @@ public: balance_t& operator=(const amount_t& amt) { if (amt.is_null()) throw_(balance_error, - "Cannot assign an uninitialized amount to a balance"); + _("Cannot assign an uninitialized amount to a balance")); amounts.clear(); if (! amt.is_realzero()) @@ -209,7 +209,7 @@ public: bool operator==(const amount_t& amt) const { if (amt.is_null()) throw_(balance_error, - "Cannot compare a balance to an uninitialized amount"); + _("Cannot compare a balance to an uninitialized amount")); if (amt.is_realzero()) return amounts.empty(); @@ -413,12 +413,12 @@ public: */ amount_t to_amount() const { if (is_empty()) - throw_(balance_error, "Cannot convert an empty balance to an amount"); + throw_(balance_error, _("Cannot convert an empty balance to an amount")); else if (amounts.size() == 1) return amounts.begin()->second; else throw_(balance_error, - "Cannot convert a balance with multiple commodities to an amount"); + _("Cannot convert a balance with multiple commodities to an amount")); } /** -- cgit v1.2.3