mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Make core nodes labels more consistent, to close #1673
and make them translateable
This commit is contained in:
@@ -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":"";
|
||||
|
@@ -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" : "";
|
||||
|
@@ -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":"";
|
||||
|
@@ -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" : "";
|
||||
|
@@ -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" : "";
|
||||
|
Reference in New Issue
Block a user