From 38fc41fbb7fa0b465676af2a857530450c1e7bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Mon, 7 Oct 2013 09:42:01 +0000 Subject: [PATCH] 7110: Add AppData file svn: r23260 --- data/gramps.appdata.xml.in | 6 ++---- po/update_po.py | 11 ++++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/data/gramps.appdata.xml.in b/data/gramps.appdata.xml.in index 01706493a..4cbdcaca2 100644 --- a/data/gramps.appdata.xml.in +++ b/data/gramps.appdata.xml.in @@ -3,13 +3,11 @@ gramps.desktop CC0 -<_p> -Gramps is a free software project and community. +<_p>Gramps is a free software project and community. We strive to produce a genealogy program that is both intuitive for hobbyists and feature-complete for professional genealogists. -<_p> -It is a community project, created, developed and governed by genealogists. +<_p>It is a community project, created, developed and governed by genealogists. diff --git a/po/update_po.py b/po/update_po.py index 97280ff5d..9ce639505 100644 --- a/po/update_po.py +++ b/po/update_po.py @@ -259,19 +259,20 @@ def XmlParse(filename, mark):

''' - mime = open(filename + '.h', 'w') + head = open(filename + '.h', 'w') for key in root.iter(): if key.tag == '{http://www.freedesktop.org/standards/shared-mime-info}%s' % mark: comment = 'char *s = N_("%s");\n' % key.text - mime.write(comment) + head.write(comment) if root.tag == 'application': for key in root.iter(): - comment = 'char *s = N_("%s");\n' % key.text - mime.write(comment) + if key.tag == mark: + comment = 'char *s = N_("%s");\n' % key.text + head.write(comment) - mime.close() + head.close() print ('Wrote %s' % filename) root.clear()