manifest2po: Parse also docs from manifest
This commit is contained in:
parent
adc5913b76
commit
bd2e75f7ee
1 changed files with 11 additions and 0 deletions
|
|
@ -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) {
|
function process_menu(menu) {
|
||||||
for (var m in menu) {
|
for (var m in menu) {
|
||||||
if (menu[m].label) {
|
if (menu[m].label) {
|
||||||
|
|
@ -108,6 +117,8 @@ function process_menu(menu) {
|
||||||
}
|
}
|
||||||
if (menu[m].keywords)
|
if (menu[m].keywords)
|
||||||
process_keywords(menu[m].keywords);
|
process_keywords(menu[m].keywords);
|
||||||
|
if (menu[m].docs)
|
||||||
|
process_docs(menu[m].docs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue