mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
E-book viewer: Fix incorrect lang names being used in hyphenation
This commit is contained in:
parent
223ad221d7
commit
965a8ee5ec
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user