Update core nodes to pull common msgs from node-red ns

This commit is contained in:
Nick O'Leary
2015-06-16 11:16:29 +01:00
parent 7d011dac99
commit da209a6b66
13 changed files with 64 additions and 64 deletions

View File

@@ -20,8 +20,8 @@
<input type="text" id="node-input-serial">
</div>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="common.label.name"></span></label>
<input type="text" id="node-input-name" data-i18n="[placeholder]common.label.name">
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
<input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
</div>
</script>
@@ -61,8 +61,8 @@
<input type="text" id="node-input-serial">
</div>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="common.label.name"></span></label>
<input type="text" id="node-input-name" data-i18n="[placeholder]common.label.name">
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
<input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
</div>
</script>

View File

@@ -76,10 +76,10 @@ module.exports = function(RED) {
}
});
node.port.on('ready', function() {
node.status({fill:"green",shape:"dot",text:RED._("common.status.connected")});
node.status({fill:"green",shape:"dot",text:RED._("node-red:common.status.connected")});
});
node.port.on('closed', function() {
node.status({fill:"red",shape:"ring",text:RED._("common.status.not-connected")});
node.status({fill:"red",shape:"ring",text:RED._("node-red:common.status.not-connected")});
});
} else {
this.error(RED._("serial.errors.missing-conf"));
@@ -108,7 +108,7 @@ module.exports = function(RED) {
if (node.serialConfig.out != "count") { buf = new Buffer(bufMaxSize); }
else { buf = new Buffer(Number(node.serialConfig.newline)); }
var i = 0;
node.status({fill:"grey",shape:"dot",text:RED._("common.status.not-connected")});
node.status({fill:"grey",shape:"dot",text:RED._("node-red:common.status.not-connected")});
node.port = serialPool.get(this.serialConfig.serialport,
this.serialConfig.serialbaud,
this.serialConfig.databits,
@@ -179,10 +179,10 @@ module.exports = function(RED) {
}
});
this.port.on('ready', function() {
node.status({fill:"green",shape:"dot",text:RED._("common.status.connected")});
node.status({fill:"green",shape:"dot",text:RED._("node-red:common.status.connected")});
});
this.port.on('closed', function() {
node.status({fill:"red",shape:"ring",text:RED._("common.status.not-connected")});
node.status({fill:"red",shape:"ring",text:RED._("node-red:common.status.not-connected")});
});
} else {
this.error(RED._("serial.errors.missing-conf"));