mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
reformat metadata error msg
This commit is contained in:
parent
9a4070d564
commit
7a5c6bb52f
@ -607,7 +607,8 @@ class EPUB_MOBI(CatalogPlugin):
|
|||||||
default=True,
|
default=True,
|
||||||
dest='generate_authors',
|
dest='generate_authors',
|
||||||
action = 'store_true',
|
action = 'store_true',
|
||||||
help=_("Include 'Authors' section in catalog.\n"
|
help=_("Include 'Authors' section in catalog."
|
||||||
|
"This switch is ignored - Books By Author section is always generated."
|
||||||
"Default: '%default'\n"
|
"Default: '%default'\n"
|
||||||
"Applies to: ePub, MOBI output formats")),
|
"Applies to: ePub, MOBI output formats")),
|
||||||
Option('--generate-descriptions',
|
Option('--generate-descriptions',
|
||||||
@ -1609,12 +1610,12 @@ class EPUB_MOBI(CatalogPlugin):
|
|||||||
if author != current_author and i:
|
if author != current_author and i:
|
||||||
# Warn, exit if friendly matches previous, but sort doesn't
|
# Warn, exit if friendly matches previous, but sort doesn't
|
||||||
if author[0] == current_author[0]:
|
if author[0] == current_author[0]:
|
||||||
error_msg = _("\nWarning: inconsistent Author Sort values for Author '%s', ") % author[0]
|
error_msg = _('''
|
||||||
"unable to continue building catalog.\n"
|
\n*** Metadata error ***
|
||||||
"Select all books by '%s', " % author[0]
|
Inconsistent Author Sort values for Author '{0}', unable to continue building catalog.
|
||||||
"apply same Author Sort value in Edit Metadata dialog, "
|
Select all books by '{0}', apply correct Author Sort value in Edit Metadata dialog,
|
||||||
"then rebuild the catalog.\n"
|
then rebuild the catalog.
|
||||||
"Terminating catalog generation.\n")
|
*** Terminating catalog generation ***\n''').format(author[0])
|
||||||
|
|
||||||
self.opts.log.warn(error_msg)
|
self.opts.log.warn(error_msg)
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user