Commit 7bb5dc26 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[trac901] Message compiler uses new placeholders

parent 1e3c154c
......@@ -535,9 +535,12 @@ main(int argc, char* argv[]) {
string text = e.id();
text += ", ";
text += global.getText(e.id());
// Format with arguments
text = isc::util::str::format(text, e.arguments());
vector<string> args(e.arguments());
for (size_t i(0); i < args.size(); ++ i) {
replacePlaceholder(&text, args[i], i + 1);
}
cerr << text << "\n";
return 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment