summaryrefslogtreecommitdiff
path: root/src/py_amount.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/py_amount.cc')
-rw-r--r--src/py_amount.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/py_amount.cc b/src/py_amount.cc
index 980e049b..b016b7e7 100644
--- a/src/py_amount.cc
+++ b/src/py_amount.cc
@@ -66,7 +66,7 @@ void py_parse_2(amount_t& amount, object in, unsigned char flags) {
amount.parse(instr, flags);
} else {
PyErr_SetString(PyExc_IOError,
- "Argument to amount.parse(file) is not a file object");
+ _("Argument to amount.parse(file) is not a file object"));
}
}
void py_parse_1(amount_t& amount, object in) {
@@ -87,7 +87,7 @@ void py_print(amount_t& amount, object out)
amount.print(outstr);
} else {
PyErr_SetString(PyExc_IOError,
- "Argument to amount.print_(file) is not a file object");
+ _("Argument to amount.print_(file) is not a file object"));
}
}
@@ -125,8 +125,8 @@ void export_amount()
.def(init<std::string>())
.def("exact", &amount_t::exact, args("value"),
- "Construct an amount object whose display precision is always equal to its\n\
-internal precision.")
+ _("Construct an amount object whose display precision is always equal to its\n\
+internal precision."))
.staticmethod("exact")
.def(init<amount_t>())