LP1978567: Teach fieldmapper.py about field groups
authorJason Boyer <JBoyer@equinoxOLI.org>
Thu, 28 Jul 2022 19:15:17 +0000 (15:15 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 29 Jul 2022 17:48:49 +0000 (13:48 -0400)
Because the "group" tag in IDL field_groups was never added to
this file that helps with translations, Simple Reporter field groups
all have the same name when built for release.

Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
build/i18n/scripts/fieldmapper.py

index 4782a5c..5717d06 100755 (executable)
@@ -113,6 +113,9 @@ class IDLHandler(xml.sax.handler.ContentHandler):
             elif name == 'field':
                 entity = "%s.%s.%s.label" % (name, self.classid, \
                     attributes['name'])
+            elif name == 'group':
+                entity = "%s.%s.%s.label" % (name, self.classid, \
+                    attributes['name'])
             elif name == 'link':
                 entity = "%s.%s.%s.label" % (name, self.classid, \
                     attributes['field'])