mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
NLS deprecated node message
This commit is contained in:
parent
539afb1e1d
commit
48df31d7b7
@ -80,8 +80,8 @@
|
|||||||
"stopped-modified-flows": "Stopped modified flows",
|
"stopped-modified-flows": "Stopped modified flows",
|
||||||
"stopped-flows": "Stopped flows",
|
"stopped-flows": "Stopped flows",
|
||||||
"stopped": "Stopped",
|
"stopped": "Stopped",
|
||||||
"missing-types": "Waiting for missing types to be registered:"
|
"missing-types": "Waiting for missing types to be registered:",
|
||||||
|
"missing-type-provided": " - __type__ (provided by npm module __module__)"
|
||||||
},
|
},
|
||||||
"flow": {
|
"flow": {
|
||||||
"unknown-type": "Unknown type: __type__",
|
"unknown-type": "Unknown type: __type__",
|
||||||
|
@ -153,16 +153,16 @@ var flowNodes = module.exports = {
|
|||||||
var type = missingTypes[i];
|
var type = missingTypes[i];
|
||||||
var info = deprecated.get(type);
|
var info = deprecated.get(type);
|
||||||
if (info) {
|
if (info) {
|
||||||
log.info(" - "+missingTypes[i]+" (provided by npm module "+info.module+")");
|
log.info(log._("nodes.flows.missing-type-provided",{type:missingTypes[i],module:info.module}));
|
||||||
knownUnknowns += 1;
|
knownUnknowns += 1;
|
||||||
} else {
|
} else {
|
||||||
log.info(" - "+missingTypes[i]);
|
log.info(" - "+missingTypes[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (knownUnknowns > 0) {
|
if (knownUnknowns > 0) {
|
||||||
log.info("To install any of these missing modules, run:");
|
log.info(log._("nodes.flows.missing-type-install-1"));
|
||||||
log.info(" npm install <module name>");
|
log.info(" npm install <module name>");
|
||||||
log.info("in the directory:");
|
log.info(log._("nodes.flows.missing-type-install-2"));
|
||||||
log.info(" "+settings.userDir);
|
log.info(" "+settings.userDir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user