mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +01:00
Do not output two gettext-domain attributes for schemas
This commit is contained in:
parent
babcf14d46
commit
bc8735a0b6
@ -109,6 +109,9 @@ class GSettingsSchemaDir:
|
||||
|
||||
result = ''
|
||||
result += '%schild %s:\n' % (current_indent, self.name)
|
||||
if self.gettext_domain:
|
||||
result += '%sgettext-domain: %s\n' % (current_indent + GSETTINGS_SIMPLE_SCHEMA_INDENT, self.gettext_domain)
|
||||
result += '\n'
|
||||
result += content
|
||||
return result
|
||||
|
||||
@ -127,9 +130,6 @@ class GSettingsSchemaDir:
|
||||
if result:
|
||||
need_empty_line = True
|
||||
|
||||
if result and self.gettext_domain:
|
||||
result = '%sgettext-domain: %s\n\n%s' % (current_indent + GSETTINGS_SIMPLE_SCHEMA_INDENT, self.gettext_domain, result)
|
||||
|
||||
return result
|
||||
|
||||
def get_xml_nodes(self, parent_id, parent_path):
|
||||
|
Loading…
x
Reference in New Issue
Block a user