Load-game dialog now displays the Campaign's name instead of its internal id;...

...also, translated

(This does not break existing translations, rather improves their
effectivity)
This commit is contained in:
Ignacio R. Morelle 2008-03-17 11:09:23 +00:00
parent 54ae7592a4
commit 74edd48d0a

View file

@ -550,9 +550,10 @@ void save_preview_pane::draw_contents()
str << "\n";
if(campaign_type == "scenario") {
const config* campaign = game_config_->find_child("campaign","id",summary["campaign"]);
utils::string_map symbols;
symbols["campaign_name"] = summary["campaign"];
str << vgettext("Campaign: $campaign_name", symbols);
symbols["campaign_name"] = (*campaign)["name"];
str << vgettext("Campaign: $campaign_name", symbols); // FIXME: isn't this superfluous?
} else if(campaign_type == "multiplayer") {
str << _("Multiplayer");
} else if(campaign_type == "tutorial") {