From bd2e75f7eeb3e7604da41209eb13ee376d71181a Mon Sep 17 00:00:00 2001 From: Matej Marusak Date: Mon, 3 Feb 2020 10:34:47 +0100 Subject: [PATCH] manifest2po: Parse also docs from manifest --- po/manifest2po | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/po/manifest2po b/po/manifest2po index 2dc691c..5376ef8 100755 --- a/po/manifest2po +++ b/po/manifest2po @@ -98,6 +98,15 @@ function process_keywords(keywords) { }); } +function process_docs(docs) { + docs.forEach(doc => { + push({ + msgid: doc.label, + locations: [ filename ] + }) + }); +} + function process_menu(menu) { for (var m in menu) { if (menu[m].label) { @@ -108,6 +117,8 @@ function process_menu(menu) { } if (menu[m].keywords) process_keywords(menu[m].keywords); + if (menu[m].docs) + process_docs(menu[m].docs); } }