mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make the formatter function series_sort() respect the book's language.
This commit is contained in:
parent
5a20841bcb
commit
1495c4e185
@ -1389,7 +1389,9 @@ class BuiltinSeriesSort(BuiltinFormatterFunction):
|
||||
|
||||
def evaluate(self, formatter, kwargs, mi, locals):
|
||||
if mi.series:
|
||||
return title_sort(mi.series)
|
||||
langs = mi.languages
|
||||
lang = langs[0] if len(langs) > 0 else None
|
||||
return title_sort(mi.series, lang=lang)
|
||||
return ''
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user