7110: Add AppData file
svn: r23260
This commit is contained in:
parent
3c4db9ea0e
commit
38fc41fbb7
@ -3,13 +3,11 @@
|
|||||||
<id type="desktop">gramps.desktop</id>
|
<id type="desktop">gramps.desktop</id>
|
||||||
<licence>CC0</licence>
|
<licence>CC0</licence>
|
||||||
<description>
|
<description>
|
||||||
<_p>
|
<_p>Gramps is a free software project and community.
|
||||||
Gramps is a free software project and community.
|
|
||||||
We strive to produce a genealogy program that is both intuitive for hobbyists
|
We strive to produce a genealogy program that is both intuitive for hobbyists
|
||||||
and feature-complete for professional genealogists.
|
and feature-complete for professional genealogists.
|
||||||
</_p>
|
</_p>
|
||||||
<_p>
|
<_p>It is a community project, created, developed and governed by genealogists.
|
||||||
It is a community project, created, developed and governed by genealogists.
|
|
||||||
</_p>
|
</_p>
|
||||||
<!-- FIXME: Probably needs another paragraph or two -->
|
<!-- FIXME: Probably needs another paragraph or two -->
|
||||||
</description>
|
</description>
|
||||||
|
@ -259,19 +259,20 @@ def XmlParse(filename, mark):
|
|||||||
</p>
|
</p>
|
||||||
'''
|
'''
|
||||||
|
|
||||||
mime = open(filename + '.h', 'w')
|
head = open(filename + '.h', 'w')
|
||||||
|
|
||||||
for key in root.iter():
|
for key in root.iter():
|
||||||
if key.tag == '{http://www.freedesktop.org/standards/shared-mime-info}%s' % mark:
|
if key.tag == '{http://www.freedesktop.org/standards/shared-mime-info}%s' % mark:
|
||||||
comment = 'char *s = N_("%s");\n' % key.text
|
comment = 'char *s = N_("%s");\n' % key.text
|
||||||
mime.write(comment)
|
head.write(comment)
|
||||||
|
|
||||||
if root.tag == 'application':
|
if root.tag == 'application':
|
||||||
for key in root.iter():
|
for key in root.iter():
|
||||||
comment = 'char *s = N_("%s");\n' % key.text
|
if key.tag == mark:
|
||||||
mime.write(comment)
|
comment = 'char *s = N_("%s");\n' % key.text
|
||||||
|
head.write(comment)
|
||||||
|
|
||||||
mime.close()
|
head.close()
|
||||||
print ('Wrote %s' % filename)
|
print ('Wrote %s' % filename)
|
||||||
root.clear()
|
root.clear()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user