new location for tips.xml

svn: r21003
This commit is contained in:
Jérôme Rapinat 2013-01-05 14:24:51 +00:00
parent ddd1aae5c3
commit eee79d223b
2 changed files with 6 additions and 6 deletions

View File

@ -699,4 +699,4 @@ gramps/webapp/grampsdb/views.py
data/gramps.desktop.in
data/gramps.keys.in
data/gramps.xml.in
gramps/data/tips.xml.in
data/tips.xml.in

View File

@ -164,7 +164,7 @@ def TipsParse(filename, mark):
"Editor."
'''
tips = open('../gramps/data/tips.xml.in.h', 'w')
tips = open('../gramps/tips.xml.in.h', 'w')
marklist = root.iter(mark)
for key in marklist:
tip = ElementTree.tostring(key, encoding="UTF-8")
@ -177,7 +177,7 @@ def TipsParse(filename, mark):
tip = tip.replace('"', '"')
tips.write('char *s = N_("%s");\n' % tip)
tips.close()
print ('Wrote ../gramps/data/tips.xml.in.h')
print ('Wrote ../data/tips.xml.in.h')
root.clear()
def HolidaysParse(filename, mark):
@ -519,8 +519,8 @@ def headers():
headers = []
# in.h; extract_xml
if os.path.isfile('''../gramps/data/tips.xml.in.h'''):
headers.append('''../gramps/data/tips.xml.in.h''')
if os.path.isfile('''../data/tips.xml.in.h'''):
headers.append('''../data/tips.xml.in.h''')
if os.path.isfile('''../gramps/plugins/lib/holidays.xml.in.h'''):
headers.append('''../gramps/plugins/lib/holidays.xml.in.h''')
if os.path.isfile('''../data/gramps.xml.in.h'''):
@ -538,7 +538,7 @@ def extract_xml():
files. Own XML files parsing and custom translation marks.
"""
TipsParse('../gramps/data/tips.xml.in', '_tip')
TipsParse('../data/tips.xml.in', '_tip')
HolidaysParse('../gramps/plugins/lib/holidays.xml.in', '_name')
XmlParse('../data/gramps.xml.in', '_comment')
DesktopParse('../data/gramps.desktop.in')