From 56fd1d4810805e1f43d66f0375d33122a069dcc3 Mon Sep 17 00:00:00 2001 From: John McLear Date: Wed, 23 Sep 2020 09:22:08 +0100 Subject: [PATCH] no need to ask for translations if no template files are included --- bin/plugins/checkPlugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/plugins/checkPlugin.js b/bin/plugins/checkPlugin.js index 0fccb4f12..826dcbc11 100755 --- a/bin/plugins/checkPlugin.js +++ b/bin/plugins/checkPlugin.js @@ -182,7 +182,8 @@ fs.readdir(pluginPath, function (err, rootFiles) { } } - if(files.indexOf("locales") === -1){ + // if we include templates but don't have translations... + if(files.indexOf("templates") !== -1 && files.indexOf("locales") === -1){ console.warn("Translations not found, please create. Translation files help with Etherpad accessibility."); }