From b13036b2ff76a8a51886dfd053f4f828b4ad8be9 Mon Sep 17 00:00:00 2001 From: Constrat <56174894+Constrat@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:13:23 +0100 Subject: [PATCH] feat: GetLocalizedNames for Infrast and Copilot output (#10335) * feat: GetLocalizedNames for Infrast output * feat: Localization for Copilot steps * i18n: EN tweak --- src/MaaWpfGui/Main/AsstProxy.cs | 4 ++-- src/MaaWpfGui/Res/Localizations/en-us.xaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MaaWpfGui/Main/AsstProxy.cs b/src/MaaWpfGui/Main/AsstProxy.cs index 038f662db3..5ebd927cf7 100644 --- a/src/MaaWpfGui/Main/AsstProxy.cs +++ b/src/MaaWpfGui/Main/AsstProxy.cs @@ -1454,7 +1454,7 @@ namespace MaaWpfGui.Main string.Format( LocalizationHelper.GetString("CurrentSteps"), subTaskDetails["action"], - subTaskDetails["target"])); + DataHelper.GetLocalizedCharacterName(subTaskDetails["target"]?.ToString()))); break; } @@ -1497,7 +1497,7 @@ namespace MaaWpfGui.Main case "CustomInfrastRoomOperators": string nameStr = (subTaskDetails!["names"] ?? new JArray()) - .Aggregate(string.Empty, (current, name) => current + name + ", "); + .Aggregate(string.Empty, (current, name) => current + DataHelper.GetLocalizedCharacterName(name.ToString()) + ", "); if (nameStr != string.Empty) { diff --git a/src/MaaWpfGui/Res/Localizations/en-us.xaml b/src/MaaWpfGui/Res/Localizations/en-us.xaml index 4ace6b2b23..ed18633dff 100644 --- a/src/MaaWpfGui/Res/Localizations/en-us.xaml +++ b/src/MaaWpfGui/Res/Localizations/en-us.xaml @@ -753,7 +753,7 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla Use formation Current Start formation - Selection of operator: + Operator selected: Current step: {0} {1} Unsupported stage, please check the level name or go to「Settings - Update - Check update」and try updating the resource version! Due to server resource constraints, resource version updates are temporarily suspended. Please manually import the level file or wait for a new version release