From b450f6b5230f7b62b76be70a649ecf50f4067cab Mon Sep 17 00:00:00 2001 From: GRiker Date: Thu, 10 Jan 2013 06:55:46 -0700 Subject: [PATCH] Added diagnostic displaying current (friendly) UI locale in English to aid in debugging locale-dependent problems. --- src/calibre/library/catalogs/epub_mobi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/library/catalogs/epub_mobi.py b/src/calibre/library/catalogs/epub_mobi.py index 9a7e728220..96290601cd 100644 --- a/src/calibre/library/catalogs/epub_mobi.py +++ b/src/calibre/library/catalogs/epub_mobi.py @@ -17,7 +17,7 @@ from calibre.ebooks import calibre_cover from calibre.library import current_library_name from calibre.library.catalogs import AuthorSortMismatchException, EmptyCatalogException 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') @@ -223,7 +223,8 @@ class EPUB_MOBI(CatalogPlugin): self.fmt, 'for %s ' % opts.output_profile if opts.output_profile else '', '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 opts.exclude_genre.strip() == '':