Synchronize chapter and navigation translations with Chinese prose indentation
This commit is contained in:
@@ -96,7 +96,7 @@ def main():
|
||||
'scope': 'provided manifest only'}
|
||||
if errors and not args.allow_partial:
|
||||
report['new_issues'].append({'kind': 'incomplete_translation', 'detail': str(len(errors))})
|
||||
chapter_hrefs = args.chapter or list(dict.fromkeys(e.file_path for e in entries if e.translated_text))
|
||||
chapter_hrefs = args.chapter or list(dict.fromkeys(e.file_path for e in entries if e.translated_text and e.file_path != "__navigation__"))
|
||||
if not args.chapter and args.max_chapters:
|
||||
chapter_hrefs = chapter_hrefs[:args.max_chapters]
|
||||
report['sampled_chapters'] = chapter_hrefs
|
||||
|
||||
Reference in New Issue
Block a user