From 04cb2657bf87219b21fae440bbbbeb25e5141c07 Mon Sep 17 00:00:00 2001 From: chavonadelal <156101927+chavonadelal@users.noreply.github.com> Date: Tue, 9 Jul 2024 16:37:00 +0300 Subject: [PATCH] Action menu localization (#29839) --- .../UserInterface/Systems/Actions/Windows/ActionsWindow.xaml | 2 +- .../Systems/Actions/Windows/ActionsWindow.xaml.cs | 2 +- Resources/Locale/en-US/actions/ui/actionmenu.ftl | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Content.Client/UserInterface/Systems/Actions/Windows/ActionsWindow.xaml b/Content.Client/UserInterface/Systems/Actions/Windows/ActionsWindow.xaml index 52346adba274e0..443b79242e7d60 100644 --- a/Content.Client/UserInterface/Systems/Actions/Windows/ActionsWindow.xaml +++ b/Content.Client/UserInterface/Systems/Actions/Windows/ActionsWindow.xaml @@ -3,7 +3,7 @@ xmlns:windows="clr-namespace:Content.Client.UserInterface.Systems.Actions.Windows" Name="ActionsList" HorizontalExpand="True" - Title="Actions" + Title="{Loc ui-actionmenu-title}" VerticalExpand="True" Resizable="True" MinHeight="300" diff --git a/Content.Client/UserInterface/Systems/Actions/Windows/ActionsWindow.xaml.cs b/Content.Client/UserInterface/Systems/Actions/Windows/ActionsWindow.xaml.cs index fbe1e71535dde5..f972a96eb74fb8 100644 --- a/Content.Client/UserInterface/Systems/Actions/Windows/ActionsWindow.xaml.cs +++ b/Content.Client/UserInterface/Systems/Actions/Windows/ActionsWindow.xaml.cs @@ -26,7 +26,7 @@ public ActionsWindow() foreach (var filter in Enum.GetValues()) { - FilterButton.AddItem(filter.ToString(), filter); + FilterButton.AddItem(Loc.GetString($"ui-actionmenu-{filter.ToString().ToLower()}"), filter); } } diff --git a/Resources/Locale/en-US/actions/ui/actionmenu.ftl b/Resources/Locale/en-US/actions/ui/actionmenu.ftl index a6f0dee53421fc..47fdb43f699294 100644 --- a/Resources/Locale/en-US/actions/ui/actionmenu.ftl +++ b/Resources/Locale/en-US/actions/ui/actionmenu.ftl @@ -9,3 +9,8 @@ ui-actionmenu-clear-button = Clear ui-actionsui-function-lock-action-slots = (Un)lock dragging and clearing action slots ui-actionsui-function-open-abilities-menu = Open action menu +ui-actionmenu-enabled = Enabled +ui-actionmenu-item = Item +ui-actionmenu-innate = Innate +ui-actionmenu-instant = Instant +ui-actionmenu-targeted = Targeted