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/expr.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/expr.cc')
-rw-r--r-- | src/expr.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.cc b/src/expr.cc index b9252714..2e96773b 100644 --- a/src/expr.cc +++ b/src/expr.cc @@ -145,7 +145,7 @@ value_t expr_t::calc(scope_t& scope) } catch (const std::exception& err) { if (locus) { - add_error_context("While evaluating value expression:"); + add_error_context(_("While evaluating value expression:")); add_error_context(op_context(ptr, locus)); } throw; @@ -207,7 +207,7 @@ std::ostream& operator<<(std::ostream& out, const expr_t& expr) { string expr_context(const expr_t& expr) { - return expr ? op_context(expr.ptr) : "<empty expression>"; + return expr ? op_context(expr.ptr) : _("<empty expression>"); } } // namespace ledger |