summaryrefslogtreecommitdiff
path: root/src/draft.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-14 21:36:42 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-05-14 21:44:00 -0600
commitf4f3058b8cd75c04080f9b68cb54b9584eafb39f (patch)
treeeca9ca6ceca001209fb93c05b52e21031280d18c /src/draft.cc
parent96172669053bbba7263a370f109f70615049a0c6 (diff)
downloadfork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.gz
fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.bz2
fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.zip
Switch to using Boost.Format
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");