mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Include the translated string in babel error messages
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user