A full-featured download manager.
refactor: menu i18n
Dr_rOot20f79dacb7e1
diff --git a/src/main/menus/darwin.json b/src/main/menus/darwin.jsonnew file mode 100644index 00000000..8d938fd4--- /dev/null+++ b/src/main/menus/darwin.json@@ -0,0 +1,76 @@+{+ "menu": [+ {+ "id": "menu.app",+ "submenu": [+ { "id": "app.about", "command": "application:about", "command-before": "application:show,index" },+ { "type": "separator" },+ { "id": "app.preferences", "command": "application:preferences" },+ { "id": "app.check-for-updates", "command": "application:check-for-updates" },+ { "id": "app.hide", "role": "hide" },+ { "id": "app.hide-others", "role": "hideothers" },+ { "id": "app.unhide", "role": "unhide" },+ { "type": "separator" },+ { "id": "app.quit", "role": "quit" }+ ]+ },+ {+ "id": "menu.task",+ "submenu": [+ { "id": "task.new-task", "command": "application:new-task", "command-after": "application:show,index" },+ { "id": "task.new-bt-task", "command": "application:new-bt-task", "command-arg": "torrent", "command-after": "application:show,index" },+ { "id": "task.open-file", "command": "application:open-file", "command-before": "application:show,index" },+ { "type": "separator" },+ { "id": "task.pause-task", "command": "application:pause-task" },+ { "id": "task.resume-task", "command": "application:resume-task" },+ { "id": "task.delete-task", "command": "application:delete-task" },+ { "id": "task.move-task-up", "command": "application:move-task-up" },+ { "id": "task.move-task-down", "command": "application:move-task-down" },+ { "type": "separator" },+ { "id": "task.pause-all-task", "command": "application:pause-all-task" },+ { "id": "task.resume-all-task", "command": "application:resume-all-task" },+ { "type": "separator" },+ { "id": "task.clear-recent-tasks", "command": "application:clear-recent-tasks" }+ ]+ },+ {+ "id": "menu.edit",+ "submenu": [+ { "id": "edit.undo", "role": "undo" },+ { "id": "edit.redo", "role": "redo" },+ { "type": "separator" },+ { "id": "edit.cut", "role": "cut" },+ { "id": "edit.copy", "role": "copy" },+ { "id": "edit.paste", "role": "paste" },+ { "id": "edit.delete", "role": "delete" },+ { "id": "edit.select-all", "role": "selectall" }+ ]+ },+ {+ "role": "window",+ "id": "menu.window",+ "submenu": [+ { "id": "window.reload", "role": "reload" },+ { "id": "window.close", "role": "close" },+ { "id": "window.minimize", "role": "minimize" },+ { "id": "window.zoom", "role": "zoom" },+ { "id": "window.toggle-fullscreen", "role": "togglefullscreen" },+ { "type": "separator" },+ { "id": "window.front", "role": "front" }+ ]+ },+ {+ "role": "help",+ "id": "menu.help",+ "submenu": [+ { "id": "help.official-website", "command": "help:official-website" },+ { "id": "help.manual", "command": "help:manual" },+ { "id": "help.release-notes", "command": "help:release-notes" },+ { "type": "separator" },+ { "id": "help.report-problem", "command": "help:report-problem" },+ { "type": "separator" },+ { "id": "help.toggle-dev-tools", "role": "toggledevtools" }+ ]+ }+ ]+}diff --git a/src/main/menus/linux.json b/src/main/menus/linux.jsonnew file mode 100644index 00000000..8285cac9--- /dev/null+++ b/src/main/menus/linux.json@@ -0,0 +1,72 @@+{+ "menu": [+ {+ "id": "menu.file",+ "submenu": [+ { "id": "app.about", "command": "application:about", "command-before": "application:show,index" },+ { "type": "separator" },+ { "id": "app.preferences", "command": "application:preferences" },+ { "id": "app.check-for-updates", "command": "application:check-for-updates" },+ { "id": "app.show", "command": "application:show", "command-arg": "index" },+ { "type": "separator" },+ { "id": "app.quit", "role": "quit" }+ ]+ },+ {+ "id": "menu.task",+ "submenu": [+ { "id": "task.new-task", "command": "application:new-task", "command-after": "application:show,index" },+ { "id": "task.new-bt-task", "command": "application:new-bt-task", "command-arg": "torrent", "command-after": "application:show,index" },+ { "id": "task.open-file", "command": "application:open-file", "command-before": "application:show,index" },+ { "type": "separator" },+ { "id": "task.pause-task", "command": "application:pause-task" },+ { "id": "task.resume-task", "command": "application:resume-task" },+ { "id": "task.delete-task", "command": "application:delete-task" },+ { "id": "task.move-task-up", "command": "application:move-task-up" },+ { "id": "task.move-task-down", "command": "application:move-task-down" },+ { "type": "separator" },+ { "id": "task.pause-all-task", "command": "application:pause-all-task" },+ { "id": "task.resume-all-task", "command": "application:resume-all-task" }+ ]+ },+ {+ "id": "menu.edit",+ "submenu": [+ { "id": "edit.undo", "role": "undo" },+ { "id": "edit.redo", "role": "redo" },+ { "type": "separator" },+ { "id": "edit.cut", "role": "cut" },+ { "id": "edit.copy", "role": "copy" },+ { "id": "edit.paste", "role": "paste" },+ { "id": "edit.delete", "role": "delete" },+ { "id": "edit.select-all", "role": "selectall" }+ ]+ },+ {+ "role": "window",+ "id": "menu.window",+ "submenu": [+ { "id": "window.reload", "role": "reload" },+ { "id": "window.close", "role": "close" },+ { "id": "window.minimize", "role": "minimize" },+ { "id": "window.zoom", "role": "zoom" },+ { "id": "window.toggle-fullscreen", "role": "togglefullscreen" },+ { "type": "separator" },+ { "id": "window.front", "role": "front" }+ ]+ },+ {+ "role": "help",+ "id": "menu.help",+ "submenu": [+ { "id": "help.official-website", "command": "help:official-website" },+ { "id": "help.manual", "command": "help:manual" },+ { "id": "help.release-notes", "command": "help:release-notes" },+ { "type": "separator" },+ { "id": "help.report-problem", "command": "help:report-problem" },+ { "type": "separator" },+ { "id": "help.toggle-dev-tools", "role": "toggledevtools" }+ ]+ }+ ]+}diff --git a/src/main/menus/win32.json b/src/main/menus/win32.jsonnew file mode 100644index 00000000..81c18b8d--- /dev/null+++ b/src/main/menus/win32.json@@ -0,0 +1,74 @@+{+ "menu": [+ {+ "id": "menu.file",+ "submenu": [+ { "id": "app.about", "command": "application:about", "command-before": "application:show,index" },+ { "type": "separator" },+ { "id": "app.preferences", "command": "application:preferences" },+ { "id": "app.check-for-updates", "command": "application:check-for-updates" },+ { "id": "app.show", "command": "application:show", "command-arg": "index" },+ { "type": "separator" },+ { "id": "app.quit", "role": "quit" }+ ]+ },+ {+ "id": "menu.task",+ "submenu": [+ { "id": "task.new-task", "command": "application:new-task", "command-after": "application:show,index" },+ { "id": "task.new-bt-task", "command": "application:new-bt-task", "command-arg": "torrent", "command-after": "application:show,index" },+ { "id": "task.open-file", "command": "application:open-file", "command-before": "application:show,index" },+ { "type": "separator" },+ { "id": "task.pause-task", "command": "application:pause-task" },+ { "id": "task.resume-task", "command": "application:resume-task" },+ { "id": "task.delete-task", "command": "application:delete-task" },+ { "id": "task.move-task-up", "command": "application:move-task-up" },+ { "id": "task.move-task-down", "command": "application:move-task-down" },+ { "type": "separator" },+ { "id": "task.pause-all-task", "command": "application:pause-all-task" },+ { "id": "task.resume-all-task", "command": "application:resume-all-task" },+ { "type": "separator" },+ { "id": "task.clear-recent-tasks", "command": "application:clear-recent-tasks" }+ ]+ },+ {+ "id": "menu.edit",+ "submenu": [+ { "id": "edit.undo", "role": "undo" },+ { "id": "edit.redo", "role": "redo" },+ { "type": "separator" },+ { "id": "edit.cut", "role": "cut" },+ { "id": "edit.copy", "role": "copy" },+ { "id": "edit.paste", "role": "paste" },+ { "id": "edit.delete", "role": "delete" },+ { "id": "edit.select-all", "role": "selectall" }+ ]+ },+ {+ "role": "window",+ "id": "menu.window",+ "submenu": [+ { "id": "window.reload", "role": "reload" },+ { "id": "window.close", "role": "close" },+ { "id": "window.minimize", "role": "minimize" },+ { "id": "window.zoom", "role": "zoom" },+ { "id": "window.toggle-fullscreen", "role": "togglefullscreen" },+ { "type": "separator" },+ { "id": "window.front", "role": "front" }+ ]+ },+ {+ "role": "help",+ "id": "menu.help",+ "submenu": [+ { "id": "help.official-website", "command": "help:official-website" },+ { "id": "help.manual", "command": "help:manual" },+ { "id": "help.release-notes", "command": "help:release-notes" },+ { "type": "separator" },+ { "id": "help.report-problem", "command": "help:report-problem" },+ { "type": "separator" },+ { "id": "help.toggle-dev-tools", "role": "toggledevtools" }+ ]+ }+ ]+}diff --git a/src/shared/locales/de/index.js b/src/shared/locales/de/index.jsindex 34c114a3..f9320afb 100644--- a/src/shared/locales/de/index.js+++ b/src/shared/locales/de/index.js@@ -1,21 +1,21 @@import about from './about'import app from './app'-// import edit from './edit'-// import help from './help'-// import menu from './menu'+import edit from './edit'+import help from './help'+import menu from './menu'import preferences from './preferences'import subnav from './subnav'import task from './task'-// import window from './window'+import window from './window'export default {about,app,- // edit,- // help,- // menu,+ edit,+ help,+ menu,preferences,subnav,- task- // window+ task,+ window}diff --git a/src/shared/locales/en-US/index.js b/src/shared/locales/en-US/index.jsindex 34c114a3..f9320afb 100644--- a/src/shared/locales/en-US/index.js+++ b/src/shared/locales/en-US/index.js@@ -1,21 +1,21 @@import about from './about'import app from './app'-// import edit from './edit'-// import help from './help'-// import menu from './menu'+import edit from './edit'+import help from './help'+import menu from './menu'import preferences from './preferences'import subnav from './subnav'import task from './task'-// import window from './window'+import window from './window'export default {about,app,- // edit,- // help,- // menu,+ edit,+ help,+ menu,preferences,subnav,- task- // window+ task,+ window}diff --git a/src/shared/locales/fr/index.js b/src/shared/locales/fr/index.jsindex 34c114a3..f9320afb 100644--- a/src/shared/locales/fr/index.js+++ b/src/shared/locales/fr/index.js@@ -1,21 +1,21 @@import about from './about'import app from './app'-// import edit from './edit'-// import help from './help'-// import menu from './menu'+import edit from './edit'+import help from './help'+import menu from './menu'import preferences from './preferences'import subnav from './subnav'import task from './task'-// import window from './window'+import window from './window'export default {about,app,- // edit,- // help,- // menu,+ edit,+ help,+ menu,preferences,subnav,- task- // window+ task,+ window}diff --git a/src/shared/locales/pt-BR/index.js b/src/shared/locales/pt-BR/index.jsindex 34c114a3..f9320afb 100644--- a/src/shared/locales/pt-BR/index.js+++ b/src/shared/locales/pt-BR/index.js@@ -1,21 +1,21 @@import about from './about'import app from './app'-// import edit from './edit'-// import help from './help'-// import menu from './menu'+import edit from './edit'+import help from './help'+import menu from './menu'import preferences from './preferences'import subnav from './subnav'import task from './task'-// import window from './window'+import window from './window'export default {about,app,- // edit,- // help,- // menu,+ edit,+ help,+ menu,preferences,subnav,- task- // window+ task,+ window}diff --git a/src/shared/locales/tr/index.js b/src/shared/locales/tr/index.jsindex 34c114a3..f9320afb 100644--- a/src/shared/locales/tr/index.js+++ b/src/shared/locales/tr/index.js@@ -1,21 +1,21 @@import about from './about'import app from './app'-// import edit from './edit'-// import help from './help'-// import menu from './menu'+import edit from './edit'+import help from './help'+import menu from './menu'import preferences from './preferences'import subnav from './subnav'import task from './task'-// import window from './window'+import window from './window'export default {about,app,- // edit,- // help,- // menu,+ edit,+ help,+ menu,preferences,subnav,- task- // window+ task,+ window}diff --git a/src/shared/locales/zh-CN/index.js b/src/shared/locales/zh-CN/index.jsindex 34c114a3..f9320afb 100644--- a/src/shared/locales/zh-CN/index.js+++ b/src/shared/locales/zh-CN/index.js@@ -1,21 +1,21 @@import about from './about'import app from './app'-// import edit from './edit'-// import help from './help'-// import menu from './menu'+import edit from './edit'+import help from './help'+import menu from './menu'import preferences from './preferences'import subnav from './subnav'import task from './task'-// import window from './window'+import window from './window'export default {about,app,- // edit,- // help,- // menu,+ edit,+ help,+ menu,preferences,subnav,- task- // window+ task,+ window}diff --git a/src/shared/locales/zh-TW/index.js b/src/shared/locales/zh-TW/index.jsindex 34c114a3..f9320afb 100644--- a/src/shared/locales/zh-TW/index.js+++ b/src/shared/locales/zh-TW/index.js@@ -1,21 +1,21 @@import about from './about'import app from './app'-// import edit from './edit'-// import help from './help'-// import menu from './menu'+import edit from './edit'+import help from './help'+import menu from './menu'import preferences from './preferences'import subnav from './subnav'import task from './task'-// import window from './window'+import window from './window'export default {about,app,- // edit,- // help,- // menu,+ edit,+ help,+ menu,preferences,subnav,- task- // window+ task,+ window}