mirror of https://github.com/GNOME/gimp.git
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:
parent
e7b81b9f71
commit
20d6ae85ea
|
@ -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('\\', '\\\\')
|
||||
|
|
Loading…
Reference in New Issue