@c This file is part of %(topfile)s
@ignore
Translation of GIT committish: %(head_committish)s
-
When revising a translation, copy the HEAD committish of the
version that you are working on. See TRANSLATION for details.
@end ignore
if make_gettext:
node_list_filename = 'node_list'
node_list = open (node_list_filename, 'w')
+ node_list.write ('# -*- coding: utf-8 -*-\n')
for texi_file in texi_files:
- process_texi (texi_file, intro_blurb, node_blurb, make_skeleton, texi_file, node_list)
+ process_texi (texi_file, intro_blurb, node_blurb, make_skeleton, os.path.basename (texi_file), node_list)
for word in ('Up:', 'Next:', 'Previous:', 'Appendix ', 'Footnotes', 'Table of Contents'):
node_list.write ('_(r"' + word + '")\n')
node_list.close ()
os.system ('xgettext -c -L Python --no-location -o ' + output_file + ' ' + node_list_filename)
else:
for texi_file in texi_files:
- process_texi (texi_file, intro_blurb, node_blurb, make_skeleton, texi_file)
+ process_texi (texi_file, intro_blurb, node_blurb, make_skeleton, os.path.basename (texi_file))