mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Add i18n content for moved core nodes
This commit is contained in:
@@ -38,7 +38,7 @@ module.exports = function(RED) {
|
||||
req.on('error', function(err) { node.error(err); });
|
||||
|
||||
req.on('response', function(res) {
|
||||
if (res.statusCode != 200) { node.warn('error - Bad status code'); }
|
||||
if (res.statusCode != 200) { node.warn(RED._("feedparse.errors.badstatuscode")); }
|
||||
else { res.pipe(feedparser); }
|
||||
});
|
||||
|
||||
@@ -46,7 +46,7 @@ module.exports = function(RED) {
|
||||
|
||||
feedparser.on('readable', function () {
|
||||
var stream = this, article;
|
||||
while (article = stream.read()) { // jshint ignore:line
|
||||
while (article = stream.read()) {
|
||||
if (!(article.guid in node.seen) || ( node.seen[article.guid] !== 0 && node.seen[article.guid] != article.date.getTime())) {
|
||||
node.seen[article.guid] = article.date?article.date.getTime():0;
|
||||
var msg = {
|
||||
@@ -65,7 +65,7 @@ module.exports = function(RED) {
|
||||
this.interval_id = setInterval(function() { getFeed(); }, node.interval);
|
||||
getFeed();
|
||||
} else {
|
||||
this.error("Invalid url");
|
||||
this.error(RED._("feedparse.errors.invalidurl"));
|
||||
}
|
||||
|
||||
this.on("close", function() {
|
||||
|
Reference in New Issue
Block a user