Make location in crew monitoring console localizable (#40247)

This commit is contained in:
Ser11y
2025-09-09 23:11:24 +03:00
committed by GitHub
parent 088fa2013d
commit da210e812b
2 changed files with 4 additions and 1 deletions

View File

@@ -64,7 +64,9 @@ public sealed partial class CrewMonitoringNavMapControl : NavMapControl
if (!LocalizedNames.TryGetValue(netEntity, out var name)) if (!LocalizedNames.TryGetValue(netEntity, out var name))
name = "Unknown"; 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; _trackedEntityLabel.Text = message;
_trackedEntityPanel.Visible = true; _trackedEntityPanel.Visible = true;

View File

@@ -1,3 +1,4 @@
navmap-zoom = Zoom: {$value}x navmap-zoom = Zoom: {$value}x
navmap-recenter = Recenter navmap-recenter = Recenter
navmap-toggle-beacons = Show departments navmap-toggle-beacons = Show departments
navmap-location = Location: [x = {$x}, y = {$y}]