Don't try to nls status text starting with '.'

Fixes #1258
This commit is contained in:
Nick O'Leary
2017-05-24 12:21:35 +01:00
parent 0a6ff900da
commit 9c6452544b

View File

@@ -89,7 +89,9 @@
var node = RED.nodes.node(parts[1]);
if (node) {
if (msg.hasOwnProperty("text")) {
msg.text = node._(msg.text.toString(),{defaultValue:msg.text.toString()});
if (msg.text[0] !== ".") {
msg.text = node._(msg.text.toString(),{defaultValue:msg.text.toString()});
}
}
node.status = msg;
node.dirty = true;