From 8f43a5ae44d6d2a16935007b42c7a4511fee6d55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Mon, 7 Oct 2013 09:12:16 +0000 Subject: [PATCH] 7110: Add AppData file svn: r23257 --- data/gramps.appdata.xml.in | 4 ++-- po/update_po.py | 19 ++++++++++++++++--- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/data/gramps.appdata.xml.in b/data/gramps.appdata.xml.in index abf033406..01706493a 100644 --- a/data/gramps.appdata.xml.in +++ b/data/gramps.appdata.xml.in @@ -7,10 +7,10 @@ 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. -

+ http://gramps-project.org/ diff --git a/po/update_po.py b/po/update_po.py index 5ed4bc946..97280ff5d 100644 --- a/po/update_po.py +++ b/po/update_po.py @@ -227,7 +227,7 @@ def HolidaysParse(filename, mark): def XmlParse(filename, mark): """ - Experimental alternative to 'intltool-extract' for 'gramps.xml'. + Experimental alternative to 'intltool-extract' for 'file.xml.in'. """ from xml.etree import ElementTree @@ -252,17 +252,27 @@ def XmlParse(filename, mark): msgid "Gramps database" msgid "GEDCOM" + + <_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. +

''' - mime = open('../data/gramps.xml.in.h', 'w') + mime = 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) + + if root.tag == 'application': + for key in root.iter(): + comment = 'char *s = N_("%s");\n' % key.text + mime.write(comment) mime.close() - print ('Wrote ../data/gramps.xml.in.h') + print ('Wrote %s' % filename) root.clear() @@ -532,6 +542,8 @@ def headers(): headers.append('''../data/gramps.desktop.in.h''') if os.path.isfile('''../data/gramps.keys.in.h'''): headers.append('''../data/gramps.keys.in.h''') + if os.path.isfile('''../data/gramps.appdata.xml.in.h'''): + headers.append('''../data/gramps.appdata.xml.in.h''') if os.path.isfile('''gtklist.h'''): headers.append('''gtklist.h''') @@ -546,6 +558,7 @@ def extract_xml(): HolidaysParse('../gramps/plugins/lib/holidays.xml.in', '_name') TipsParse('../data/tips.xml.in', '_tip') XmlParse('../data/gramps.xml.in', '_comment') + XmlParse('../data/gramps.appdata.xml.in', '_p') DesktopParse('../data/gramps.desktop.in') KeyParse('../data/gramps.keys.in', '_description')