-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(translations): menu translations
- Loading branch information
Showing
8 changed files
with
77 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
export const editMenuTemplate = { | ||
label: "Edit", | ||
import __ from '../../app/translation' | ||
|
||
export const editMenuTemplateFunc = () => ({ | ||
label: __("Edit"), | ||
submenu: [ | ||
{ label: "Undo", accelerator: "CmdOrCtrl+Z", selector: "undo:" }, | ||
{ label: "Redo", accelerator: "Shift+CmdOrCtrl+Z", selector: "redo:" }, | ||
{ label: __("Undo"), accelerator: "CmdOrCtrl+Z", selector: "undo:" }, | ||
{ label: __("Redo"), accelerator: "Shift+CmdOrCtrl+Z", selector: "redo:" }, | ||
{ type: "separator" }, | ||
{ label: "Cut", accelerator: "CmdOrCtrl+X", selector: "cut:" }, | ||
{ label: "Copy", accelerator: "CmdOrCtrl+C", selector: "copy:" }, | ||
{ label: "Paste", accelerator: "CmdOrCtrl+V", selector: "paste:" }, | ||
{ label: "Select All", accelerator: "CmdOrCtrl+A", selector: "selectAll:" } | ||
{ label: __("Cut"), accelerator: "CmdOrCtrl+X", selector: "cut:" }, | ||
{ label: __("Copy"), accelerator: "CmdOrCtrl+C", selector: "copy:" }, | ||
{ label: __("Paste"), accelerator: "CmdOrCtrl+V", selector: "paste:" }, | ||
{ label: __("Select All"), accelerator: "CmdOrCtrl+A", selector: "selectAll:" } | ||
] | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
import { app, BrowserWindow, shell } from "electron"; | ||
import path from "path"; | ||
import url from "url"; | ||
import __ from '../../app/translation' | ||
|
||
export const manageMenuTemplate = { | ||
label: "Manage", | ||
export const manageMenuTemplateFunc = () => ({ | ||
label: __("Manage"), | ||
submenu: [ | ||
{ | ||
label: "Downloads", | ||
label: __("Downloads"), | ||
accelerator: "CmdOrCtrl+d", | ||
click: () => { | ||
BrowserWindow.getFocusedWindow().webContents.send('url', '/downloads') | ||
}, | ||
}, | ||
{ | ||
label: "Search", | ||
label: __("Search"), | ||
accelerator: "CmdOrCtrl+n", | ||
click: () => { | ||
BrowserWindow.getFocusedWindow().webContents.send('url', '/') | ||
}, | ||
}, | ||
{ | ||
label: "Top", | ||
label: __("Top"), | ||
accelerator: "CmdOrCtrl+t", | ||
click: () => { | ||
BrowserWindow.getFocusedWindow().webContents.send('url', '/top') | ||
}, | ||
} | ||
] | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters