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:
Kovid Goyal 2012-11-26 11:16:24 +05:30
parent b080c44535
commit 449f7a3df6

View File

@ -80,7 +80,7 @@ class JavaScriptLoader(object):
evaljs(src)
if not lang:
lang = 'en'
lang = default_lang or 'en'
def lang_name(l):
l = l.lower()