diff --git a/editor/js/ui/library.js b/editor/js/ui/library.js index 9f3baa4d2..7bf7a5ffd 100644 --- a/editor/js/ui/library.js +++ b/editor/js/ui/library.js @@ -304,8 +304,7 @@ RED.library = (function() { // } //} //if (exists) { - // $("#node-dialog-library-save-type").html(options.type); - // $("#node-dialog-library-save-name").html(fullpath); + // $("#node-dialog-library-save-content").html(RED._("library.dialogSaveOverwrite",{libraryType:options.type,libraryName:fullpath})); // $("#node-dialog-library-save-confirm").dialog( "open" ); // return; //} diff --git a/editor/js/ui/tab-config.js b/editor/js/ui/tab-config.js index 6ef6ba00d..570ce269c 100644 --- a/editor/js/ui/tab-config.js +++ b/editor/js/ui/tab-config.js @@ -25,7 +25,7 @@ RED.sidebar.config = (function() { function show() { if (!RED.sidebar.containsTab("config")) { - RED.sidebar.addTab("config",content,true); + RED.sidebar.addTab(RED._("sidebar.config"),content,true); } refresh(); RED.sidebar.show("config"); diff --git a/editor/js/ui/tab-info.js b/editor/js/ui/tab-info.js index 3d4928e77..58cde0f92 100644 --- a/editor/js/ui/tab-info.js +++ b/editor/js/ui/tab-info.js @@ -36,7 +36,7 @@ RED.sidebar.info = (function() { function show() { if (!RED.sidebar.containsTab("info")) { - RED.sidebar.addTab("info",content,false); + RED.sidebar.addTab(RED._("sidebar.info"),content,false); } RED.sidebar.show("info"); } diff --git a/editor/js/ui/workspaces.js b/editor/js/ui/workspaces.js index 43a8c3d34..f8dd8b157 100644 --- a/editor/js/ui/workspaces.js +++ b/editor/js/ui/workspaces.js @@ -56,7 +56,7 @@ RED.workspaces = (function() { RED.nodes.dirty(true); } else { $( "#node-dialog-delete-workspace" ).dialog('option','workspace',ws); - $( "#node-dialog-delete-workspace-name" ).text(ws.label); + $( "#node-dialog-delete-workspace-content" ).text(RED._("workspaces.deleteDialog",{label:ws.label})); $( "#node-dialog-delete-workspace" ).dialog('open'); } } diff --git a/editor/templates/index.mst b/editor/templates/index.mst index e7cb7d489..006d0df7b 100644 --- a/editor/templates/index.mst +++ b/editor/templates/index.mst @@ -46,7 +46,7 @@
@@ -55,10 +55,10 @@
- edit name - input - output - delete subflow + + + +
@@ -80,14 +80,14 @@
-
Drop the flow here
+

- +
@@ -95,26 +95,19 @@
-
- Some of the nodes are not properly configured. Are you sure you want to deploy? -
-
- The workspace contains some unknown node types: +
+
    - Are you sure you want to deploy?
    -
    - The workspace contains some unused configuration nodes: +
      - Are you sure you want to deploy?
      -
      - A called already exists. Overwrite? +
      @@ -122,12 +115,12 @@
      - - + +
      - - + +
      @@ -136,7 +129,7 @@
      @@ -152,30 +145,29 @@
      - +
      -
      - Are you sure you want to delete ''? +
      diff --git a/locales/en-US/editor.json b/locales/en-US/editor.json index c8333c4c8..1f9065cea 100644 --- a/locales/en-US/editor.json +++ b/locales/en-US/editor.json @@ -1,7 +1,7 @@ { "workspace": { "label": { - "name": "Name" + "name": "Name:" } }, "menu": { @@ -120,11 +120,13 @@ "typeLibrary": "__type__ library", "unnamedType": "Unnamed __type__", "saveToLibrary": "Save to Library", - "exportToLibrary": "Export nodes to library" + "exportToLibrary": "Export nodes to library", + "dialogSaveOverwrite": "A __libraryType__ called __libraryName__ already exists. Overwrite?" }, "palette": { "noInfo": "no information available", - "popOverError": "Error generating pop-over label for '__type__'." + "popOverError": "Error generating pop-over label for '__type__'.", + "filter": "filter" }, "tabInfo": { "node": "Node", @@ -136,7 +138,31 @@ "properties": "Properties", "blank": "blank" }, + "sidebar": { + "info": "info", + "config": "config" + }, "workspaces": { - "subflow": "Subflow: " - } + "subflow": "Subflow: ", + "editSubflowName": "edit name", + "input": "input", + "output": "output", + "deleteSubflow": "delete subflow", + "dropFlowHere": "Drop the flow here", + "subflowName": "Name", + "folderPlaceholder": "Folder", + "filenamePlaceholder": "Filename", + "folderLabel": "Folder", + "filenameLabel": "Filename", + "libraryBreadcrumb": "Library", + "libraryFilenamePlaceholder": "Filename", + "libraryFilenameLabel": "Filename:", + "libraryNamePlaceholder": "Name", + "libraryNameLabel": "Name", + "confirmDeployImproperlyConfigured": "Some of the nodes are not properly configured. Are you sure you want to deploy?", + "confirmDeployUnknown": "The workspace contains some unknown node types:", + "confirmDeployUnusedConfig": "The workspace contains some unused configuration nodes:", + "confirmDeploy": "Are you sure you want to deploy?", + "deleteDialog": "Are you sure you want to delete '__label__'?" + } } diff --git a/nodes/core/core/58-debug.html b/nodes/core/core/58-debug.html index 351474dbc..330801474 100644 --- a/nodes/core/core/58-debug.html +++ b/nodes/core/core/58-debug.html @@ -140,7 +140,7 @@ messages.id = "debug-content"; content.appendChild(messages); - RED.sidebar.addTab("debug",content); + RED.sidebar.addTab(this._("debug.sidebarTitle"),content); function getTimestamp() { var d = new Date(); diff --git a/nodes/core/locales/en-US/messages.json b/nodes/core/locales/en-US/messages.json index 0eaf0cc7f..b5ba94c20 100644 --- a/nodes/core/locales/en-US/messages.json +++ b/nodes/core/locales/en-US/messages.json @@ -80,7 +80,8 @@ "notification": { "activated": "Successfully activated: __label__", "deactivated": "Successfully deactivated: __label__" - } + }, + "sidebarTitle": "debug" }, "exec": { "spawnerr": "Spawn command must be just the command - no spaces or extra parameters",