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/option.h | |
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/option.h')
-rw-r--r-- | src/option.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/option.h b/src/option.h index b0d4e0f0..80be69c4 100644 --- a/src/option.h +++ b/src/option.h @@ -127,7 +127,7 @@ public: string str() const { assert(handled); if (value.empty()) - throw_(std::runtime_error, _("No argument provided for %1") << desc()); + throw_(std::runtime_error, _f("No argument provided for %1%") % desc()); return value; } @@ -168,18 +168,18 @@ public: value_t handler(call_scope_t& args) { if (wants_arg) { if (args.size() < 2) - throw_(std::runtime_error, _("No argument provided for %1") << desc()); + throw_(std::runtime_error, _f("No argument provided for %1%") % desc()); else if (args.size() > 2) - throw_(std::runtime_error, _("To many arguments provided for %1") << desc()); + throw_(std::runtime_error, _f("To many arguments provided for %1%") % desc()); else if (! args[0].is_string()) - throw_(std::runtime_error, _("Context argument for %1 not a string") << desc()); + throw_(std::runtime_error, _f("Context argument for %1% not a string") % desc()); on(args.get<string>(0), args.get<string>(1)); } else if (args.size() < 1) { - throw_(std::runtime_error, _("No argument provided for %1") << desc()); + throw_(std::runtime_error, _f("No argument provided for %1%") % desc()); } else if (! args[0].is_string()) { - throw_(std::runtime_error, _("Context argument for %1 not a string") << desc()); + throw_(std::runtime_error, _f("Context argument for %1% not a string") % desc()); } else { on(args.get<string>(0)); |