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" = "編輯要排除的詞彙"; +