]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Make location in crew monitoring console localizable (#40247)
authorSer11y <160628372+Ser1-1y@users.noreply.github.com>
Tue, 9 Sep 2025 20:11:24 +0000 (23:11 +0300)
committerGitHub <noreply@github.com>
Tue, 9 Sep 2025 20:11:24 +0000 (22:11 +0200)
Content.Client/Medical/CrewMonitoring/CrewMonitoringNavMapControl.cs
Resources/Locale/en-US/ui/navmap.ftl

index 340cc9af891c76ee0a7d7de8f9fba5c2e213a4ab..651c76e61f1725d60b2f208e06095ad23239bda2 100644 (file)
@@ -64,7 +64,9 @@ public sealed partial class CrewMonitoringNavMapControl : NavMapControl
             if (!LocalizedNames.TryGetValue(netEntity, out var name))
                 name = "Unknown";
 
-            var message = name + "\nLocation: [x = " + MathF.Round(blip.Coordinates.X) + ", y = " + MathF.Round(blip.Coordinates.Y) + "]";
+            var message = name + "\n" + Loc.GetString("navmap-location",
+                ("x", MathF.Round(blip.Coordinates.X)),
+                ("y", MathF.Round(blip.Coordinates.Y)));
 
             _trackedEntityLabel.Text = message;
             _trackedEntityPanel.Visible = true;
index 3c2aad12718ad6b269fd825ab0c5d688f178d6a7..30f1da56b80c4ca986331ecad6f08e8383cae01d 100644 (file)
@@ -1,3 +1,4 @@
 navmap-zoom = Zoom: {$value}x
 navmap-recenter = Recenter
 navmap-toggle-beacons = Show departments
+navmap-location = Location: [x = {$x}, y = {$y}]