From 48df31d7b754896fda09ab322c9d1bf8b3aff9bd Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 16 Jun 2015 15:39:45 +0100 Subject: [PATCH] NLS deprecated node message --- locales/en-US/runtime.json | 4 ++-- red/nodes/flows.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/locales/en-US/runtime.json b/locales/en-US/runtime.json index 3825c4a0b..56cbd4761 100644 --- a/locales/en-US/runtime.json +++ b/locales/en-US/runtime.json @@ -80,8 +80,8 @@ "stopped-modified-flows": "Stopped modified flows", "stopped-flows": "Stopped flows", "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": { "unknown-type": "Unknown type: __type__", diff --git a/red/nodes/flows.js b/red/nodes/flows.js index 475be1f25..c7c235afa 100644 --- a/red/nodes/flows.js +++ b/red/nodes/flows.js @@ -153,16 +153,16 @@ var flowNodes = module.exports = { var type = missingTypes[i]; var info = deprecated.get(type); 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; } else { log.info(" - "+missingTypes[i]); } } 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 "); - log.info("in the directory:"); + log.info(log._("nodes.flows.missing-type-install-2")); log.info(" "+settings.userDir); } }