From 5522e57f65bf31cc7c07f37b9a9b315e5f5b1f70 Mon Sep 17 00:00:00 2001
From: Nick O'Leary
Date: Wed, 27 May 2015 23:07:31 +0100
Subject: [PATCH] More node i18n tidy-up
---
nodes/core/analysis/72-sentiment.html | 2 +-
nodes/core/core/89-delay.html | 8 +-
nodes/core/core/89-delay.js | 2 +-
nodes/core/core/90-comment.html | 14 +-
nodes/core/core/98-unknown.html | 2 +-
nodes/core/io/22-websocket.html | 257 +++++++++++----------
nodes/core/io/23-watch.html | 2 +-
nodes/core/io/31-tcpin.html | 50 ++---
nodes/core/io/31-tcpin.js | 42 ++--
nodes/core/locales/en-US/messages.json | 285 +++++++++++++-----------
nodes/core/logic/10-switch.html | 20 +-
nodes/core/logic/15-change.html | 15 +-
nodes/core/logic/15-change.js | 2 +-
nodes/core/logic/16-range.html | 16 +-
nodes/core/parsers/70-CSV.html | 26 +--
nodes/core/parsers/70-HTML.html | 8 +-
nodes/core/parsers/70-JSON.js | 4 +-
test/nodes/core/parsers/70-JSON_spec.js | 8 +-
test/nodes/core/storage/50-file_spec.js | 1 -
19 files changed, 386 insertions(+), 378 deletions(-)
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 @@