Skip to content

Commit

Permalink
saves: Add a po comment to the string "replay".
Browse files Browse the repository at this point in the history
  • Loading branch information
jostephd committed Oct 17, 2019
1 parent 384079a commit ce4901e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/save_index.cpp
Expand Up @@ -233,6 +233,9 @@ std::string save_info::format_time_summary() const

bool save_info_less_time::operator()(const save_info& a, const save_info& b) const
{
// This translatable string must be same one as in replay_savegame::create_initial_filename.
// TODO: we really shouldn't be relying on translatable strings like this, especially since
// old savefiles may have been created in a different language than the current UI language
const std::string replay_str = " " + _("replay");
if(a.modified() > b.modified()) {
return true;
Expand Down
1 change: 1 addition & 0 deletions src/savegame.cpp
Expand Up @@ -544,6 +544,7 @@ replay_savegame::replay_savegame(saved_game &gamestate, const compression::forma

std::string replay_savegame::create_initial_filename(unsigned int) const
{
// TRANSLATORS: This string is used as part of a filename, as in, "HttT-The Elves Besieged replay.gz"
return formatter() << gamestate().classification().label << " " << _("replay");
}

Expand Down

0 comments on commit ce4901e

Please sign in to comment.