Send status message id to be nls'd in editor

This commit is contained in:
Nick O'Leary
2015-07-07 21:31:28 +01:00
parent fd4b319af9
commit ee5ff8b010
6 changed files with 42 additions and 42 deletions

View File

@@ -75,9 +75,9 @@ module.exports = function(RED) {
if (typeof this.serverConfig === "object") {
this.board = this.serverConfig.board;
var node = this;
node.status({fill:"red",shape:"ring",text:RED._("node-red:common.status.connecting")});
node.status({fill:"red",shape:"ring",text:"node-red:common.status.connecting"});
node.board.on('connect', function() {
node.status({fill:"green",shape:"dot",text:RED._("node-red:common.status.connected")});
node.status({fill:"green",shape:"dot",text:"node-red:common.status.connected"});
//console.log("i",node.state,node.pin);
if (node.state == "ANALOG") {
node.board.on('analogChange', function(e) {
@@ -122,10 +122,10 @@ module.exports = function(RED) {
if (typeof this.serverConfig === "object") {
this.board = this.serverConfig.board;
var node = this;
node.status({fill:"red",shape:"ring",text:RED._("node-red:common.status.connecting")});
node.status({fill:"red",shape:"ring",text:"node-red:common.status.connecting"});
node.board.on('connect', function() {
node.status({fill:"green",shape:"dot",text:RED._("node-red:common.status.connected")});
node.status({fill:"green",shape:"dot",text:"node-red:common.status.connected"});
//console.log("o",node.state,node.pin);
node.board.pinMode(node.pin, node.state);
node.on("input", function(msg) {