Skip to content

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

i18n: extracting missing strings for application main menu

fringoo6f36013aef71
diff --git a/data/electron/electron.api.js b/data/electron/electron.api.js
index cb6021c48..14c492b84 100644
--- a/data/electron/electron.api.js
+++ b/data/electron/electron.api.js
@@ -53,15 +53,15 @@ define(function(require, exports, module) {
var Menu = remote.Menu;
var template = [
{
- label: 'Edit',
+ label: $.i18n.t("ns.common:edit"),
submenu: [
{
- label: 'Undo',
+ label: $.i18n.t("ns.common:undo") ,
accelerator: 'CmdOrCtrl+Z',
role: 'undo'
},
{
- label: 'Redo',
+ label: $.i18n.t("ns.common:redo") ,
accelerator: 'Shift+CmdOrCtrl+Z',
role: 'redo'
},
@@ -69,29 +69,29 @@ define(function(require, exports, module) {
type: 'separator'
},
{
- label: 'Cut',
+ label: $.i18n.t("ns.common:cut") ,
accelerator: 'CmdOrCtrl+X',
role: 'cut'
},
{
- label: 'Copy',
+ label: $.i18n.t("ns.common:copy") ,
accelerator: 'CmdOrCtrl+C',
role: 'copy'
},
{
- label: 'Paste',
+ label: $.i18n.t("ns.common:paste") ,
accelerator: 'CmdOrCtrl+V',
role: 'paste'
},
{
- label: 'Select All',
+ label: $.i18n.t("ns.common:selectAll") ,
accelerator: 'CmdOrCtrl+A',
role: 'selectall'
},
]
},
{
- label: 'View',
+ label: $.i18n.t("ns.common:view"),
submenu: [
{
label: $.i18n.t("ns.common:reloadApplication"),
@@ -143,7 +143,7 @@ define(function(require, exports, module) {
]
},
{
- label: 'Help',
+ label: $.i18n.t("ns.common:help"),
submenu: [
{
label: $.i18n.t("ns.common:aboutTagSpaces"),
@@ -213,9 +213,9 @@ define(function(require, exports, module) {
}
var menu = Menu.buildFromTemplate(template);
- Menu.setApplicationMenu(menu);
+ Menu.setApplicationMenu(menu);
}
-
+
// Brings the TagSpaces window on top of the windows
function focusWindow() {
win.focus();
@@ -551,7 +551,7 @@ define(function(require, exports, module) {
var newDirPath = TSCORE.TagUtils.extractParentDirectoryPath(dirPath) + TSCORE.dirSeparator + newDirName;
console.log("Renaming dir: " + dirPath + " to " + newDirPath);
return new Promise(function(resolve, reject) {
- if (dirPath === newDirPath) {
+ if (dirPath === newDirPath) {
reject($.i18n.t("ns.common:directoryTheSame"), $.i18n.t("ns.common:directoryNotMoved"));
}
if (fs.existsSync(newDirPath)) {
@@ -562,7 +562,7 @@ define(function(require, exports, module) {
fs.rename(dirPath, newDirPath, function(error) {
if (error) {
console.error("Renaming directory failed " + error);
- reject("Renaming " + dirPath + " failed.");
+ reject("Renaming " + dirPath + " failed.");
}
resolve(newDirPath);
});
@@ -787,7 +787,7 @@ define(function(require, exports, module) {
var file = ev.target.files[0];
TSPOSTIO.selectDirectory(file.path);
$(this).off("change");
- $(this).val("");
+ $(this).val("");
});
chooser.trigger('click');
}
diff --git a/data/locales/en_US/ns.common.json b/data/locales/en_US/ns.common.json
index 7444dbb56..1990720bb 100644
--- a/data/locales/en_US/ns.common.json
+++ b/data/locales/en_US/ns.common.json
@@ -160,6 +160,13 @@
"showDevTools": "Show Developer Tools",
"toggleFullScreen": "Toggle Fullscreen",
"reloadApplication": "Reload Application",
+ "edit": "Edit",
+ "undo": "Undo",
+ "redo": "Redo",
+ "cut": "Cut",
+ "copy": "Copy",
+ "paste": "Paste",
+ "selectAll": "Select All",
"view": "View",
"help": "Help",
"settings": "Settings",
@@ -206,4 +213,4 @@
"enjoyTitle": "Enjoy using TagSpaces!",
"thankyouContent": "... and thank you for your attention.",
"-": "-"
-}
\ No newline at end of file
+}
diff --git a/data/locales/pl/ns.common.json b/data/locales/pl/ns.common.json
index 772445b19..a6dfb0be8 100644
--- a/data/locales/pl/ns.common.json
+++ b/data/locales/pl/ns.common.json
@@ -160,6 +160,13 @@
"showDevTools": "Pokaż narzędzia deweloperskie",
"toggleFullScreen": "Przełącz tryb pełnoekranowy",
"reloadApplication": "Uruchom ponownie aplikację",
+ "edit": "Edycja",
+ "undo": "Cofnij",
+ "redo": "Ponów",
+ "cut": "Wytnij",
+ "copy": "Kopiuj",
+ "paste": "Wklej",
+ "selectAll": "Zaznacz wszystko",
"view": "Widok",
"help": "Pomoc",
"settings": "Ustawienia",
@@ -206,4 +213,4 @@
"enjoyTitle": "Miłego używania TagSpaces!",
"thankyouContent": "... i dziękuję za uwagę.",
"-": "-"
-}
\ No newline at end of file
+}