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/py_journal.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/py_journal.cc') diff --git a/src/py_journal.cc b/src/py_journal.cc index b0328844..812dc881 100644 --- a/src/py_journal.cc +++ b/src/py_journal.cc @@ -83,7 +83,7 @@ post_t& posts_getitem(xact_base_t& xact, int i) std::size_t len = xact.posts.size(); if (abs(i) >= len) { - PyErr_SetString(PyExc_IndexError, "Index out of range"); + PyErr_SetString(PyExc_IndexError, _("Index out of range")); throw_error_already_set(); } @@ -117,7 +117,7 @@ xact_t& xacts_getitem(journal_t& journal, int i) std::size_t len = journal.xacts.size(); if (abs(i) >= len) { - PyErr_SetString(PyExc_IndexError, "Index out of range"); + PyErr_SetString(PyExc_IndexError, _("Index out of range")); throw_error_already_set(); } @@ -151,7 +151,7 @@ account_t& accounts_getitem(account_t& account, int i) std::size_t len = account.accounts.size(); if (abs(i) >= len) { - PyErr_SetString(PyExc_IndexError, "Index out of range"); + PyErr_SetString(PyExc_IndexError, _("Index out of range")); throw_error_already_set(); } -- cgit v1.2.3