Include the translated string in babel error messages

This commit is contained in:
Adam Turner
2023-07-24 13:33:12 +01:00
parent 1437d2a746
commit 5c31195e91

View File

@@ -181,7 +181,8 @@ def run_compile():
for message, errors in catalog.check():
for error in errors:
total_errors += 1
log.error('error: %s:%d: %s', po_file, message.lineno, error)
log.error('error: %s:%d: %s\nerror: in message string: %s',
po_file, message.lineno, error, message.string)
mo_file = os.path.join(directory, locale, 'LC_MESSAGES', 'sphinx.mo')
log.info('compiling catalog %s to %s', po_file, mo_file)