mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit Book: Fix choosing default dictionary based on language tag in the OPF ignoring the country code
This commit is contained in:
parent
bf7b19f3c6
commit
ebf87dada1
@ -292,7 +292,8 @@ class Boss(QObject):
|
||||
set_current_container(container)
|
||||
with BusyCursor():
|
||||
self.current_metadata = self.gui.current_metadata = container.mi
|
||||
set_book_locale(self.current_metadata.language)
|
||||
lang = container.opf_xpath('//dc:language/text()') or [self.current_metadata.language]
|
||||
set_book_locale(lang[0])
|
||||
self.global_undo.open_book(container)
|
||||
self.gui.update_window_title()
|
||||
self.gui.file_list.current_edited_name = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user