[gimp/wip/Jehan/release-gimp-2-99-12: 7/8] tools: fix generation of welcome-dialog-data.[ch].




commit 20d6ae85ea15bf1c26f3c847be4f47554d931e53
Author: Jehan <jehan girinstud io>
Date:   Sun Aug 21 21:14:07 2022 +0200

    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).

 tools/generate-welcome-dialog-data.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tools/generate-welcome-dialog-data.py b/tools/generate-welcome-dialog-data.py
index 146146d661..9942c419ae 100755
--- a/tools/generate-welcome-dialog-data.py
+++ b/tools/generate-welcome-dialog-data.py
@@ -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('\\', '\\\\')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]