mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
E-book viewer: Fix bug that caused the default language for hyphenation to be ignored for books that do not specify a language
This commit is contained in:
parent
b080c44535
commit
449f7a3df6
@ -80,7 +80,7 @@ class JavaScriptLoader(object):
|
|||||||
evaljs(src)
|
evaljs(src)
|
||||||
|
|
||||||
if not lang:
|
if not lang:
|
||||||
lang = 'en'
|
lang = default_lang or 'en'
|
||||||
|
|
||||||
def lang_name(l):
|
def lang_name(l):
|
||||||
l = l.lower()
|
l = l.lower()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user