7110: Add AppData file

svn: r23260
This commit is contained in:
Jérôme Rapinat 2013-10-07 09:42:01 +00:00
parent 3c4db9ea0e
commit 38fc41fbb7
2 changed files with 8 additions and 9 deletions

View File

@ -3,13 +3,11 @@
<id type="desktop">gramps.desktop</id>
<licence>CC0</licence>
<description>
<_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>
<_p>
It is a community project, created, developed and governed by genealogists.
<_p>It is a community project, created, developed and governed by genealogists.
</_p>
<!-- FIXME: Probably needs another paragraph or two -->
</description>

View File

@ -259,19 +259,20 @@ def XmlParse(filename, mark):
</p>
'''
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()