E-book viewer: Fix incorrect lang names being used in hyphenation

This commit is contained in:
Kovid Goyal 2010-11-24 14:38:19 -07:00
parent 223ad221d7
commit 965a8ee5ec

View File

@ -240,8 +240,7 @@ class Document(QWebPage):
lang = default_lang
p = P('viewer/hyphenate/patterns/%s.js'%lang_name(lang))
self.javascript(open(p, 'rb').read().decode('utf-8'))
self.loaded_lang = lang
self.loaded_lang = lang_name(lang)
@pyqtSignature("")
def animated_scroll_done(self):