mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-03 19:56:36 +01:00
py3 compat: Fix sorting in spell check dialog on language broken for books that have unknown languages
This commit is contained in:
parent
bf119f0cf1
commit
aebe0f1f86
1 changed files with 1 additions and 1 deletions
|
|
@ -698,7 +698,7 @@ def key(w):
|
|||
elif col == 2:
|
||||
def key(w):
|
||||
locale = w[1]
|
||||
return (calibre_langcode_to_name(locale.langcode), locale.countrycode)
|
||||
return (calibre_langcode_to_name(locale.langcode) or ''), (locale.countrycode or '')
|
||||
else:
|
||||
key = self.misspelled_text
|
||||
return key
|
||||
|
|
|
|||
Loading…
Reference in a new issue