From f23fd10873b9813e3f66cd47b964d8cf133b6a8f Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 12 Apr 2021 12:20:46 +0530 Subject: [PATCH] remove XXX notes --- scripts/find-html-translations.js | 34 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/scripts/find-html-translations.js b/scripts/find-html-translations.js index 6e3999ad9..dabdbac4b 100644 --- a/scripts/find-html-translations.js +++ b/scripts/find-html-translations.js @@ -7,11 +7,18 @@ var simpleTags = [ '', '', - // XXX + // FIXME "", '

', '

', + // FIXME register_notes + '', + '
  • ', + '
  • ', + '', + '', ]; ['a', 'b', 'em', 'p', 'i'].forEach(function (tag) { @@ -19,12 +26,11 @@ var simpleTags = [ simpleTags.push(''); }); -var PENDING_ENGLISH_KEYS = []; - -var KNOWN_ISSUES = [ // XXX +// these keys are known to be problematic +var KNOWN_ISSUES = [ // FIXME //'newVersion', - 'fm_info_anonymous', - 'register_notes', + //'fm_info_anonymous', + //'register_notes', ]; var processLang = function (map, lang, primary) { @@ -37,7 +43,7 @@ var processLang = function (map, lang, primary) { Object.keys(map).forEach(function (k) { if (!EN[k]) { return; } - if (KNOWN_ISSUES.indexOf(k) !== -1) { return; } // XXX + if (KNOWN_ISSUES.indexOf(k) !== -1) { return; } var s = map[k]; if (typeof(s) !== 'string') { return; } @@ -53,17 +59,9 @@ var processLang = function (map, lang, primary) { }); if (usesHTML) { - if (primary) { - PENDING_ENGLISH_KEYS.push(k); - } else { - // XXX ignore HTML in translations if they are also present in English - //if (PENDING_ENGLISH_KEYS.indexOf(k) !== -1) { return; } - } - if (true || !primary) { - announce(); - console.log("%s", s); - console.log("[%s]\n", k); - } + announce(); + console.log("%s", s); + console.log("[%s]\n", k); } }); };