Localize ETA units (#9267)

This commit is contained in:
Morber
2022-06-29 06:13:36 +03:00
committed by GitHub
parent bb04646bbe
commit 4cceface6f
2 changed files with 6 additions and 3 deletions

View File

@@ -116,17 +116,17 @@ namespace Content.Server.RoundEnd
if (countdownTime.TotalSeconds < 60) if (countdownTime.TotalSeconds < 60)
{ {
time = countdownTime.Seconds; time = countdownTime.Seconds;
units = "seconds"; units = "eta-units-seconds";
} }
else else
{ {
time = countdownTime.Minutes; time = countdownTime.Minutes;
units = "minutes"; units = "eta-units-minutes";
} }
_chatSystem.DispatchGlobalStationAnnouncement(Loc.GetString("round-end-system-shuttle-called-announcement", _chatSystem.DispatchGlobalStationAnnouncement(Loc.GetString("round-end-system-shuttle-called-announcement",
("time", time), ("time", time),
("units", units)), ("units", Loc.GetString(units))),
Loc.GetString("Station"), Loc.GetString("Station"),
false, false,
Color.Gold); Color.Gold);

View File

@@ -3,3 +3,6 @@
round-end-system-shuttle-called-announcement = An emergency shuttle has been sent. ETA: {$time} {$units}. round-end-system-shuttle-called-announcement = An emergency shuttle has been sent. ETA: {$time} {$units}.
round-end-system-shuttle-recalled-announcement = The emergency shuttle has been recalled. round-end-system-shuttle-recalled-announcement = The emergency shuttle has been recalled.
round-end-system-round-restart-eta-announcement = Restarting the round in {$minutes} minutes... round-end-system-round-restart-eta-announcement = Restarting the round in {$minutes} minutes...
eta-units-minutes = minutes
eta-units-seconds = seconds