From cbd21cbe1d27b19605d43704629ef93c122c76f1 Mon Sep 17 00:00:00 2001 From: zonble Date: Wed, 12 Jan 2022 01:10:39 +0800 Subject: [PATCH] Updates localization. --- Source/InputMethodController.mm | 1 + Source/en.lproj/Localizable.strings | 2 ++ Source/zh-Hant.lproj/Localizable.strings | 3 +++ 3 files changed, 6 insertions(+) diff --git a/Source/InputMethodController.mm b/Source/InputMethodController.mm index 5c6db914..32b71d8c 100644 --- a/Source/InputMethodController.mm +++ b/Source/InputMethodController.mm @@ -209,6 +209,7 @@ static double FindHighestScore(const vector& nodes, double epsilon) [menu addItem:[NSMenuItem separatorItem]]; [menu addItemWithTitle:NSLocalizedString(@"User Phrases", @"") action:NULL keyEquivalent:@""]; + if (_inputMode == kPlainBopomofoModeIdentifier) { NSMenuItem *editExcludedPhrasesItem = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"Edit Excluded Phrases", @"") action:@selector(openExcludedPhrasesPlainBopomofo:) keyEquivalent:@""]; [menu addItem:editExcludedPhrasesItem]; diff --git a/Source/en.lproj/Localizable.strings b/Source/en.lproj/Localizable.strings index eb268a24..a9b5048e 100644 --- a/Source/en.lproj/Localizable.strings +++ b/Source/en.lproj/Localizable.strings @@ -60,3 +60,5 @@ "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 \"%@\"."; + +"Edit Excluded Phrases" = "Edit Excluded Phrases"; diff --git a/Source/zh-Hant.lproj/Localizable.strings b/Source/zh-Hant.lproj/Localizable.strings index 118264db..cdd2b6d2 100644 --- a/Source/zh-Hant.lproj/Localizable.strings +++ b/Source/zh-Hant.lproj/Localizable.strings @@ -60,3 +60,6 @@ "Unable to create the user phrase file." = "無法建立使用者詞彙檔案"; "Please check the permission of at \"%@\"." = "請檢查以下路徑的寫入權限 \"%@\"。"; + +"Edit Excluded Phrases" = "編輯要排除的詞彙"; +