Admin UI localization (#29340)

admin ui localization

Co-authored-by: MetalSage <metalsage.official@gmail.com>
This commit is contained in:
MetalSage
2024-06-22 17:05:33 +04:00
committed by GitHub
parent df5c4df894
commit 061c1f520c
26 changed files with 86 additions and 51 deletions

View File

@@ -33,7 +33,7 @@ namespace Content.Client.Administration.UI.Tabs.AtmosTab
_gridData.Add(entManager.GetNetEntity(uid));
var player = playerManager.LocalEntity;
var playerGrid = entManager.GetComponentOrNull<TransformComponent>(player)?.GridUid;
GridOptions.AddItem($"{uid} {(playerGrid == uid ? " (Current)" : "")}");
GridOptions.AddItem($"{uid} {(playerGrid == uid ? Loc.GetString("admin-ui-atmos-grid-current") : "")}");
}
GridOptions.OnItemSelected += eventArgs => GridOptions.SelectId(eventArgs.Id);