From 32a305bcc81475098b12dbeea26c3d2202100b54 Mon Sep 17 00:00:00 2001 From: ritsuka Date: Sat, 4 Jul 2015 08:14:34 +0000 Subject: [PATCH] MacGui: rename "Source" to "Open Source", and add the "Open Recent" menu item. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7338 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/English.lproj/MainMenu.xib | 15 +++++++++++++-- macosx/English.lproj/MainWindow.xib | 7 +++---- macosx/HBController.m | 11 +++++++---- 3 files changed, 23 insertions(+), 10 deletions(-) diff --git a/macosx/English.lproj/MainMenu.xib b/macosx/English.lproj/MainMenu.xib index 5b8d5fd83..0be9c7eef 100644 --- a/macosx/English.lproj/MainMenu.xib +++ b/macosx/English.lproj/MainMenu.xib @@ -1,9 +1,9 @@ - + - + @@ -81,6 +81,17 @@ + + + + + + + + + + + diff --git a/macosx/English.lproj/MainWindow.xib b/macosx/English.lproj/MainWindow.xib index 084af602f..9ef960029 100644 --- a/macosx/English.lproj/MainWindow.xib +++ b/macosx/English.lproj/MainWindow.xib @@ -1,9 +1,8 @@ - + - - + @@ -605,7 +604,7 @@ IA - + diff --git a/macosx/HBController.m b/macosx/HBController.m index 076a7a336..ec470c454 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -280,10 +280,10 @@ { if (action == @selector(browseSources:)) { - [toolbarItem setImage: [NSImage imageNamed: @"source"]]; - [toolbarItem setLabel: @"Source"]; - [toolbarItem setPaletteLabel: @"Source"]; - [toolbarItem setToolTip: @"Choose Video Source"]; + [toolbarItem setImage:[NSImage imageNamed:@"source"]]; + [toolbarItem setLabel:NSLocalizedString(@"Open Source", nil)]; + [toolbarItem setPaletteLabel:NSLocalizedString(@"Open Source", nil)]; + [toolbarItem setToolTip:NSLocalizedString(@"Open source and scan the selected title", nil)]; return YES; } } @@ -611,6 +611,9 @@ } } + // Add the url to the Open Recent menu. + [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:url]; + NSInteger titleIdx = 0; if (self.scanSpecificTitle) { -- 2.40.0