i18n // Fix certain localization keys.

This commit is contained in:
ShikiSuen 2023-05-01 10:06:29 +08:00
parent 7d776baed5
commit 8d9d8e1b23
6 changed files with 7 additions and 7 deletions

View File

@ -47,7 +47,7 @@ public extension SessionCtl {
if event.type == .flagsChanged, event.keyCode == KeyCode.kCapsLock.rawValue { if event.type == .flagsChanged, event.keyCode == KeyCode.kCapsLock.rawValue {
DispatchQueue.main.async { DispatchQueue.main.async {
let isCapsLockTurnedOn = event.modifierFlags.intersection(.deviceIndependentFlagsMask).contains(.capsLock) let isCapsLockTurnedOn = event.modifierFlags.intersection(.deviceIndependentFlagsMask).contains(.capsLock)
let status = NSLocalizedString("NotificationSwitchASCII", comment: "") let status = NSLocalizedString("NotificationSwitchRevolver", comment: "")
guard PrefMgr.shared.showNotificationsWhenTogglingCapsLock else { return } guard PrefMgr.shared.showNotificationsWhenTogglingCapsLock else { return }
Notifier.notify( Notifier.notify(
message: isCapsLockTurnedOn message: isCapsLockTurnedOn
@ -61,7 +61,7 @@ public extension SessionCtl {
// //
func toggleAlphanumericalMode() { func toggleAlphanumericalMode() {
let status = "NotificationSwitchASCII".localized let status = "NotificationSwitchRevolver".localized
Notifier.notify( Notifier.notify(
message: isASCIIMode.toggled() message: isASCIIMode.toggled()
? "Alphanumerical Input Mode".localized + "\n" + status ? "Alphanumerical Input Mode".localized + "\n" + status

View File

@ -96,7 +96,7 @@
"Force KangXi Writing" = "Force KangXi Writing"; "Force KangXi Writing" = "Force KangXi Writing";
"NotificationSwitchON" = "✔ ON"; "NotificationSwitchON" = "✔ ON";
"NotificationSwitchOFF" = "✘ OFF"; "NotificationSwitchOFF" = "✘ OFF";
"NotificationSwitchASCII" = "↺ Switched"; "NotificationSwitchRevolver" = "↺ Switched";
"Edit vChewing User Phrases…" = "Edit vChewing User Phrases…"; "Edit vChewing User Phrases…" = "Edit vChewing 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

@ -96,7 +96,7 @@
"Force KangXi Writing" = "Force KangXi Writing"; "Force KangXi Writing" = "Force KangXi Writing";
"NotificationSwitchON" = "✔ ON"; "NotificationSwitchON" = "✔ ON";
"NotificationSwitchOFF" = "✘ OFF"; "NotificationSwitchOFF" = "✘ OFF";
"NotificationSwitchASCII" = "↺ Switched"; "NotificationSwitchRevolver" = "↺ Switched";
"Edit vChewing User Phrases…" = "Edit vChewing User Phrases…"; "Edit vChewing User Phrases…" = "Edit vChewing 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

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

View File

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

View File

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