From: Ser11y <160628372+Ser1-1y@users.noreply.github.com> Date: Tue, 9 Sep 2025 20:11:24 +0000 (+0300) Subject: Make location in crew monitoring console localizable (#40247) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=da210e812b0c4d8af906090b5a6e59f950d54fd3;p=space-station-14.git Make location in crew monitoring console localizable (#40247) --- diff --git a/Content.Client/Medical/CrewMonitoring/CrewMonitoringNavMapControl.cs b/Content.Client/Medical/CrewMonitoring/CrewMonitoringNavMapControl.cs index 340cc9af89..651c76e61f 100644 --- a/Content.Client/Medical/CrewMonitoring/CrewMonitoringNavMapControl.cs +++ b/Content.Client/Medical/CrewMonitoring/CrewMonitoringNavMapControl.cs @@ -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; diff --git a/Resources/Locale/en-US/ui/navmap.ftl b/Resources/Locale/en-US/ui/navmap.ftl index 3c2aad1271..30f1da56b8 100644 --- a/Resources/Locale/en-US/ui/navmap.ftl +++ b/Resources/Locale/en-US/ui/navmap.ftl @@ -1,3 +1,4 @@ navmap-zoom = Zoom: {$value}x navmap-recenter = Recenter navmap-toggle-beacons = Show departments +navmap-location = Location: [x = {$x}, y = {$y}]