From fb3b91ef11dc575fb22a2bdba997fa517e186884 Mon Sep 17 00:00:00 2001 From: Kyle Date: Sat, 28 Oct 2023 01:56:45 +0800 Subject: [PATCH] [Optimize] Fix storyborad text issue --- Easydict/App/Base.lproj/Main.storyboard | 4 ++-- Easydict/App/mul.lproj/Main.xcstrings | 6 +++--- Easydict/Feature/StatusItem/EZMenuItemManager.m | 9 ++++----- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Easydict/App/Base.lproj/Main.storyboard b/Easydict/App/Base.lproj/Main.storyboard index 2309e42c9..463a72f8a 100644 --- a/Easydict/App/Base.lproj/Main.storyboard +++ b/Easydict/App/Base.lproj/Main.storyboard @@ -718,10 +718,10 @@ DQ - + @@ -774,7 +774,7 @@ DQ - + diff --git a/Easydict/App/mul.lproj/Main.xcstrings b/Easydict/App/mul.lproj/Main.xcstrings index 563bb3e83..06697df8d 100644 --- a/Easydict/App/mul.lproj/Main.xcstrings +++ b/Easydict/App/mul.lproj/Main.xcstrings @@ -1102,18 +1102,18 @@ } }, "Fzj-Rh-cL0.title" : { - "comment" : "Class = \"NSMenuItem\"; title = \"设置\"; ObjectID = \"Fzj-Rh-cL0\";", + "comment" : "Class = \"NSMenuItem\"; title = \"设置...\"; ObjectID = \"Fzj-Rh-cL0\";", "localizations" : { "en" : { "stringUnit" : { "state" : "translated", - "value" : "Settings" + "value" : "Settings..." } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "设置" + "value" : "设置..." } } } diff --git a/Easydict/Feature/StatusItem/EZMenuItemManager.m b/Easydict/Feature/StatusItem/EZMenuItemManager.m index e65e73865..2535dca35 100644 --- a/Easydict/Feature/StatusItem/EZMenuItemManager.m +++ b/Easydict/Feature/StatusItem/EZMenuItemManager.m @@ -27,8 +27,7 @@ @interface EZMenuItemManager () @property (weak) IBOutlet NSMenuItem *inputItem; @property (weak) IBOutlet NSMenuItem *showMiniItem; @property (weak) IBOutlet NSMenuItem *screenshotOCRItem; - -@property (weak) IBOutlet NSMenuItem *preferencesItem; +@property (weak) IBOutlet NSMenuItem *settingsItem; @property (weak) IBOutlet NSMenuItem *checkForUpdateItem; @property (weak) IBOutlet NSMenuItem *helpItem; @property (weak) IBOutlet NSMenuItem *quitItem; @@ -93,7 +92,7 @@ - (void)setup { self.appVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]; self.versionItem.title = self.versionTitle; - NSArray *items = @[self.versionItem, self.preferencesItem, self.checkForUpdateItem, self.helpItem, self.quitItem]; + NSArray *items = @[self.versionItem, self.settingsItem, self.checkForUpdateItem, self.helpItem, self.quitItem]; [self increaseMenuItemsHeight:items lineHeightRatio:kTitleMenuItemHeightRatio]; [self updateVersionItem]; @@ -175,8 +174,8 @@ - (IBAction)screenshotOCRAction:(NSMenuItem *)sender { } -- (IBAction)preferenceAction:(NSMenuItem *)sender { - NSLog(@"偏好设置"); +- (IBAction)settingAction:(NSMenuItem *)sender { + NSLog(@"设置..."); if (Snip.shared.isSnapshotting) { [Snip.shared stop]; }