tools: fix generation of welcome-dialog-data.[ch].

This was broken because of the port to gettext (XML tag names for
translatable text were not prefixed by an underscore anymore).
This commit is contained in:
Jehan 2022-08-21 21:14:07 +02:00
parent e7b81b9f71
commit 20d6ae85ea
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ def parse_appdata(infile, version):
releases = releases_node.findall('release')
for release in releases:
if 'version' in release.attrib and release.attrib['version'] == version:
intro = release.findall('./description/_p')
intro = release.findall('./description/p')
for p in intro:
# Naive conversion for C strings, but it will probably fit for
# most cases.
@ -56,7 +56,7 @@ def parse_appdata(infile, version):
# All redundant spaces unwanted as XML merges them anyway.
introduction += [spaces.sub(' ', p)]
items = release.findall('./description/ul/_li')
items = release.findall('./description/ul/li')
for item in items:
text = item.text.strip()
text = text.replace('\\', '\\\\')