i18n // Fix the localization key name according to recent changes.

This commit is contained in:
ShikiSuen 2022-09-26 23:20:39 +08:00
parent f75bafdd01
commit df1a531c6c
6 changed files with 7 additions and 7 deletions

View File

@ -38,7 +38,7 @@ extension SessionCtl {
// Caps Lock // Caps Lock
if event.type == .flagsChanged, event.keyCode == KeyCode.kCapsLock.rawValue { if event.type == .flagsChanged, event.keyCode == KeyCode.kCapsLock.rawValue {
let isCapsLockTurnedOn = event.modifierFlags.intersection(.deviceIndependentFlagsMask).contains(.capsLock) let isCapsLockTurnedOn = event.modifierFlags.intersection(.deviceIndependentFlagsMask).contains(.capsLock)
let status = NSLocalizedString("NotificationSwitchShift", comment: "") let status = NSLocalizedString("NotificationSwitchASCII", comment: "")
Notifier.notify( Notifier.notify(
message: isCapsLockTurnedOn message: isCapsLockTurnedOn
? "Caps Lock" + NSLocalizedString("Alphanumerical Input Mode", comment: "") + "\n" + status ? "Caps Lock" + NSLocalizedString("Alphanumerical Input Mode", comment: "") + "\n" + status
@ -61,7 +61,7 @@ extension SessionCtl {
if #available(macOS 10.15, *) { if #available(macOS 10.15, *) {
if Self.theShiftKeyDetector.check(event), !PrefMgr.shared.disableShiftTogglingAlphanumericalMode { if Self.theShiftKeyDetector.check(event), !PrefMgr.shared.disableShiftTogglingAlphanumericalMode {
if !shouldUseShiftToggleHandle || (!rencentKeyHandledByKeyHandlerEtc && shouldUseShiftToggleHandle) { if !shouldUseShiftToggleHandle || (!rencentKeyHandledByKeyHandlerEtc && shouldUseShiftToggleHandle) {
let status = NSLocalizedString("NotificationSwitchShift", comment: "") let status = NSLocalizedString("NotificationSwitchASCII", comment: "")
Notifier.notify( Notifier.notify(
message: isASCIIMode.toggled() message: isASCIIMode.toggled()
? NSLocalizedString("Alphanumerical Input Mode", comment: "") + "\n" + status ? NSLocalizedString("Alphanumerical Input Mode", comment: "") + "\n" + status

View File

@ -38,7 +38,7 @@
"Force KangXi Writing" = "Force KangXi Writing"; "Force KangXi Writing" = "Force KangXi Writing";
"NotificationSwitchON" = "✔ ON"; "NotificationSwitchON" = "✔ ON";
"NotificationSwitchOFF" = "✘ OFF"; "NotificationSwitchOFF" = "✘ OFF";
"NotificationSwitchShift" = "↺ Switched"; "NotificationSwitchASCII" = "↺ Switched";
"Edit User Phrases…" = "Edit User Phrases…"; "Edit User Phrases…" = "Edit User Phrases…";
"Reload User Phrases" = "Reload User Phrases"; "Reload User Phrases" = "Reload User Phrases";
"Unable to create the user phrase file." = "Unable to create the user phrase file."; "Unable to create the user phrase file." = "Unable to create the user phrase file.";

View File

@ -38,7 +38,7 @@
"Force KangXi Writing" = "Force KangXi Writing"; "Force KangXi Writing" = "Force KangXi Writing";
"NotificationSwitchON" = "✔ ON"; "NotificationSwitchON" = "✔ ON";
"NotificationSwitchOFF" = "✘ OFF"; "NotificationSwitchOFF" = "✘ OFF";
"NotificationSwitchShift" = "↺ Switched"; "NotificationSwitchASCII" = "↺ Switched";
"Edit User Phrases…" = "Edit User Phrases…"; "Edit User Phrases…" = "Edit User Phrases…";
"Reload User Phrases" = "Reload User Phrases"; "Reload User Phrases" = "Reload User Phrases";
"Unable to create the user phrase file." = "Unable to create the user phrase file."; "Unable to create the user phrase file." = "Unable to create the user phrase file.";

View File

@ -38,7 +38,7 @@
"Force KangXi Writing" = "康熙文字変換モード"; "Force KangXi Writing" = "康熙文字変換モード";
"NotificationSwitchON" = "✔ 機能起動"; "NotificationSwitchON" = "✔ 機能起動";
"NotificationSwitchOFF" = "✘ 機能停止"; "NotificationSwitchOFF" = "✘ 機能停止";
"NotificationSwitchShift" = "↺ 切替完了"; "NotificationSwitchASCII" = "↺ 切替完了";
"Edit User Phrases…" = "ユーザー辞書を編集…"; "Edit User Phrases…" = "ユーザー辞書を編集…";
"Reload User Phrases" = "ユーザー辞書を再び読込む"; "Reload User Phrases" = "ユーザー辞書を再び読込む";
"Unable to create the user phrase file." = "ユーザー辞書ファイルの作成は失敗しました。"; "Unable to create the user phrase file." = "ユーザー辞書ファイルの作成は失敗しました。";

View File

@ -38,7 +38,7 @@
"Force KangXi Writing" = "康熙正体字模式"; "Force KangXi Writing" = "康熙正体字模式";
"NotificationSwitchON" = "✔ 已启用"; "NotificationSwitchON" = "✔ 已启用";
"NotificationSwitchOFF" = "✘ 已停用"; "NotificationSwitchOFF" = "✘ 已停用";
"NotificationSwitchShift" = "↺ 切换完毕"; "NotificationSwitchASCII" = "↺ 切换完毕";
"Edit User Phrases…" = "编辑自订语汇…"; "Edit User Phrases…" = "编辑自订语汇…";
"Reload User Phrases" = "重载自订语汇"; "Reload User Phrases" = "重载自订语汇";
"Unable to create the user phrase file." = "无法创建自订语汇档案。"; "Unable to create the user phrase file." = "无法创建自订语汇档案。";

View File

@ -38,7 +38,7 @@
"Force KangXi Writing" = "康熙正體字模式"; "Force KangXi Writing" = "康熙正體字模式";
"NotificationSwitchON" = "✔ 已啟用"; "NotificationSwitchON" = "✔ 已啟用";
"NotificationSwitchOFF" = "✘ 已停用"; "NotificationSwitchOFF" = "✘ 已停用";
"NotificationSwitchShift" = "↺ 切換完畢"; "NotificationSwitchASCII" = "↺ 切換完畢";
"Edit User Phrases…" = "編輯自訂語彙…"; "Edit User Phrases…" = "編輯自訂語彙…";
"Reload User Phrases" = "重載自訂語彙"; "Reload User Phrases" = "重載自訂語彙";
"Unable to create the user phrase file." = "無法創建自訂語彙檔案。"; "Unable to create the user phrase file." = "無法創建自訂語彙檔案。";