From dcff84c482702e8d0e8cc375f929a10042838e12 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sat, 22 Jul 2023 20:57:08 +0800 Subject: [PATCH] Installer // Add debug intel for certain NSAlert messages. --- Installer/AppDelegate_Extension.swift | 7 ++----- Installer/Resources/zh-Hans.lproj/Localizable.strings | 2 +- Installer/Resources/zh-Hant.lproj/Localizable.strings | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Installer/AppDelegate_Extension.swift b/Installer/AppDelegate_Extension.swift index e3f42e86..235bfc27 100644 --- a/Installer/AppDelegate_Extension.swift +++ b/Installer/AppDelegate_Extension.swift @@ -146,13 +146,10 @@ extension AppDelegate { let message = String( format: NSLocalizedString( "Cannot find input source %@ after registration.", comment: "" - ), + ) + "(#D41J0U8U)", imeIdentifier ) - runAlertPanel( - title: NSLocalizedString("Fatal Error", comment: ""), message: message, - buttonTitle: NSLocalizedString("Abort", comment: "") - ) + NSLog(message) } } diff --git a/Installer/Resources/zh-Hans.lproj/Localizable.strings b/Installer/Resources/zh-Hans.lproj/Localizable.strings index 05f6660c..ca8a829c 100644 --- a/Installer/Resources/zh-Hans.lproj/Localizable.strings +++ b/Installer/Resources/zh-Hans.lproj/Localizable.strings @@ -13,7 +13,7 @@ "Fatal Error" = "安装错误"; "Abort" = "放弃安装"; "Cannot register input source %@ at %@." = "无法从档案位置 %2$@ 安装输入法 \"%1$@\"。"; -"Cannot find input source %@ after registration." = "在注册完输入法 \"%@\" 仍然无法找到输入法。"; +"Cannot find input source %@ after registration." = "在注册完输入法 \"%@\" 之后仍然无法找到该输入法。"; "Warning" = "安装不完整"; "Input method may not be fully enabled. Please enable it through System Preferences > Keyboard > Input Sources." = "输入法已经安装好,但可能没有完全启用。请从「系统偏好设定」 > 「键盘」 > 「输入方式」分页加入输入法。"; "Continue" = "继续"; diff --git a/Installer/Resources/zh-Hant.lproj/Localizable.strings b/Installer/Resources/zh-Hant.lproj/Localizable.strings index f88236c6..49399ca9 100644 --- a/Installer/Resources/zh-Hant.lproj/Localizable.strings +++ b/Installer/Resources/zh-Hant.lproj/Localizable.strings @@ -13,7 +13,7 @@ "Fatal Error" = "安裝錯誤"; "Abort" = "放棄安裝"; "Cannot register input source %@ at %@." = "無法從檔案位置 %2$@ 安裝輸入法 \"%1$@\"。"; -"Cannot find input source %@ after registration." = "在註冊完輸入法 \"%@\" 仍然無法找到輸入法。"; +"Cannot find input source %@ after registration." = "在註冊完輸入法 \"%@\" 之後仍然無法找到該輸入法。"; "Warning" = "安裝不完整"; "Input method may not be fully enabled. Please enable it through System Preferences > Keyboard > Input Sources." = "輸入法已經安裝好,但可能沒有完全啟用。請從「系統偏好設定」 > 「鍵盤」 > 「輸入方式」分頁加入輸入法。"; "Continue" = "繼續";