diff --git a/nodes/core/analysis/72-sentiment.html b/nodes/core/analysis/72-sentiment.html index f2912aa87..59c889efc 100644 --- a/nodes/core/analysis/72-sentiment.html +++ b/nodes/core/analysis/72-sentiment.html @@ -40,7 +40,7 @@ outputs:1, icon: "arrow-in.png", label: function() { - return this.name||this._("sentiment.sentiment"); + return this.name||"sentiment"; }, labelStyle: function() { return this.name?"node_label_italic":""; diff --git a/nodes/core/core/89-delay.html b/nodes/core/core/89-delay.html index 2d2172a6f..ff2cd6610 100644 --- a/nodes/core/core/89-delay.html +++ b/nodes/core/core/89-delay.html @@ -109,16 +109,16 @@ if (this.pauseType == "delay") { var units = this.timeoutUnits ? this.timeoutUnits.charAt(0) : "s"; if (this.timeoutUnits == "milliseconds") { units = "ms"; } - return this.name||this._("delay.delaylabel")+" "+this.timeout+" " + units; + return this.name||this._("delay.label.delay")+" "+this.timeout+" " + units; } else if (this.pauseType == "rate") { var units = this.rateUnits ? this.rateUnits.charAt(0) : "s"; - return this.name||this._("delay.limitlabel")+" "+this.rate+" "+this._("delay.msgperlabel")+ units; + return this.name||this._("delay.label.limit")+" "+this.rate+" msg/"+ units; } else if (this.pauseType == "random") { - return this.name || this._("delay.randomlabel"); + return this.name || this._("delay.label.random"); } else { var units = this.rateUnits ? this.rateUnits.charAt(0) : "s"; - return this.name || this._("delay.queuelabel") +this.rate+" "+this._("delay.msgperlabel")+ units; + return this.name || this._("delay.label.queue") +this.rate+" msg/"+ units; } }, labelStyle: function() { // sets the class to apply to the label diff --git a/nodes/core/core/89-delay.js b/nodes/core/core/89-delay.js index 9f7e685dc..8d9079d18 100644 --- a/nodes/core/core/89-delay.js +++ b/nodes/core/core/89-delay.js @@ -104,7 +104,7 @@ module.exports = function(RED) { node.status({text:node.buffer.length}); } if (node.buffer.length > 1000) { - node.warn(this.name + " " + RED._("delay.buffererr")); + node.warn(this.name + " " + RED._("delay.error.buffer")); } } else { node.send(msg); diff --git a/nodes/core/core/90-comment.html b/nodes/core/core/90-comment.html index eb049b9e9..7e0aeb8ea 100644 --- a/nodes/core/core/90-comment.html +++ b/nodes/core/core/90-comment.html @@ -16,17 +16,17 @@ @@ -157,28 +228,6 @@ function ws_validateclient() { should delete the msg._session property within the flow

. - - - - - diff --git a/nodes/core/io/23-watch.html b/nodes/core/io/23-watch.html index 1acbea2aa..b2fbfcac0 100644 --- a/nodes/core/io/23-watch.html +++ b/nodes/core/io/23-watch.html @@ -17,7 +17,7 @@ diff --git a/nodes/core/parsers/70-HTML.html b/nodes/core/parsers/70-HTML.html index 997e43470..4451e2fa9 100644 --- a/nodes/core/parsers/70-HTML.html +++ b/nodes/core/parsers/70-HTML.html @@ -22,8 +22,8 @@
@@ -31,8 +31,8 @@

diff --git a/nodes/core/parsers/70-JSON.js b/nodes/core/parsers/70-JSON.js index fb38ef50f..ec13bcff5 100644 --- a/nodes/core/parsers/70-JSON.js +++ b/nodes/core/parsers/70-JSON.js @@ -35,9 +35,9 @@ module.exports = function(RED) { msg.payload = JSON.stringify(msg.payload); node.send(msg); } - else { node.warn(RED._("json.errors.dropped")+": "+msg.payload); } + else { node.warn(RED._("json.errors.dropped-object")); } } - else { node.warn(RED._("json.errors.dropped")+": "+msg.payload); } + else { node.warn(RED._("json.errors.dropped")); } } else { node.send(msg); } // If no payload - just pass it on. }); diff --git a/test/nodes/core/parsers/70-JSON_spec.js b/test/nodes/core/parsers/70-JSON_spec.js index b5a5bf3c6..2978ae5d8 100644 --- a/test/nodes/core/parsers/70-JSON_spec.js +++ b/test/nodes/core/parsers/70-JSON_spec.js @@ -105,13 +105,13 @@ describe('JSON node', function() { //console.log(logEvents); logEvents.should.have.length(4); logEvents[0][0].should.have.a.property('msg'); - logEvents[0][0].msg.toString().should.startWith('json.errors.dropped: '); + logEvents[0][0].msg.toString().should.eql('json.errors.dropped'); logEvents[1][0].should.have.a.property('msg'); - logEvents[1][0].msg.toString().should.startWith('json.errors.dropped: '); + logEvents[1][0].msg.toString().should.eql('json.errors.dropped'); logEvents[2][0].should.have.a.property('msg'); - logEvents[2][0].msg.toString().should.startWith('json.errors.dropped: '); + logEvents[2][0].msg.toString().should.eql('json.errors.dropped-object'); logEvents[3][0].should.have.a.property('msg'); - logEvents[3][0].msg.toString().should.startWith('json.errors.dropped: '); + logEvents[3][0].msg.toString().should.eql('json.errors.dropped-object'); done(); } catch(err) { done(err); diff --git a/test/nodes/core/storage/50-file_spec.js b/test/nodes/core/storage/50-file_spec.js index 6d99ecb6e..9b1b34860 100644 --- a/test/nodes/core/storage/50-file_spec.js +++ b/test/nodes/core/storage/50-file_spec.js @@ -350,7 +350,6 @@ describe('file Nodes', function() { var logEvents = helper.log().args.filter(function(evt) { return evt[0].type == "file in"; }); - console.log(logEvents[0][0].msg); logEvents.should.have.length(1); logEvents[0][0].should.have.a.property('msg'); //logEvents[0][0].msg.toString().should.equal("Error: ENOENT, open 'badfile'");