7110: Add AppData file
svn: r23256
This commit is contained in:
parent
07546c24e4
commit
3c4db9ea0e
@ -7,10 +7,10 @@
|
|||||||
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>
|
||||||
<url type="homepage">http://gramps-project.org/</url>
|
<url type="homepage">http://gramps-project.org/</url>
|
||||||
|
@ -227,7 +227,7 @@ def HolidaysParse(filename, mark):
|
|||||||
|
|
||||||
def XmlParse(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
|
from xml.etree import ElementTree
|
||||||
@ -252,17 +252,27 @@ def XmlParse(filename, mark):
|
|||||||
|
|
||||||
msgid "Gramps database"
|
msgid "Gramps database"
|
||||||
msgid "GEDCOM"
|
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.
|
||||||
|
</p>
|
||||||
'''
|
'''
|
||||||
|
|
||||||
mime = open('../data/gramps.xml.in.h', 'w')
|
mime = 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)
|
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()
|
mime.close()
|
||||||
print ('Wrote ../data/gramps.xml.in.h')
|
print ('Wrote %s' % filename)
|
||||||
root.clear()
|
root.clear()
|
||||||
|
|
||||||
|
|
||||||
@ -532,6 +542,8 @@ def headers():
|
|||||||
headers.append('''../data/gramps.desktop.in.h''')
|
headers.append('''../data/gramps.desktop.in.h''')
|
||||||
if os.path.isfile('''../data/gramps.keys.in.h'''):
|
if os.path.isfile('''../data/gramps.keys.in.h'''):
|
||||||
headers.append('''../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'''):
|
if os.path.isfile('''gtklist.h'''):
|
||||||
headers.append('''gtklist.h''')
|
headers.append('''gtklist.h''')
|
||||||
|
|
||||||
@ -546,6 +558,7 @@ def extract_xml():
|
|||||||
HolidaysParse('../gramps/plugins/lib/holidays.xml.in', '_name')
|
HolidaysParse('../gramps/plugins/lib/holidays.xml.in', '_name')
|
||||||
TipsParse('../data/tips.xml.in', '_tip')
|
TipsParse('../data/tips.xml.in', '_tip')
|
||||||
XmlParse('../data/gramps.xml.in', '_comment')
|
XmlParse('../data/gramps.xml.in', '_comment')
|
||||||
|
XmlParse('../data/gramps.appdata.xml.in', '_p')
|
||||||
DesktopParse('../data/gramps.desktop.in')
|
DesktopParse('../data/gramps.desktop.in')
|
||||||
KeyParse('../data/gramps.keys.in', '_description')
|
KeyParse('../data/gramps.keys.in', '_description')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user