Update template for appdata stuff

This commit is contained in:
romjerome 2016-05-16 12:09:30 +02:00
parent fc52d200a0
commit 82f60dcb2b
2 changed files with 1596 additions and 1590 deletions

File diff suppressed because it is too large Load Diff

View File

@ -248,10 +248,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>
''' '''
with open(filename + '.h', 'w') as head: with open(filename + '.h', 'w') as head:
@ -259,6 +261,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():