From 4cceface6f12f95351efc452ab79257c354f388b Mon Sep 17 00:00:00 2001 From: Morber <14136326+Morb0@users.noreply.github.com> Date: Wed, 29 Jun 2022 06:13:36 +0300 Subject: [PATCH] Localize ETA units (#9267) --- Content.Server/RoundEnd/RoundEndSystem.cs | 6 +++--- Resources/Locale/en-US/round-end/round-end-system.ftl | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Content.Server/RoundEnd/RoundEndSystem.cs b/Content.Server/RoundEnd/RoundEndSystem.cs index 46b02c8ca0..c83eef33ca 100644 --- a/Content.Server/RoundEnd/RoundEndSystem.cs +++ b/Content.Server/RoundEnd/RoundEndSystem.cs @@ -116,17 +116,17 @@ namespace Content.Server.RoundEnd if (countdownTime.TotalSeconds < 60) { time = countdownTime.Seconds; - units = "seconds"; + units = "eta-units-seconds"; } else { time = countdownTime.Minutes; - units = "minutes"; + units = "eta-units-minutes"; } _chatSystem.DispatchGlobalStationAnnouncement(Loc.GetString("round-end-system-shuttle-called-announcement", ("time", time), - ("units", units)), + ("units", Loc.GetString(units))), Loc.GetString("Station"), false, Color.Gold); diff --git a/Resources/Locale/en-US/round-end/round-end-system.ftl b/Resources/Locale/en-US/round-end/round-end-system.ftl index bfbe279156..9c349e1d86 100644 --- a/Resources/Locale/en-US/round-end/round-end-system.ftl +++ b/Resources/Locale/en-US/round-end/round-end-system.ftl @@ -3,3 +3,6 @@ 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-round-restart-eta-announcement = Restarting the round in {$minutes} minutes... + +eta-units-minutes = minutes +eta-units-seconds = seconds