Fixes map vote localisation issue (#16904)

This commit is contained in:
alexkar598
2023-05-28 14:19:08 -04:00
committed by GitHub
parent 49cb9d0e1e
commit babe032575
2 changed files with 3 additions and 2 deletions

View File

@@ -214,7 +214,8 @@ namespace Content.Server.Voting.Managers
}
else
{
_chatManager.DispatchServerAnnouncement(Loc.GetString("ui-vote-map-notlobby-time"));
var timeString = $"{ticker.RoundPreloadTime.Minutes:0}:{ticker.RoundPreloadTime.Seconds:00}";
_chatManager.DispatchServerAnnouncement(Loc.GetString("ui-vote-map-notlobby-time", ("time", timeString)));
}
}
};

View File

@@ -17,5 +17,5 @@ ui-vote-gamemode-win = { $winner } won the gamemode vote!
ui-vote-map-title = Next map
ui-vote-map-tie = Tie for map vote! Picking... { $picked }
ui-vote-map-win = { $winner } won the map vote!
ui-vote-map-notlobby-time = Voting for maps is only valid in the pre-round lobby!
ui-vote-map-notlobby = Voting for maps is only valid in the pre-round lobby!
ui-vote-map-notlobby-time = Voting for maps is only valid in the pre-round lobby with { $time } remaining!