diff --git a/nodes/core/core/75-exec.html b/nodes/core/core/75-exec.html
index 8d9d167f8..718531c04 100644
--- a/nodes/core/core/75-exec.html
+++ b/nodes/core/core/75-exec.html
@@ -138,7 +138,7 @@
icon: "arrow-in.png",
align: "right",
label: function() {
- return this.name||this.command;
+ return this.name||this.command||(this.useSpawn=="true"?this._("exec.spawn"):this._("exec.exec"));
},
labelStyle: function() {
return this.name?"node_label_italic":"";
diff --git a/nodes/core/core/80-template.html b/nodes/core/core/80-template.html
index d2c41419f..df173f610 100644
--- a/nodes/core/core/80-template.html
+++ b/nodes/core/core/80-template.html
@@ -99,7 +99,7 @@
outputs:1,
icon: "template.png",
label: function() {
- return this.name;
+ return this.name||this._("template.template");;
},
labelStyle: function() {
return this.name?"node_label_italic":"";
diff --git a/nodes/core/core/80-template.js b/nodes/core/core/80-template.js
index d6b865463..e257dd2fa 100644
--- a/nodes/core/core/80-template.js
+++ b/nodes/core/core/80-template.js
@@ -50,6 +50,7 @@ module.exports = function(RED) {
// try node context:
var dot = name.indexOf(".");
+ /* istanbul ignore else */
if (dot > 0) {
var contextName = name.substr(0, dot);
var variableName = name.substr(dot + 1);
@@ -61,7 +62,8 @@ module.exports = function(RED) {
return this.nodeContext.global.get(variableName);
}
}
- }catch(err) {
+ }
+ catch(err) {
throw err;
}
}
@@ -103,9 +105,11 @@ module.exports = function(RED) {
} else {
value = template;
}
+ /* istanbul ignore else */
if (node.outputFormat === "json") {
value = JSON.parse(value);
}
+ /* istanbul ignore else */
if (node.outputFormat === "yaml") {
value = yaml.load(value);
}
@@ -118,7 +122,8 @@ module.exports = function(RED) {
node.context().global.set(node.field,value);
}
node.send(msg);
- } catch(err) {
+ }
+ catch(err) {
node.error(err.message);
}
});
diff --git a/nodes/core/core/90-comment.html b/nodes/core/core/90-comment.html
index 2f65eeec3..dcb8f31fd 100644
--- a/nodes/core/core/90-comment.html
+++ b/nodes/core/core/90-comment.html
@@ -33,7 +33,7 @@
outputs:0,
icon: "comment.png",
label: function() {
- return this.name||"";
+ return this.name||this._("comment.comment");
},
labelStyle: function() {
return this.name?"node_label_italic":"";
diff --git a/nodes/core/io/23-watch.html b/nodes/core/io/23-watch.html
index 781049c64..a0259becd 100644
--- a/nodes/core/io/23-watch.html
+++ b/nodes/core/io/23-watch.html
@@ -59,7 +59,7 @@
outputs:1,
icon: "watch.png",
label: function() {
- return this.name||this.files;
+ return this.name||this.files||this._("watch.watch");
},
labelStyle: function() {
return this.name?"node_label_italic":"";
diff --git a/nodes/core/locales/en-US/messages.json b/nodes/core/locales/en-US/messages.json
index 241aab815..e5f6b42fa 100644
--- a/nodes/core/locales/en-US/messages.json
+++ b/nodes/core/locales/en-US/messages.json
@@ -70,8 +70,8 @@
}
},
"catch": {
- "catch": "catch all",
- "catchNodes": "catch (__number__)",
+ "catch": "catch: all",
+ "catchNodes": "catch: __number__",
"label": {
"source": "Catch errors from",
"node": "node",
@@ -86,8 +86,8 @@
}
},
"status": {
- "status": "status (all)",
- "statusNodes": "status (__number__)",
+ "status": "status: all",
+ "statusNodes": "status: __number__",
"label": {
"source": "Report status from",
"node": "node",
@@ -166,6 +166,8 @@
}
},
"exec": {
+ "exec": "exec",
+ "spawn": "spawn",
"label": {
"command": "Command",
"append": "Append",
@@ -195,6 +197,7 @@
"tip": "See the Info tab for help writing functions."
},
"template": {
+ "template": "template",
"label": {
"template": "Template",
"property": "Set property",
@@ -301,6 +304,7 @@
}
},
"comment": {
+ "comment": "comment",
"label": {
"title": "Title",
"body": "Body"
@@ -416,6 +420,7 @@
}
},
"watch": {
+ "watch": "watch",
"label": {
"files": "File(s)",
"recursive": "Watch sub-directories recursively"
@@ -542,6 +547,7 @@
}
},
"switch": {
+ "switch": "switch",
"label": {
"property": "Property",
"rule": "rule",
@@ -597,6 +603,7 @@
}
},
"range": {
+ "range": "range",
"label": {
"action": "Action",
"inputrange": "Map the input range",
@@ -784,6 +791,7 @@
}
},
"tail": {
+ "tail": "tail",
"label": {
"filename": "Filename",
"type": "File type",
@@ -837,6 +845,7 @@
"tip": "Tip: The filename should be an absolute path, otherwise it will be relative to the working directory of the Node-RED process."
},
"split": {
+ "split": "split",
"intro":"Split msg.payload
based on type:",
"object":"Object",
"objectSend":"Send a message for each key/value pair",
@@ -848,6 +857,7 @@
"addname":" Copy key to "
},
"join":{
+ "join": "join",
"mode":{
"mode":"Mode",
"auto":"automatic",
@@ -894,6 +904,7 @@
}
},
"sort" : {
+ "sort": "sort",
"target" : "Sort",
"seq" : "message sequence",
"key" : "Key",
@@ -907,6 +918,7 @@
"clear" : "clear pending message in sort node"
},
"batch" : {
+ "batch": "batch",
"mode": {
"label" : "Mode",
"num-msgs" : "Group by number of messages",
diff --git a/nodes/core/logic/10-switch.html b/nodes/core/logic/10-switch.html
index 773ee1541..883ee6c84 100644
--- a/nodes/core/logic/10-switch.html
+++ b/nodes/core/logic/10-switch.html
@@ -140,7 +140,7 @@
},
icon: "switch.png",
label: function() {
- return this.name||"switch";
+ return this.name||this._("swicth.switch");
},
labelStyle: function() {
return this.name?"node_label_italic":"";
diff --git a/nodes/core/logic/16-range.html b/nodes/core/logic/16-range.html
index 37d35fb85..6b930f710 100644
--- a/nodes/core/logic/16-range.html
+++ b/nodes/core/logic/16-range.html
@@ -76,7 +76,8 @@
outputs: 1,
icon: "range.png",
label: function() {
- return this.name || "range";
+ if (this.minout !== "" && this.maxout !== "") { return this.name||this.minout + " - " + this.maxout; }
+ else { return this.name||this._("range.range"); }
},
labelStyle: function() {
return this.name ? "node_label_italic" : "";
diff --git a/nodes/core/logic/17-split.html b/nodes/core/logic/17-split.html
index 603443c21..4c2b9313e 100644
--- a/nodes/core/logic/17-split.html
+++ b/nodes/core/logic/17-split.html
@@ -112,7 +112,7 @@
outputs:1,
icon: "split.png",
label: function() {
- return this.name||"split";
+ return this.name||this._("split.split");
},
labelStyle: function() {
return this.name?"node_label_italic":"";
@@ -367,7 +367,7 @@
outputs:1,
icon: "join.png",
label: function() {
- return this.name||"join";
+ return this.name||this._("join.join");
},
labelStyle: function() {
return this.name?"node_label_italic":"";
diff --git a/nodes/core/logic/18-sort.html b/nodes/core/logic/18-sort.html
index 926d7e308..9d7bd6a7d 100644
--- a/nodes/core/logic/18-sort.html
+++ b/nodes/core/logic/18-sort.html
@@ -103,7 +103,7 @@
outputs:1,
icon: "sort.png",
label: function() {
- return this.name || "sort";
+ return this.name||this._("sort.sort");
},
labelStyle: function() {
return this.name ? "node_label_italic" : "";
diff --git a/nodes/core/logic/19-batch.html b/nodes/core/logic/19-batch.html
index a559dacad..05aafe61a 100644
--- a/nodes/core/logic/19-batch.html
+++ b/nodes/core/logic/19-batch.html
@@ -110,7 +110,7 @@
outputs:1,
icon: "batch.png",
label: function() {
- return this.name || "batch";
+ return this.name||this._("batch.batch");;
},
labelStyle: function() {
return this.name ? "node_label_italic" : "";
diff --git a/nodes/core/storage/28-tail.html b/nodes/core/storage/28-tail.html
index 3f0c158d8..783c8a3fd 100644
--- a/nodes/core/storage/28-tail.html
+++ b/nodes/core/storage/28-tail.html
@@ -46,7 +46,7 @@
outputs:1,
icon: "file.png",
label: function() {
- return this.name||this.filename||"tail";
+ return this.name||this.filename||this._("tail.tail");
},
labelStyle: function() {
return this.name?"node_label_italic":"";