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

@@ -62,8 +62,8 @@
</div>
<br/>
<div class="form-row">
<label for="node-input-dname"><i class="fa fa-tag"></i> <span data-i18n="common.label.name"></span></label>
<input type="text" id="node-input-dname" data-i18n="[placeholder]common.label.name">
<label for="node-input-dname"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
<input type="text" id="node-input-dname" data-i18n="[placeholder]node-red:common.label.name">
</div>
<div class="form-tips" id="node-tip"><span data-i18n="[html]email.tip.cred"></span></div>
</script>
@@ -144,8 +144,8 @@
</div>
<br/>
<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>
<div class="form-tips" id="node-tip"><span data-i18n="[html]email.tip.cred"></span></div>
<div id="node-input-tip" class="form-tips"><span data-i18n="[html]email.tip.recent"></span></div>

View File

@@ -73,7 +73,7 @@ module.exports = function(RED) {
if (smtpTransport) {
node.status({fill:"blue",shape:"dot",text:RED._("email.status.sending")});
if (msg.to && node.name && (msg.to !== node.name)) {
node.warn(RED._("common.errors.nooverride"));
node.warn(RED._("node-red:common.errors.nooverride"));
}
var sendopts = { from: node.userid }; // sender address
sendopts.to = node.name || msg.to; // comma separated list of addressees
@@ -237,20 +237,20 @@ module.exports = function(RED) {
node.log(RED._("email.status.newemail",{topic:pay.topic}));
}
else { node.log(RED._("email.status.duplicate",{topic:pay.topic})); }
//node.status({fill:"green",shape:"dot",text:RED._("common.status.ok")});
//node.status({fill:"green",shape:"dot",text:RED._("node-red:common.status.ok")});
node.status({});
});
}
else {
node.log(RED._("email.status.inboxzero"));
//node.status({fill:"green",shape:"dot",text:RED._("common.status.ok")});
//node.status({fill:"green",shape:"dot",text:RED._("node-red:common.status.ok")});
node.status({});
}
}
imap.end();
});
});
node.status({fill:"grey",shape:"dot",text:RED._("common.status.connecting")});
node.status({fill:"grey",shape:"dot",text:RED._("node-red:common.status.connecting")});
imap.connect();
});