Make location in crew monitoring console localizable (#40247)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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}]
|
||||||
|
|||||||
Reference in New Issue
Block a user