'chapter': ('n', 1),
'section': ('n', 2),
'subsection': ('n', 3),
- 'appendix': ('l', 1)
+ 'appendix': ('l', 1),
+ 'appendixsec': ('l', 2),
}
appendix_number_trans = string.maketrans ('@ABCDEFGHIJKLMNOPQRSTUVWXY',
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)
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 ()
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 ()