summaryrefslogtreecommitdiff
path: root/src/draft.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/draft.cc')
-rw-r--r--src/draft.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/draft.cc b/src/draft.cc
index 43c214cb..c5f37f42 100644
--- a/src/draft.cc
+++ b/src/draft.cc
@@ -68,7 +68,7 @@ void draft_t::xact_template_t::dump(std::ostream& out) const
} else {
foreach (const post_template_t& post, posts) {
out << std::endl
- << STR(_("[Posting \"%1\"]") << (post.from ? _("from") : _("to")))
+ << _f("[Posting \"%1\"]") % (post.from ? _("from") : _("to"))
<< std::endl;
if (post.account_mask)
@@ -307,8 +307,8 @@ xact_t * draft_t::insert(journal_t& journal)
}
} else {
throw_(std::runtime_error,
- _("No accounts, and no past transaction matching '%1'")
- << tmpl->payee_mask);
+ _f("No accounts, and no past transaction matching '%1%'")
+ % tmpl->payee_mask);
}
} else {
DEBUG("draft.xact", "Template had postings");