Skip to content

TagSpaces is an offline, open source, document manager with tagging support

i18n: extracting missing strings for app menu on darwin platform

fringoo819591828ce4
diff --git a/data/electron/electron.api.js b/data/electron/electron.api.js
index 14c492b84..e79d20e3b 100644
--- a/data/electron/electron.api.js
+++ b/data/electron/electron.api.js
@@ -157,19 +157,18 @@ define(function(require, exports, module) {
];
if (process.platform == 'darwin') {
- var name = "TagSpaces";
template.unshift({
label: name,
submenu: [
{
- label: 'About ' + name,
+ label: $.i18n.t("ns.common:aboutTagSpaces"),
role: 'about'
},
{
type: 'separator'
},
{
- label: 'Services',
+ label: $.i18n.t("ns.common:services"),
role: 'services',
submenu: []
},
@@ -177,24 +176,24 @@ define(function(require, exports, module) {
type: 'separator'
},
{
- label: 'Hide ' + name,
+ label: $.i18n.t("ns.common:hideTagSpaces"),
accelerator: 'Command+H',
role: 'hide'
},
{
- label: 'Hide Others',
+ label: $.i18n.t("ns.common:hideOthers"),
accelerator: 'Command+Alt+H',
role: 'hideothers'
},
{
- label: 'Show All',
+ label: $.i18n.t("ns.common:showAll"),
role: 'unhide'
},
{
type: 'separator'
},
{
- label: 'Quit',
+ label: $.i18n.t("ns.common:quit"),
accelerator: 'Command+Q',
click: function() { app.quit(); }
},
diff --git a/data/locales/en_US/ns.common.json b/data/locales/en_US/ns.common.json
index 1990720bb..be70b021d 100644
--- a/data/locales/en_US/ns.common.json
+++ b/data/locales/en_US/ns.common.json
@@ -212,5 +212,11 @@
"openingleftpanelagainContent": "Here you can open the left panel again.",
"enjoyTitle": "Enjoy using TagSpaces!",
"thankyouContent": "... and thank you for your attention.",
- "-": "-"
+ "-": "-",
+ "services": "Services",
+ "hideTagspaces": "Hide TagSpaces",
+ "hideOthers": "Hide Others",
+ "showAll": "Show All",
+ "quit": "Quit"
+
}