From 8d1e68a85554fb18e5f2ce5fd3b9571a5da9afb7 Mon Sep 17 00:00:00 2001 From: Sharker <1548742234@qq.com> Date: Thu, 1 Feb 2024 16:42:01 +0800 Subject: [PATCH] fix: optimize alter message --- Easydict/App/Localizable.xcstrings | 10 +++++----- .../Tabs/View/Shortcut/GeneralShortcutSetting.swift | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Easydict/App/Localizable.xcstrings b/Easydict/App/Localizable.xcstrings index 99c333888..6e2c2cf10 100644 --- a/Easydict/App/Localizable.xcstrings +++ b/Easydict/App/Localizable.xcstrings @@ -3102,19 +3102,19 @@ } } }, - "shortcut_confict" : { + "shortcut_confict %@" : { "extractionState" : "manual", "localizations" : { "en" : { "stringUnit" : { "state" : "translated", - "value" : "Shortcut Confict" + "value" : "%@" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "快捷键冲突" + "value" : "%@" } } } @@ -3151,7 +3151,7 @@ "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "当前快捷键无法使用,因为它已被\n“%@”占用" + "value" : "当前快捷键无法使用,因为它已被\n\"%@\"占用" } } } @@ -3171,7 +3171,7 @@ "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "快捷键”%@“,无法使用" + "value" : "快捷键\"%@\",无法使用" } } } diff --git a/Easydict/NewApp/View/SettingView/Tabs/View/Shortcut/GeneralShortcutSetting.swift b/Easydict/NewApp/View/SettingView/Tabs/View/Shortcut/GeneralShortcutSetting.swift index aaede6309..7387a5b32 100644 --- a/Easydict/NewApp/View/SettingView/Tabs/View/Shortcut/GeneralShortcutSetting.swift +++ b/Easydict/NewApp/View/SettingView/Tabs/View/Shortcut/GeneralShortcutSetting.swift @@ -54,7 +54,7 @@ extension ShortcutTab { Text("global_shortcut_setting") } - .alert(String(localized: "shortcut_confict"), + .alert(String(localized: "shortcut_confict \(confictAlterMessage.title)"), isPresented: showAlter, presenting: confictAlterMessage) { _ in