Skip to content

Commit

Permalink
add a vgettext
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Mar 24, 2018
1 parent 30f3a3e commit 48a810b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/synced_commands.cpp
Expand Up @@ -400,15 +400,13 @@ namespace
std::stringstream sbuilder;
// TODO: improve message and mark translatable.
sbuilder << "The game detected the use of a debug command, maybe another player is cheating";
sbuilder << "\n\n" << "details:" << "\n\n" << message;
sbuilder << "\n\n" << "details:" << "\n\n" << VGETTEXT(message, {{"player", current_team.current_player()}});
savegame::oos_savegame save(controller.get_saved_game(), ignore);
save.save_game_interactive(sbuilder.str(), savegame::savegame::YES_NO); // can throw quit_game_exception
}
else {
utils::string_map symbols;
symbols["player"] = resources::controller->current_team().current_player();
display::announce_options announce_options;
display::get_singleton()->announce(VGETTEXT(message, symbols), font::NORMAL_COLOR, announce_options);
display::get_singleton()->announce(VGETTEXT(message, {{"player", current_team.current_player()}}), font::NORMAL_COLOR, announce_options);
}
}
}
Expand Down

0 comments on commit 48a810b

Please sign in to comment.