fix: proper i18n of recentDocuments item (#20948)
This commit is contained in:
parent
01e18c2fc3
commit
584a494b83
1 changed files with 5 additions and 3 deletions
|
@ -128,9 +128,11 @@ static base::scoped_nsobject<NSMenu> recentDocumentsMenuSwap_;
|
||||||
|
|
||||||
// Locate & retain the recent documents menu item
|
// Locate & retain the recent documents menu item
|
||||||
if (!recentDocumentsMenuItem_) {
|
if (!recentDocumentsMenuItem_) {
|
||||||
recentDocumentsMenuItem_.reset(
|
base::string16 title = base::ASCIIToUTF16("Open Recent");
|
||||||
[[[[[NSApp mainMenu] itemWithTitle:@"Electron"] submenu]
|
NSString* openTitle = l10n_util::FixUpWindowsStyleLabel(title);
|
||||||
itemWithTitle:@"Open Recent"] retain]);
|
|
||||||
|
recentDocumentsMenuItem_.reset([[[[[NSApp mainMenu]
|
||||||
|
itemWithTitle:@"Electron"] submenu] itemWithTitle:openTitle] retain]);
|
||||||
}
|
}
|
||||||
|
|
||||||
model_ = model;
|
model_ = model;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue