Do not output two gettext-domain attributes for schemas

This commit is contained in:
Vincent Untz 2010-04-17 00:22:30 -04:00
parent babcf14d46
commit bc8735a0b6

View File

@ -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):