Fix #13558: replay savegame name not translated
This commit is contained in:
parent
9014c68e0d
commit
ff3e84fc7e
2 changed files with 5 additions and 2 deletions
|
@ -5,6 +5,7 @@ CVS HEAD:
|
|||
* fixed help description of income and upkeep (#13565)
|
||||
* updated several unit descriptions
|
||||
* document that Woses receive no traits (#13630)
|
||||
* replay suggested save game now translated (#13558)
|
||||
* unit balancing and modifications:
|
||||
* max level units given After-Max-Level-Advancement (AMLA) of 3 HP/100XP
|
||||
with no auto-heal; Necrophage has healing AMLA with no bonus HP
|
||||
|
|
|
@ -127,7 +127,9 @@ LEVEL_RESULT play_game(display& disp, game_state& state, const config& game_conf
|
|||
bool save_game_after_scenario = true;
|
||||
|
||||
try {
|
||||
state.label = (*scenario)["name"];
|
||||
// preserve old label eg. replay
|
||||
if (state.label.empty())
|
||||
state.label = (*scenario)["name"];
|
||||
|
||||
LEVEL_RESULT res = play_level(units_data,game_config,scenario,video,state,story);
|
||||
|
||||
|
@ -138,7 +140,7 @@ LEVEL_RESULT play_game(display& disp, game_state& state, const config& game_conf
|
|||
const std::string orig_scenario = state.scenario;
|
||||
state.scenario = current_scenario;
|
||||
|
||||
std::string label = state.label + " replay";
|
||||
std::string label = state.label + _(" replay");
|
||||
|
||||
bool retry = true;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue