mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fixing issue 1024 (#1041)
Signed-off-by: Moshe Wajnberg <wajnberg@il.ibm.com>
This commit is contained in:
@@ -137,7 +137,7 @@ msg.cookies = {
|
||||
} else {
|
||||
root += this.url;
|
||||
}
|
||||
return "["+this.method+"] "+root;
|
||||
return RED.text.format.getString("["+this.method+"] "+root, "url", {}, false, "en");
|
||||
} else {
|
||||
return "http";
|
||||
}
|
||||
|
@@ -160,7 +160,7 @@
|
||||
} else {
|
||||
root += this.path;
|
||||
}
|
||||
return root;
|
||||
return RED.text.format.getString(root, "filepath", {}, false, "en");
|
||||
},
|
||||
oneditprepare: function() {
|
||||
var root = RED.settings.httpNodeRoot;
|
||||
@@ -185,7 +185,7 @@
|
||||
inputs:0,
|
||||
outputs:0,
|
||||
label: function() {
|
||||
return this.path;
|
||||
return RED.text.format.getString(this.path, "filepath", {}, false, "en");
|
||||
}
|
||||
});
|
||||
|
||||
|
@@ -53,7 +53,7 @@
|
||||
outputs:1,
|
||||
icon: "watch.png",
|
||||
label: function() {
|
||||
return this.name||this.files;
|
||||
return this.name||RED.text.format.getString(this.files, "filepath", {}, false, "en");
|
||||
},
|
||||
labelStyle: function() {
|
||||
return this.name?"node_label_italic":"";
|
||||
|
Reference in New Issue
Block a user