]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/auxiliar/translations-status.py
Doc: use basic-authors.itexi for toplevel AUTHORS.
[lilypond.git] / scripts / auxiliar / translations-status.py
index 591e3855071e4f59fe535fe11b0a7a606970ad6b..9ecba85625187f35a5cad744bffeed1709b82aa8 100755 (executable)
@@ -88,7 +88,8 @@ texi_level = {
     'chapter': ('n', 1),
     'section': ('n', 2),
     'subsection': ('n', 3),
-    'appendix': ('l', 1)
+    'appendix': ('l', 1),
+    'appendixsec': ('l', 2),
 }
 
 appendix_number_trans = string.maketrans ('@ABCDEFGHIJKLMNOPQRSTUVWXY',
@@ -225,7 +226,10 @@ class TranslatedTelyDocument (TelyDocument):
             try:
                 self.translators = parent_translation.translators
             except:
-                error ('%s: no translator name found, \nplease \
+                if 'macros.itexi' in self.filename:
+                    self.translators = ['']
+                else:
+                    error ('%s: no translator name found, \nplease \
 specify at least one in the master file as a line containing\n\
 @c Translators: FirstName1 LastName1, FirstName2 LastName2' % self.filename)
         m = checkers_re.search (self.contents)
@@ -501,11 +505,11 @@ def update_category_word_counts_sub (m):
 
 progress ("Reading documents...")
 
-tely_files = \
-    buildlib.read_pipe ("find -maxdepth 2 -name '*.tely'")[0].splitlines ()
-tely_files.sort ()
+master_files = \
+    buildlib.read_pipe ("find -maxdepth 2 -and -name '*.tely' -or -name '*.texi'")[0].splitlines ()
+master_files.sort ()
 master_docs = [MasterTelyDocument (os.path.normpath (filename))
-               for filename in tely_files]
+               for filename in master_files]
 master_docs = [doc for doc in master_docs if doc.translations]
 
 main_status_page = open ('translations.template.html.in').read ()
@@ -562,7 +566,7 @@ status_txt_file = 'out/translations-status.txt'
 progress ("Writing %s..." % status_txt_file)
 open (status_txt_file, 'w').write (main_status_txt)
 
-translation_instructions_file = 'devel/doc-translation-list.itexi'
+translation_instructions_file = 'contributor/doc-translation-list.itexi'
 progress ("Updating %s..." % translation_instructions_file)
 translation_instructions = open (translation_instructions_file).read ()