]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Localization of the shuttle call sender (#32286)
authorchavonadelal <156101927+chavonadelal@users.noreply.github.com>
Wed, 18 Sep 2024 19:16:47 +0000 (22:16 +0300)
committerGitHub <noreply@github.com>
Wed, 18 Sep 2024 19:16:47 +0000 (21:16 +0200)
Content.Server/RoundEnd/RoundEndSystem.cs
Resources/Locale/en-US/round-end/round-end-system.ftl

index 82bdb78816f0c775d7e834d77feb49a479bf3b0f..bb5934f3f08d1257ba2919624009bf9e4cdd122b 100644 (file)
@@ -125,7 +125,7 @@ namespace Content.Server.RoundEnd
             return _countdownTokenSource != null;
         }
 
-        public void RequestRoundEnd(EntityUid? requester = null, bool checkCooldown = true, string text = "round-end-system-shuttle-called-announcement", string name = "Station")
+        public void RequestRoundEnd(EntityUid? requester = null, bool checkCooldown = true, string text = "round-end-system-shuttle-called-announcement", string name = "round-end-system-shuttle-sender-announcement")
         {
             var duration = DefaultCountdownDuration;
 
@@ -143,7 +143,7 @@ namespace Content.Server.RoundEnd
             RequestRoundEnd(duration, requester, checkCooldown, text, name);
         }
 
-        public void RequestRoundEnd(TimeSpan countdownTime, EntityUid? requester = null, bool checkCooldown = true, string text = "round-end-system-shuttle-called-announcement", string name = "Station")
+        public void RequestRoundEnd(TimeSpan countdownTime, EntityUid? requester = null, bool checkCooldown = true, string text = "round-end-system-shuttle-called-announcement", string name = "round-end-system-shuttle-sender-announcement")
         {
             if (_gameTicker.RunLevel != GameRunLevel.InRound)
                 return;
@@ -183,7 +183,7 @@ namespace Content.Server.RoundEnd
             _chatSystem.DispatchGlobalAnnouncement(Loc.GetString(text,
                 ("time", time),
                 ("units", Loc.GetString(units))),
-                name,
+                Loc.GetString(name),
                 false,
                 null,
                 Color.Gold);
index f86851506bc5eabfb116a416c64e6179f230c0c1..30069f71713903d473000adba9550d40a10ea0b6 100644 (file)
@@ -4,6 +4,7 @@ round-end-system-shuttle-called-announcement = An emergency shuttle has been sen
 round-end-system-shuttle-already-called-announcement = An emergency shuttle has already been sent.
 round-end-system-shuttle-auto-called-announcement = An automatic crew shift change shuttle has been sent. ETA: {$time} {$units}. Recall the shuttle to extend the shift.
 round-end-system-shuttle-recalled-announcement = The emergency shuttle has been recalled.
+round-end-system-shuttle-sender-announcement = Station
 round-end-system-round-restart-eta-announcement = Restarting the round in {$time} {$units}...
 
 eta-units-minutes = minutes