Skip to content

Commit

Permalink
MP Lobby: added translation hints for C/S markers
Browse files Browse the repository at this point in the history
(cherry-picked from commit 2503ac8)
  • Loading branch information
Vultraz committed Oct 7, 2018
1 parent da14573 commit ca5b152
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/game_initialization/lobby_data.cpp
Expand Up @@ -342,7 +342,7 @@ game_info::game_info(const config& game, const config& game_config, const std::v
}

if(*level_cfg) {
scenario = formatter() << make_game_type_marker(_("S"), false) << (*level_cfg)["name"].str();
scenario = formatter() << make_game_type_marker(_("scenario_abbreviation^S"), false) << (*level_cfg)["name"].str();
info_stream << scenario;

// Reloaded games do not match the original scenario hash, so it makes no sense
Expand Down Expand Up @@ -372,15 +372,15 @@ game_info::game_info(const config& game, const config& game_config, const std::v
addons_outcome = std::max(addons_outcome, result); // Elevate to most severe error level encountered so far
}
} else {
scenario = formatter() << make_game_type_marker(_("S"), true) << game["mp_scenario_name"].str();
scenario = formatter() << make_game_type_marker(_("scenario_abbreviation^S"), true) << game["mp_scenario_name"].str();
info_stream << scenario;
verified = false;
}
} else if(!game["mp_campaign"].empty()) {
if(const config& campaign_cfg = game_config.find_child("campaign", "id", game["mp_campaign"])) {
std::stringstream campaign_text;
campaign_text
<< make_game_type_marker(_("C"), false)
<< make_game_type_marker(_("campaign_abbreviation^C"), false)
<< campaign_cfg["name"] << spaced_em_dash()
<< game["mp_scenario_name"];

Expand All @@ -403,7 +403,7 @@ game_info::game_info(const config& game, const config& game_config, const std::v
addons_outcome = std::max(addons_outcome, result); // Elevate to most severe error level encountered so far
//}
} else {
scenario = formatter() << make_game_type_marker(_("C"), true) << game["mp_campaign_name"].str();
scenario = formatter() << make_game_type_marker(_("campaign_abbreviation^C"), true) << game["mp_campaign_name"].str();
info_stream << scenario;
verified = false;
}
Expand Down

0 comments on commit ca5b152

Please sign in to comment.