From 2031fccf9db7319f0d57a5afff4ecbc4f5631a1d Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sun, 13 Feb 2022 18:45:21 +0800 Subject: [PATCH] i18n // Localization fix: keyboard names and strings. --- Source/Modules/IMEModules/ctlInputMethod.swift | 2 +- Source/Resources/Base.lproj/Localizable.strings | 5 +++-- Source/Resources/en.lproj/Localizable.strings | 9 +++++---- Source/Resources/ja.lproj/Localizable.strings | 7 ++++--- Source/Resources/zh-Hans.lproj/Localizable.strings | 7 ++++--- Source/Resources/zh-Hant.lproj/Localizable.strings | 5 +++-- .../WindowNIBs/zh-Hans.lproj/frmPrefWindow.strings | 4 ++-- UserPhraseEditor/Resources/zh-Hans.lproj/Main.strings | 4 ++-- 8 files changed, 24 insertions(+), 19 deletions(-) diff --git a/Source/Modules/IMEModules/ctlInputMethod.swift b/Source/Modules/IMEModules/ctlInputMethod.swift index b0e549aa..38de5d9e 100644 --- a/Source/Modules/IMEModules/ctlInputMethod.swift +++ b/Source/Modules/IMEModules/ctlInputMethod.swift @@ -241,7 +241,7 @@ class ctlInputMethod: IMKInputController { private func open(userFileAt path: String) { func checkIfUserFilesExist() -> Bool { if !mgrLangModel.checkIfUserLanguageModelFilesExist() { - let content = String(format: NSLocalizedString("Please check the permission of at \"%@\".", comment: ""), mgrLangModel.dataFolderPath) + let content = String(format: NSLocalizedString("Please check the permission at \"%@\".", comment: ""), mgrLangModel.dataFolderPath) ctlNonModalAlertWindow.shared.show(title: NSLocalizedString("Unable to create the user phrase file.", comment: ""), content: content, confirmButtonTitle: NSLocalizedString("OK", comment: ""), cancelButtonTitle: nil, cancelAsDefault: false, delegate: nil) return false } diff --git a/Source/Resources/Base.lproj/Localizable.strings b/Source/Resources/Base.lproj/Localizable.strings index 30b77319..be8b7293 100644 --- a/Source/Resources/Base.lproj/Localizable.strings +++ b/Source/Resources/Base.lproj/Localizable.strings @@ -18,7 +18,7 @@ "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."; -"Please check the permission of at \"%@\"." = "Please check the permission of at \"%@\"."; +"Please check the permission at \"%@\"." = "Please check the permission at \"%@\"."; "Edit Excluded Phrases" = "Edit Excluded Phrases…"; "Half-Width Punctuation Mode" = "Half-Width Punctuation Mode"; "\"%@\" length must ≥ 2 for a user phrase." = "\"%@\" length must ≥ 2 for a user phrase."; @@ -46,7 +46,8 @@ "zh-Hans" = "Simplified Chinese"; "zh-Hant" = "Traditional Chinese"; "ja" = "Japanese"; -"Apple Zhuyin Bopomofo" = "Apple Zhuyin Bopomofo"; +"Apple Zhuyin Bopomofo" = "Apple Zhuyin Bopomofo (Standard)"; +"Apple Zhuyin Eten" = "Apple Zhuyin Eten"; // The followings are the category names used in the Symbol menu. "catCommonSymbols" = "CommonSymbols"; diff --git a/Source/Resources/en.lproj/Localizable.strings b/Source/Resources/en.lproj/Localizable.strings index cbdb3f0e..be8b7293 100644 --- a/Source/Resources/en.lproj/Localizable.strings +++ b/Source/Resources/en.lproj/Localizable.strings @@ -18,7 +18,7 @@ "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."; -"Please check the permission of at \"%@\"." = "Please check the permission of at \"%@\"."; +"Please check the permission at \"%@\"." = "Please check the permission at \"%@\"."; "Edit Excluded Phrases" = "Edit Excluded Phrases…"; "Half-Width Punctuation Mode" = "Half-Width Punctuation Mode"; "\"%@\" length must ≥ 2 for a user phrase." = "\"%@\" length must ≥ 2 for a user phrase."; @@ -46,12 +46,13 @@ "zh-Hans" = "Simplified Chinese"; "zh-Hant" = "Traditional Chinese"; "ja" = "Japanese"; -"Apple Zhuyin Bopomofo" = "Apple Zhuyin Bopomofo"; +"Apple Zhuyin Bopomofo" = "Apple Zhuyin Bopomofo (Standard)"; +"Apple Zhuyin Eten" = "Apple Zhuyin Eten"; // The followings are the category names used in the Symbol menu. "catCommonSymbols" = "CommonSymbols"; -"catHoriBrackets" = "HoriBrackets"; -"catVertBrackets" = "VertBrackets"; +"catHoriBrackets" = "HorizontalBrackets"; +"catVertBrackets" = "VerticalBrackets"; "catGreekLetters" = "GreekLetters"; "catMathSymbols" = "MathSymbols"; "catCurrencyUnits" = "CurrencyUnits"; diff --git a/Source/Resources/ja.lproj/Localizable.strings b/Source/Resources/ja.lproj/Localizable.strings index 0737caca..c0917b8a 100644 --- a/Source/Resources/ja.lproj/Localizable.strings +++ b/Source/Resources/ja.lproj/Localizable.strings @@ -18,14 +18,14 @@ "Edit User Phrases…" = "ユーザー辞書を編集…"; "Reload User Phrases" = "ユーザー辞書を再び読込む"; "Unable to create the user phrase file." = "ユーザー辞書ファイルの作成は失敗しました。"; -"Please check the permission of at \"%@\"." = "「%@」に書き出す権限は不足らしい。"; +"Please check the permission at \"%@\"." = "「%@」に書き出す権限は不足らしい。"; "Edit Excluded Phrases" = "辞書条目排除表を編集…"; "Half-Width Punctuation Mode" = "半角句読モード"; "\"%@\" length must ≥ 2 for a user phrase." = "「%@」もう1つ文字のお選びを。"; "\"%@\" length should ≤ %d for a user phrase." = "「%@」文字数過剰で登録不可、%d 文字以内にして下さい。"; "\"%@\" selected. ENTER to add user phrase." = "「%@」を ENTER で辞書に登録。"; "\"%@\" already exists." = "「%@」は既存語彙である。"; -"Edit Phrase Replacement Table" = "言葉置換表を編集…"; +"Edit Phrase Replacement Table…" = "言葉置換表を編集…"; "Use Phrase Replacement" = "言葉置換機能"; "Candidates keys cannot be empty." = "言選り用キー陣列に何かキーをご登録ください。"; "Candidate keys can only contain ASCII characters like alphanumerals." = "言選り用キー陣列にはASCII文字だけをご登録ください(英数など)。"; @@ -46,7 +46,8 @@ "zh-Hans" = "簡體中国語"; "zh-Hant" = "繁體中国語"; "ja" = "和語"; -"Apple Zhuyin Bopomofo" = "Apple 注音ボポモフォ配列"; +"Apple Zhuyin Bopomofo" = "Apple 注音ボポモフォ配列(大千標準)"; +"Apple Zhuyin Bopomofo" = "Apple 注音ボポモフォ配列(倚天伝統)"; // The followings are the category names used in the Symbol menu. "catCommonSymbols" = "常用"; diff --git a/Source/Resources/zh-Hans.lproj/Localizable.strings b/Source/Resources/zh-Hans.lproj/Localizable.strings index 99908093..75577658 100644 --- a/Source/Resources/zh-Hans.lproj/Localizable.strings +++ b/Source/Resources/zh-Hans.lproj/Localizable.strings @@ -18,7 +18,7 @@ "Edit User Phrases…" = "编辑自订语汇…"; "Reload User Phrases" = "重载自订语汇"; "Unable to create the user phrase file." = "无法创建自订语汇档案。"; -"Please check the permission of at \"%@\"." = "请检查此处的存取权限:\"%@\"."; +"Please check the permission at \"%@\"." = "请检查此处的存取权限:\"%@\"."; "Edit Excluded Phrases" = "编辑要滤除的语汇…"; "Half-Width Punctuation Mode" = "半角标点模式"; "\"%@\" length must ≥ 2 for a user phrase." = "「%@」字数不足以自订语汇。"; @@ -38,7 +38,7 @@ "Per-Char Select Mode" = "仿真逐字选字输入"; "CNS11643 Mode" = "全字库模式"; "Per-Char Associated Phrases" = "逐字选字联想模式"; -"Open User Data Folder" = "开启使用者数据夹"; +"Open User Data Folder" = "开启使用者资料夹"; "Edit Associated Phrases…" = "编辑联想词…"; "Reboot vChewing…" = "重新启动输入法…"; "auto" = "与系统设定一致"; @@ -46,7 +46,8 @@ "zh-Hans" = "简体中文"; "zh-Hant" = "繁体中文"; "ja" = "和文"; -"Apple Zhuyin Bopomofo" = "Apple 注音键盘布局"; +"Apple Zhuyin Bopomofo" = "Apple 标准注音键盘布局"; +"Apple Zhuyin Eten" = "Apple 倚天注音键盘布局"; // The followings are the category names used in the Symbol menu. "catCommonSymbols" = "常用"; diff --git a/Source/Resources/zh-Hant.lproj/Localizable.strings b/Source/Resources/zh-Hant.lproj/Localizable.strings index de536115..bbb98b51 100644 --- a/Source/Resources/zh-Hant.lproj/Localizable.strings +++ b/Source/Resources/zh-Hant.lproj/Localizable.strings @@ -18,7 +18,7 @@ "Edit User Phrases…" = "編輯自訂語彙…"; "Reload User Phrases" = "重載自訂語彙"; "Unable to create the user phrase file." = "無法創建自訂語彙檔案。"; -"Please check the permission of at \"%@\"." = "請檢查此處的存取權限:\"%@\"."; +"Please check the permission at \"%@\"." = "請檢查此處的存取權限:\"%@\"."; "Edit Excluded Phrases" = "編輯要濾除的語彙…"; "Half-Width Punctuation Mode" = "半形標點模式"; "\"%@\" length must ≥ 2 for a user phrase." = "「%@」字數不足以自訂語彙。"; @@ -46,7 +46,8 @@ "zh-Hans" = "簡體中文"; "zh-Hant" = "繁體中文"; "ja" = "和文"; -"Apple Zhuyin Bopomofo" = "Apple 注音鍵盤佈局"; +"Apple Zhuyin Bopomofo" = "Apple 標準注音鍵盤佈局"; +"Apple Zhuyin Eten" = "Apple 倚天注音鍵盤佈局"; // The followings are the category names used in the Symbol menu. "catCommonSymbols" = "常用"; diff --git a/Source/WindowNIBs/Source/WindowNIBs/zh-Hans.lproj/frmPrefWindow.strings b/Source/WindowNIBs/Source/WindowNIBs/zh-Hans.lproj/frmPrefWindow.strings index 82c1ae19..929cddc7 100644 --- a/Source/WindowNIBs/Source/WindowNIBs/zh-Hans.lproj/frmPrefWindow.strings +++ b/Source/WindowNIBs/Source/WindowNIBs/zh-Hans.lproj/frmPrefWindow.strings @@ -165,13 +165,13 @@ "f2j-xD-4xK.title" = "敲 ESC 键以清空整个输入缓冲区"; /* Class = "NSButtonCell"; title = "Automatically reload user data files if changes detected"; ObjectID = "f8i-69-zxm"; */ -"f8i-69-zxm.title" = "自动重新加载变更过的使用者数据内容"; +"f8i-69-zxm.title" = "自动重新加载变更过的使用者资料内容"; /* Class = "NSTextFieldCell"; title = "Change UI font size of candidate window for a better visual clarity."; ObjectID = "iRg-wx-Nx2"; */ "iRg-wx-Nx2.title" = "变更候选字窗的字型大小。"; /* Class = "NSTextFieldCell"; title = "Define your preferred action when user data files reload."; ObjectID = "j48-5a-cEs"; */ -"j48-5a-cEs.title" = "请指定在使用者数据重载时要启用的功能。"; +"j48-5a-cEs.title" = "请指定在使用者资料重载时要启用的功能。"; /* Class = "NSComboBoxCell"; jQC-12-UuK.ibShadowedObjectValues[0] = "Item 1"; ObjectID = "jQC-12-UuK"; */ "jQC-12-UuK.ibShadowedObjectValues[0]" = "Item 1"; diff --git a/UserPhraseEditor/Resources/zh-Hans.lproj/Main.strings b/UserPhraseEditor/Resources/zh-Hans.lproj/Main.strings index cb0bcd14..06580987 100644 --- a/UserPhraseEditor/Resources/zh-Hans.lproj/Main.strings +++ b/UserPhraseEditor/Resources/zh-Hans.lproj/Main.strings @@ -341,8 +341,8 @@ /* Class = "NSMenuItem"; title = "显示工具列"; ObjectID = "snW-S8-Cw5"; */ "snW-S8-Cw5.title" = "显示工具列"; -/* Class = "NSMenuItem"; title = "数据侦测器"; ObjectID = "tRr-pd-1PS"; */ -"tRr-pd-1PS.title" = "数据侦测器"; +/* Class = "NSMenuItem"; title = "资料侦测器"; ObjectID = "tRr-pd-1PS"; */ +"tRr-pd-1PS.title" = "资料侦测器"; /* Class = "NSMenuItem"; title = "开启近期的档案"; ObjectID = "tXI-mr-wws"; */ "tXI-mr-wws.title" = "开启近期的档案";