]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/texi-langutils.py
Partial update of obsolete file
[lilypond.git] / buildscripts / texi-langutils.py
index ed5510727cf69a04d3cb0dea4a7ce0ed01a923bc..a2d8958f569ccca6d998bb627de609e41f8f987a 100644 (file)
@@ -31,7 +31,6 @@ intro_blurb = '''@c -*- coding: utf-8; mode: texinfo%(doclang)s -*-
 @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
@@ -119,12 +118,13 @@ if node_blurb != '':
 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))