mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Added diagnostic displaying current (friendly) UI locale in English to aid in debugging locale-dependent problems.
This commit is contained in:
parent
853434c19c
commit
b450f6b523
@ -17,7 +17,7 @@ from calibre.ebooks import calibre_cover
|
|||||||
from calibre.library import current_library_name
|
from calibre.library import current_library_name
|
||||||
from calibre.library.catalogs import AuthorSortMismatchException, EmptyCatalogException
|
from calibre.library.catalogs import AuthorSortMismatchException, EmptyCatalogException
|
||||||
from calibre.ptempfile import PersistentTemporaryFile
|
from calibre.ptempfile import PersistentTemporaryFile
|
||||||
from calibre.utils.localization import get_lang
|
from calibre.utils.localization import calibre_langcode_to_name, canonicalize_lang, get_lang
|
||||||
|
|
||||||
Option = namedtuple('Option', 'option, default, dest, action, help')
|
Option = namedtuple('Option', 'option, default, dest, action, help')
|
||||||
|
|
||||||
@ -223,7 +223,8 @@ class EPUB_MOBI(CatalogPlugin):
|
|||||||
self.fmt,
|
self.fmt,
|
||||||
'for %s ' % opts.output_profile if opts.output_profile else '',
|
'for %s ' % opts.output_profile if opts.output_profile else '',
|
||||||
'CLI' if opts.cli_environment else 'GUI',
|
'CLI' if opts.cli_environment else 'GUI',
|
||||||
get_lang()))
|
calibre_langcode_to_name(canonicalize_lang(get_lang()), localize=False))
|
||||||
|
)
|
||||||
|
|
||||||
# If exclude_genre is blank, assume user wants all tags as genres
|
# If exclude_genre is blank, assume user wants all tags as genres
|
||||||
if opts.exclude_genre.strip() == '':
|
if opts.exclude_genre.strip() == '':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user