localize shuttle timer eta etd (#24204)

This commit is contained in:
lzk
2024-01-17 23:20:30 +01:00
committed by GitHub
parent 24aaba884d
commit 89e765c9cb
2 changed files with 4 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ public sealed class ShuttleTimerSystem : EntitySystem
args.Data.TryGetValue(ShuttleTimerMasks.SourceMap, out EntityUid? source); args.Data.TryGetValue(ShuttleTimerMasks.SourceMap, out EntityUid? source);
args.Data.TryGetValue(ShuttleTimerMasks.DestMap, out EntityUid? dest); args.Data.TryGetValue(ShuttleTimerMasks.DestMap, out EntityUid? dest);
args.Data.TryGetValue(ShuttleTimerMasks.Docked, out bool docked); args.Data.TryGetValue(ShuttleTimerMasks.Docked, out bool docked);
string?[] text = new string?[] { docked ? "ETD" : "ETA" }; string?[] text = new string?[] { docked ? Loc.GetString("shuttle-timer-etd") : Loc.GetString("shuttle-timer-eta")};
switch (timerXform.MapUid) switch (timerXform.MapUid)
{ {
@@ -51,7 +51,7 @@ public sealed class ShuttleTimerSystem : EntitySystem
break; break;
case var remote when remote == dest: case var remote when remote == dest:
key = ShuttleTimerMasks.DestTime; key = ShuttleTimerMasks.DestTime;
text = new string?[] { "ETA" }; text = new string?[] { Loc.GetString("shuttle-timer-eta") };
break; break;
default: default:
return; return;

View File

@@ -0,0 +1,2 @@
shuttle-timer-eta = ETA
shuttle-timer-etd = ETD