[glib/new-gsettings] Do not output two gettext-domain attributes for schemas
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/new-gsettings] Do not output two gettext-domain attributes for schemas
- Date: Sat, 17 Apr 2010 04:23:20 +0000 (UTC)
commit bc8735a0b6cf43d18f4f0fa8694f05d409e93897
Author: Vincent Untz <vuntz gnome org>
Date: Sat Apr 17 00:22:30 2010 -0400
Do not output two gettext-domain attributes for schemas
gio/gsettings-schema-convert | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/gsettings-schema-convert b/gio/gsettings-schema-convert
index f057417..fa95f4f 100755
--- a/gio/gsettings-schema-convert
+++ b/gio/gsettings-schema-convert
@@ -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):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]