From f4f3058b8cd75c04080f9b68cb54b9584eafb39f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 14 May 2012 21:36:42 -0600 Subject: Switch to using Boost.Format --- src/draft.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/draft.cc') 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"); -- cgit v1.2.3