diff --git a/Packages/vChewing_MainAssembly/Sources/MainAssembly/InputHandler_HandleStates.swift b/Packages/vChewing_MainAssembly/Sources/MainAssembly/InputHandler_HandleStates.swift index 2cc6f5ba..f843d81a 100644 --- a/Packages/vChewing_MainAssembly/Sources/MainAssembly/InputHandler_HandleStates.swift +++ b/Packages/vChewing_MainAssembly/Sources/MainAssembly/InputHandler_HandleStates.swift @@ -202,10 +202,15 @@ extension InputHandler { delegate.callError("9AAFAC00") return true } + let areWeUnfiltering = state.markedTargetIsCurrentlyFiltered if !delegate.performUserPhraseOperation(addToFilter: false) { delegate.callError("5B69CC8D") return true } + if areWeUnfiltering { + tooltipMessage = "- Succeeded in unfiltering a phrase." + tooltipColorState = .succeeded + } var newState = generateStateOfInputting() newState.tooltip = NSLocalizedString(tooltipMessage, comment: "") newState.data.tooltipColorState = tooltipColorState diff --git a/Source/Resources/Base.lproj/Localizable.strings b/Source/Resources/Base.lproj/Localizable.strings index 2911bbdc..e5e37209 100644 --- a/Source/Resources/Base.lproj/Localizable.strings +++ b/Source/Resources/Base.lproj/Localizable.strings @@ -64,6 +64,7 @@ "! Succeeded in filtering a candidate." = "! Succeeded in filtering a candidate."; "! Succeeded in filtering a user phrase." = "! Succeeded in filtering a user phrase."; "- Succeeded in nerfing a user phrase." = "- Succeeded in nerfing a user phrase."; +"- Succeeded in unfiltering a phrase." = "- Succeeded in unfiltering a phrase."; "+ Succeeded in adding / boosting a user phrase." = "+ Succeeded in adding / boosting a user phrase."; "vChewing is rebooted due to a memory-excessive-usage problem. If convenient, please inform the developer that you are having this issue, stating whether you are using an Intel Mac or Apple Silicon Mac. An NSLog is generated with the current memory footprint size." = "vChewing is rebooted due to a memory-excessive-usage problem. If convenient, please inform the developer that you are having this issue, stating whether you are using an Intel Mac or Apple Silicon Mac. An NSLog is generated with the current memory footprint size."; "Please manually implement the symbols of this menu \nin the user phrase file with “_punctuation_list” key." = "Please manually implement the symbols of this menu \nin the user phrase file with “_punctuation_list” key."; diff --git a/Source/Resources/en.lproj/Localizable.strings b/Source/Resources/en.lproj/Localizable.strings index 2911bbdc..e5e37209 100644 --- a/Source/Resources/en.lproj/Localizable.strings +++ b/Source/Resources/en.lproj/Localizable.strings @@ -64,6 +64,7 @@ "! Succeeded in filtering a candidate." = "! Succeeded in filtering a candidate."; "! Succeeded in filtering a user phrase." = "! Succeeded in filtering a user phrase."; "- Succeeded in nerfing a user phrase." = "- Succeeded in nerfing a user phrase."; +"- Succeeded in unfiltering a phrase." = "- Succeeded in unfiltering a phrase."; "+ Succeeded in adding / boosting a user phrase." = "+ Succeeded in adding / boosting a user phrase."; "vChewing is rebooted due to a memory-excessive-usage problem. If convenient, please inform the developer that you are having this issue, stating whether you are using an Intel Mac or Apple Silicon Mac. An NSLog is generated with the current memory footprint size." = "vChewing is rebooted due to a memory-excessive-usage problem. If convenient, please inform the developer that you are having this issue, stating whether you are using an Intel Mac or Apple Silicon Mac. An NSLog is generated with the current memory footprint size."; "Please manually implement the symbols of this menu \nin the user phrase file with “_punctuation_list” key." = "Please manually implement the symbols of this menu \nin the user phrase file with “_punctuation_list” key."; diff --git a/Source/Resources/ja.lproj/Localizable.strings b/Source/Resources/ja.lproj/Localizable.strings index 24eedc8d..4a6ecc61 100644 --- a/Source/Resources/ja.lproj/Localizable.strings +++ b/Source/Resources/ja.lproj/Localizable.strings @@ -58,12 +58,13 @@ "Please select Simplified / Traditional Chinese mode above." = "まずは上記のメニューで簡体/繁体中国語モードをお選びください。"; "⚠︎ Failed from boosting a candidate." = "⚠︎ 指定された文字候補の順位は最優先にできませんでした。"; "⚠︎ Failed from nerfing a candidate." = "⚠︎ 指定された文字候補の優先順位を下げることに失敗ししました。"; -"⚠︎ Failed from filtering a candidate." = "⚠︎ 指定された文字候補は排除表に登録できませんでした。"; +"⚠︎ Failed from filtering a candidate." = "⚠︎ 指定された文字候補は排除リストに登録できませんでした。"; "+ Succeeded in boosting a candidate." = "+ 指定された文字候補の順位は最優先にしました。"; "- Succeeded in nerfing a candidate." = "- 指定された文字候補の優先順位を下げました。"; -"! Succeeded in filtering a candidate." = "! 指定された文字候補は排除表に登録しました。"; -"! Succeeded in filtering a user phrase." = "! この語彙は排除表に登録完了。"; +"! Succeeded in filtering a candidate." = "! 指定された文字候補は排除リストに登録しました。"; +"! Succeeded in filtering a user phrase." = "! この語彙は排除リストに登録完了。"; "- Succeeded in nerfing a user phrase." = "- この語彙の(候補としての)優先順位を下げました。"; +"- Succeeded in unfiltering a phrase." = "- この語彙は排除リストから外しました。"; "+ Succeeded in adding / boosting a user phrase." = "+ 新しいユーザー候補を登録完了、\n或いはその既存候補の順位を最優先にしました。"; "vChewing is rebooted due to a memory-excessive-usage problem. If convenient, please inform the developer that you are having this issue, stating whether you are using an Intel Mac or Apple Silicon Mac. An NSLog is generated with the current memory footprint size." = "威注音入力アプリはメモリー使用量多すぎたため、再起動しました。もし、よろしければ、この問題について、開発元にご連絡をし、そしてこのパソコンの CPU 種類情報(Intel か、Apple Silicon か)も一緒に教えてください。今のメモリー使用量は NSLog にて記録済みである。"; "Please manually implement the symbols of this menu \nin the user phrase file with “_punctuation_list” key." = "このメニューのお用いには、ご自分でユーザー辞書で\n「_punctuation_list」キーの符号記録のご補充が必要でござる。"; @@ -114,7 +115,7 @@ "Reload User Phrases" = "ユーザー辞書を再び読込む"; "Unable to create the user phrase file." = "ユーザー辞書ファイルの作成は失敗しました。"; "Please check the permission at \"%@\"." = "「%@」に書き出す権限は不足らしい。"; -"Edit Excluded Phrases…" = "辞書条目排除表を編集…"; +"Edit Excluded Phrases…" = "辞書条目排除リストを編集…"; "Half-Width Punctuation Mode" = "半角句読モード"; "\"%@\" length must ≥ 2 for a user phrase." = "「%@」もう1つ文字のお選びを。"; "\"%@\" length should ≤ %d for a user phrase." = "「%@」文字数過剰で登録不可、%d 文字以内にして下さい。"; diff --git a/Source/Resources/zh-Hans.lproj/Localizable.strings b/Source/Resources/zh-Hans.lproj/Localizable.strings index b5e8f9af..266070f8 100644 --- a/Source/Resources/zh-Hans.lproj/Localizable.strings +++ b/Source/Resources/zh-Hans.lproj/Localizable.strings @@ -64,6 +64,7 @@ "! Succeeded in filtering a candidate." = "! 候选字词滤除成功。"; "! Succeeded in filtering a user phrase." = "! 成功滤除该词音配对。"; "- Succeeded in nerfing a user phrase." = "- 成功将该词音配对降权处理。"; +"- Succeeded in unfiltering a phrase." = "- 成功将该词音配对从滤除清单移出。"; "+ Succeeded in adding / boosting a user phrase." = "+ 成功添入使用者语汇(或使其升权)。"; "vChewing is rebooted due to a memory-excessive-usage problem. If convenient, please inform the developer that you are having this issue, stating whether you are using an Intel Mac or Apple Silicon Mac. An NSLog is generated with the current memory footprint size." = "威注音输入法因记忆体用量过大的问题而重新启动。如果您方便的话,请就这个问题知会该输入法的主程式师、且请务必说明自己在用的是 Intel 机种还是 Apple Silicon 机种。当前输入法记忆体用量已借由 NSLog 记录输出。"; "Please manually implement the symbols of this menu \nin the user phrase file with “_punctuation_list” key." = "请自行以「_punctuation_list」索引键\n在使用者自订语汇档案内扩充该符号选单的内容。"; diff --git a/Source/Resources/zh-Hant.lproj/Localizable.strings b/Source/Resources/zh-Hant.lproj/Localizable.strings index eb5a5e9d..6a8569ab 100644 --- a/Source/Resources/zh-Hant.lproj/Localizable.strings +++ b/Source/Resources/zh-Hant.lproj/Localizable.strings @@ -64,6 +64,7 @@ "! Succeeded in filtering a candidate." = "! 候選字詞濾除成功。"; "! Succeeded in filtering a user phrase." = "! 成功濾除該詞音配對。"; "- Succeeded in nerfing a user phrase." = "- 成功將該詞音配對降權處理。"; +"- Succeeded in unfiltering a phrase." = "- 成功將該詞音配對從濾除清單移出。"; "+ Succeeded in adding / boosting a user phrase." = "+ 成功添入使用者語彙(或使其升權)。"; "vChewing is rebooted due to a memory-excessive-usage problem. If convenient, please inform the developer that you are having this issue, stating whether you are using an Intel Mac or Apple Silicon Mac. An NSLog is generated with the current memory footprint size." = "威注音輸入法因記憶體用量過大的問題而重新啟動。如果您方便的話,請就這個問題知會該輸入法的主程式師、且請務必說明自己在用的是 Intel 機種還是 Apple Silicon 機種。當前輸入法記憶體用量已藉由 NSLog 記錄輸出。"; "Please manually implement the symbols of this menu \nin the user phrase file with “_punctuation_list” key." = "請自行以「_punctuation_list」索引鍵\n在使用者自訂語彙檔案內擴充該符號選單的內容。";