diff --git a/nodes/core/hardware/36-rpi-gpio.js b/nodes/core/hardware/36-rpi-gpio.js index 88d7f0d06..8a678ce56 100644 --- a/nodes/core/hardware/36-rpi-gpio.js +++ b/nodes/core/hardware/36-rpi-gpio.js @@ -88,12 +88,12 @@ module.exports = function(RED) { node.child.on('close', function (code) { node.child = null; node.running = false; - if (RED.settings.verbose) { node.log(RED._("rpi-gpio.errors.closed")); } + if (RED.settings.verbose) { node.log(RED._("rpi-gpio.status.closed")); } if (node.done) { - node.status({fill:"grey",shape:"ring",text:RED._("common.status.closed")}); + node.status({fill:"grey",shape:"ring",text:RED._("rpi-gpio.status.closed")}); node.done(); } - else { node.status({fill:"red",shape:"ring",text:RED._("common.status.stopped")}); } + else { node.status({fill:"red",shape:"ring",text:RED._("rpi-gpio.status.stopped")}); } }); node.child.on('error', function (err) { @@ -108,7 +108,7 @@ module.exports = function(RED) { } node.on("close", function(done) { - node.status({fill:"grey",shape:"ring",text:RED._("common.status.close")}); + node.status({fill:"grey",shape:"ring",text:RED._("rpi-gpio.status.closed")}); delete pinsInUse[node.pin]; if (node.child != null) { node.done = done; @@ -151,7 +151,7 @@ module.exports = function(RED) { } else { node.error(RED._("rpi-gpio.errors.pythoncommandnotfound"),msg); - node.status({fill:"red",shape:"ring",text:RED._("common.status.not-running")}); + node.status({fill:"red",shape:"ring",text:RED._("rpi-gpio.status.not-running")}); } } else { node.warn(RED._("rpi-gpio.errors.invalidinput")+": "+out); } @@ -179,12 +179,12 @@ module.exports = function(RED) { node.child.on('close', function (code) { node.child = null; node.running = false; - if (RED.settings.verbose) { node.log(RED._("rpi-gpio.errors.closed")); } + if (RED.settings.verbose) { node.log(RED._("rpi-gpio.status.closed")); } if (node.done) { - node.status({fill:"grey",shape:"ring",text:RED._("common.status.closed")}); + node.status({fill:"grey",shape:"ring",text:RED._("rpi-gpio.status.closed")}); node.done(); } - else { node.status({fill:"red",shape:"ring",text:RED._("common.status.stopped")}); } + else { node.status({fill:"red",shape:"ring",text:RED._("rpi-gpio.status.stopped")}); } }); node.child.on('error', function (err) { @@ -199,7 +199,7 @@ module.exports = function(RED) { } node.on("close", function(done) { - node.status({fill:"grey",shape:"ring",text:RED._("common.status.close")}); + node.status({fill:"grey",shape:"ring",text:RED._("rpi-gpio.status.closed")}); delete pinsInUse[node.pin]; if (node.child != null) { node.done = done; @@ -247,12 +247,12 @@ module.exports = function(RED) { node.child.on('close', function (code) { node.child = null; node.running = false; - if (RED.settings.verbose) { node.log(RED._("rpi-gpio.errors.closed")); } + if (RED.settings.verbose) { node.log(RED._("rpi-gpio.status.closed")); } if (node.done) { - node.status({fill:"grey",shape:"ring",text:RED._("common.status.closed")}); + node.status({fill:"grey",shape:"ring",text:RED._("rpi-gpio.status.closed")}); node.done(); } - else { node.status({fill:"red",shape:"ring",text:RED._("common.status.stopped")}); } + else { node.status({fill:"red",shape:"ring",text:RED._("rpi-gpio.status.stopped")}); } }); node.child.on('error', function (err) { @@ -262,7 +262,7 @@ module.exports = function(RED) { }); node.on("close", function(done) { - node.status({fill:"grey",shape:"ring",text:RED._("common.status.close")}); + node.status({fill:"grey",shape:"ring",text:RED._("rpi-gpio.status.closed")}); if (node.child != null) { node.done = done; node.child.kill('SIGINT'); diff --git a/nodes/core/io/21-httpin.js b/nodes/core/io/21-httpin.js index 95448d3bf..03bcf307f 100644 --- a/nodes/core/io/21-httpin.js +++ b/nodes/core/io/21-httpin.js @@ -195,7 +195,7 @@ module.exports = function(RED) { this.on("input",function(msg) { var preRequestTimestamp = process.hrtime(); - node.status({fill:"blue",shape:"dot",text:RED._("common.status.requesting")}); + node.status({fill:"blue",shape:"dot",text:RED._("httpin.status.requesting")}); var url = nodeUrl || msg.url; if (msg.url && nodeUrl && (nodeUrl !== msg.url)) { // revert change below when warning is finally removed node.warn(RED._("common.errors.nooverride")); diff --git a/nodes/core/io/31-tcpin.js b/nodes/core/io/31-tcpin.js index 2f1ca9d6b..fe4d1ac4b 100644 --- a/nodes/core/io/31-tcpin.js +++ b/nodes/core/io/31-tcpin.js @@ -128,7 +128,7 @@ module.exports = function(RED) { if (socketTimeout !== null) { socket.setTimeout(socketTimeout); } var id = (1+Math.random()*4294967295).toString(16); connectionPool[id] = socket; - node.status({text:++count+" "+RED._("common.status.connections")}); + node.status({text:RED._("tcpin.status.connections",{count:++count})}); var buffer = (node.datatype == 'buffer')? new Buffer(0):""; socket.on('data', function (data) { @@ -175,7 +175,7 @@ module.exports = function(RED) { }); socket.on('close', function() { delete connectionPool[id]; - node.status({text:--count+" "+RED._("common.status.connections")}); + node.status({text:RED._("tcpin.status.connections",{count:--count})}); }); socket.on('error',function(err) { node.log(err); @@ -301,13 +301,13 @@ module.exports = function(RED) { }); } else { var connectedSockets = []; - node.status({text:"0 "+RED._("common.status.connections")}); + node.status({text:RED._("tcpin.status.connections",{count:0})}); var server = net.createServer(function (socket) { if (socketTimeout !== null) { socket.setTimeout(socketTimeout); } var remoteDetails = socket.remoteAddress+":"+socket.remotePort; node.log(RED._("tcpin.status.connection-from",{host:socket.remoteAddress, port:socket.remotePort})); connectedSockets.push(socket); - node.status({text:connectedSockets.length+" "+RED._("common.status.connections")}); + node.status({text:connectedSockets.length+" "+RED._("tcpin.status.connections")}); socket.on('timeout', function() { node.log(RED._("tcpin.errors.timeout",{port:node.port})); socket.end(); @@ -315,12 +315,12 @@ module.exports = function(RED) { socket.on('close',function() { node.log(RED._("tcpin.status.connection-closed",{host:socket.remoteAddress, port:socket.remotePort})); connectedSockets.splice(connectedSockets.indexOf(socket),1); - node.status({text:connectedSockets.length+" "+RED._("common.status.connections")}); + node.status({text:RED._("common.status.connections",{count:connectedSockets.length})}); }); socket.on('error',function() { node.log(RED._("tcpin.errors.socket-error",{host:socket.remoteAddress, port:socket.remotePort})); connectedSockets.splice(connectedSockets.indexOf(socket),1); - node.status({text:connectedSockets.length+" "+RED._("common.status.connections")}); + node.status({text:RED._("common.status.connections",{count:connectedSockets.length})}); }); }); diff --git a/nodes/core/io/32-udp.html b/nodes/core/io/32-udp.html index 0cd36c2d6..6a1e5afc1 100644 --- a/nodes/core/io/32-udp.html +++ b/nodes/core/io/32-udp.html @@ -29,11 +29,11 @@
- +
- +    - - - + + +
-
+