Update for appdata stuff
This commit is contained in:
parent
653e18db5a
commit
6f94ec8ef3
@ -256,10 +256,12 @@ def XmlParse(filename, mark):
|
|||||||
msgid "Gramps database"
|
msgid "Gramps database"
|
||||||
msgid "GEDCOM"
|
msgid "GEDCOM"
|
||||||
|
|
||||||
|
<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
|
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>
|
||||||
|
</description>
|
||||||
'''
|
'''
|
||||||
|
|
||||||
head = open(filename + '.h', 'w')
|
head = open(filename + '.h', 'w')
|
||||||
@ -268,6 +270,9 @@ def XmlParse(filename, mark):
|
|||||||
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
|
||||||
head.write(comment)
|
head.write(comment)
|
||||||
|
if key.tag == mark: #appdata
|
||||||
|
comment = 'char *s = N_("%s");\n' % key.text
|
||||||
|
head.write(comment)
|
||||||
|
|
||||||
if root.tag == 'application':
|
if root.tag == 'application':
|
||||||
for key in root.iter():
|
for key in root.iter():
|
||||||
|
Loading…
Reference in New Issue
Block a user