Localization of the shuttle call sender (#32286)

This commit is contained in:
chavonadelal
2024-09-18 22:16:47 +03:00
committed by GitHub
parent 9fad1ab14e
commit 6d4177567e
2 changed files with 4 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ namespace Content.Server.RoundEnd
return _countdownTokenSource != null; 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; var duration = DefaultCountdownDuration;
@@ -143,7 +143,7 @@ namespace Content.Server.RoundEnd
RequestRoundEnd(duration, requester, checkCooldown, text, name); 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) if (_gameTicker.RunLevel != GameRunLevel.InRound)
return; return;
@@ -183,7 +183,7 @@ namespace Content.Server.RoundEnd
_chatSystem.DispatchGlobalAnnouncement(Loc.GetString(text, _chatSystem.DispatchGlobalAnnouncement(Loc.GetString(text,
("time", time), ("time", time),
("units", Loc.GetString(units))), ("units", Loc.GetString(units))),
name, Loc.GetString(name),
false, false,
null, null,
Color.Gold); Color.Gold);

View 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-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-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-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}... round-end-system-round-restart-eta-announcement = Restarting the round in {$time} {$units}...
eta-units-minutes = minutes eta-units-minutes = minutes