diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-25 03:51:42 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-25 03:51:42 -0400 |
commit | 238bd7f8a5131e9bc51a649553fd2fafaf6337c2 (patch) | |
tree | b8ba95c43cbf66ed98abab8cc0c1944aa03ea50f /src/commodity.cc | |
parent | f745767fa68ad26195eed50b8c10dbaccba63e1e (diff) | |
download | fork-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/commodity.cc')
-rw-r--r-- | src/commodity.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/commodity.cc b/src/commodity.cc index 1721697c..8fd11e4d 100644 --- a/src/commodity.cc +++ b/src/commodity.cc @@ -365,7 +365,7 @@ optional<commodity_t::base_t::history_t&> #if 0 // jww (2008-09-20): Document which option switch to use here throw_(commodity_error, - "Cannot determine price history: prices known for multiple commodities (use -?)"); + _("Cannot determine price history: prices known for multiple commodities (use -x)")); #endif comm = (*histories.begin()).first; } else { @@ -515,7 +515,7 @@ void commodity_t::parse_symbol(std::istream& in, string& symbol) if (c == '"') in.get(c); else - throw_(amount_error, "Quoted commodity symbol lacks closing quote"); + throw_(amount_error, _("Quoted commodity symbol lacks closing quote")); } else { char * _p = buf; c = in.peek(); @@ -582,7 +582,7 @@ void commodity_t::parse_symbol(char *& p, string& symbol) if (*p == '"') { char * q = std::strchr(p + 1, '"'); if (! q) - throw_(amount_error, "Quoted commodity symbol lacks closing quote"); + throw_(amount_error, _("Quoted commodity symbol lacks closing quote")); symbol = string(p + 1, 0, q - p - 1); p = q + 2; } else { @@ -594,7 +594,7 @@ void commodity_t::parse_symbol(char *& p, string& symbol) p += symbol.length(); } if (symbol.empty()) - throw_(amount_error, "Failed to parse commodity"); + throw_(amount_error, _("Failed to parse commodity")); } bool commodity_t::valid() const @@ -627,14 +627,14 @@ void annotation_t::parse(std::istream& in) char c = peek_next_nonws(in); if (c == '{') { if (price) - throw_(amount_error, "Commodity specifies more than one price"); + throw_(amount_error, _("Commodity specifies more than one price")); in.get(c); READ_INTO(in, buf, 255, c, c != '}'); if (c == '}') in.get(c); else - throw_(amount_error, "Commodity price lacks closing brace"); + throw_(amount_error, _("Commodity price lacks closing brace")); amount_t temp; temp.parse(buf, amount_t::PARSE_NO_MIGRATE); @@ -653,27 +653,27 @@ void annotation_t::parse(std::istream& in) } else if (c == '[') { if (date) - throw_(amount_error, "Commodity specifies more than one date"); + throw_(amount_error, _("Commodity specifies more than one date")); in.get(c); READ_INTO(in, buf, 255, c, c != ']'); if (c == ']') in.get(c); else - throw_(amount_error, "Commodity date lacks closing bracket"); + throw_(amount_error, _("Commodity date lacks closing bracket")); date = parse_date(buf); } else if (c == '(') { if (tag) - throw_(amount_error, "Commodity specifies more than one tag"); + throw_(amount_error, _("Commodity specifies more than one tag")); in.get(c); READ_INTO(in, buf, 255, c, c != ')'); if (c == ')') in.get(c); else - throw_(amount_error, "Commodity tag lacks closing parenthesis"); + throw_(amount_error, _("Commodity tag lacks closing parenthesis")); tag = buf; } @@ -895,7 +895,7 @@ namespace { assert(details); if (details.price && details.price->sign() < 0) - throw_(amount_error, "A commodity's price may not be negative"); + throw_(amount_error, _("A commodity's price may not be negative")); std::ostringstream name; comm.print(name); |