summaryrefslogtreecommitdiff
path: root/src/stream.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/stream.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/stream.cc')
-rw-r--r--src/stream.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stream.cc b/src/stream.cc
index df45e5f5..5c109831 100644
--- a/src/stream.cc
+++ b/src/stream.cc
@@ -65,11 +65,11 @@ namespace {
int status = pipe(pfd);
if (status == -1)
- throw std::logic_error("Failed to create pipe");
+ throw std::logic_error(_("Failed to create pipe"));
status = fork();
if (status < 0) {
- throw std::logic_error("Failed to fork child process");
+ throw std::logic_error(_("Failed to fork child process"));
}
else if (status == 0) { // child
// Duplicate pipe's reading end into stdin
@@ -130,7 +130,7 @@ void output_stream_t::close()
int status;
wait(&status);
if (! WIFEXITED(status) || WEXITSTATUS(status) != 0)
- throw std::logic_error("Error in the pager");
+ throw std::logic_error(_("Error in the pager"));
}
}