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

@@ -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()