Make extra node names more consistent i18n wise

This commit is contained in:
Dave Conway-Jones
2018-03-30 14:50:51 +01:00
parent b8b5a92ad1
commit 4679077760
11 changed files with 15 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
{
"rbe": {
"rbe": "rbe",
"label": {
"func": "Mode",
"init": "Send initial value",

View File

@@ -1,6 +1,6 @@
{
"name" : "node-red-node-rbe",
"version" : "0.2.2",
"version" : "0.2.3",
"description" : "A Node-RED node that provides report-by-exception (RBE) and deadband capability.",
"dependencies" : {
},

View File

@@ -87,8 +87,8 @@
outputs:1,
icon: "rbe.png",
label: function() {
var ll = (this.func||"").replace("Eq","").replace("rbei","rbe")||"rbe";
return this.name||ll||"rbe";
var ll = (this.func||"").replace("Eq","").replace("rbei","rbe")||this._("rbe.rbe");
return this.name||ll||this._("rbe.rbe");
},
labelStyle: function() {
return this.name?"node_label_italic":"";