mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit Book: Fix sorting by language in Report->Words not working
This commit is contained in:
parent
8d54c6b83a
commit
03b9edb84c
@ -684,7 +684,7 @@ class WordsModel(FileCollection):
|
|||||||
try:
|
try:
|
||||||
return lsk_cache[loc]
|
return lsk_cache[loc]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
lsk_cache[loc] = (psk(calibre_langcode_to_name(canonicalize_lang(loc[0]))), psk(loc[1] or ''))
|
lsk_cache[loc] = psk(calibre_langcode_to_name(canonicalize_lang(loc[0])) + (loc[1] or ''))
|
||||||
return lsk_cache[loc]
|
return lsk_cache[loc]
|
||||||
|
|
||||||
self.sort_keys = tuple((psk(entry.word), locale_sort_key(entry.locale), len(entry.usage)) for entry in self.files)
|
self.sort_keys = tuple((psk(entry.word), locale_sort_key(entry.locale), len(entry.usage)) for entry in self.files)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user