diff options
author | John Wiegley <johnw@newartisans.com> | 2012-05-14 21:36:42 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-05-14 21:44:00 -0600 |
commit | f4f3058b8cd75c04080f9b68cb54b9584eafb39f (patch) | |
tree | eca9ca6ceca001209fb93c05b52e21031280d18c /src/global.cc | |
parent | 96172669053bbba7263a370f109f70615049a0c6 (diff) | |
download | fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.gz fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.bz2 fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.zip |
Switch to using Boost.Format
Diffstat (limited to 'src/global.cc')
-rw-r--r-- | src/global.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/global.cc b/src/global.cc index 6dc8d150..285fdea3 100644 --- a/src/global.cc +++ b/src/global.cc @@ -121,8 +121,8 @@ void global_scope_t::read_init() if (session().journal->read(parsing_context) > 0 || session().journal->auto_xacts.size() > 0 || session().journal->period_xacts.size() > 0) { - throw_(parse_error, _("Transactions found in initialization file '%1'") - << init_file); + throw_(parse_error, _f("Transactions found in initialization file '%1%'") + % init_file); } TRACE_FINISH(init, 1); @@ -203,7 +203,7 @@ void global_scope_t::execute_command(strings_list args, bool at_repl) report().normalize_options(verb); if (! bool(command = look_for_command(bound_scope, verb))) - throw_(std::logic_error, _("Unrecognized command '%1'") << verb); + throw_(std::logic_error, _f("Unrecognized command '%1%'") % verb); } // Create the output stream (it might be a file, the console or a PAGER |