mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Custom metadata (#10861)
This commit is contained in:
@@ -778,7 +778,7 @@ function ReaderTypography:onPreRenderDocument(config)
|
||||
-- This is called after the document has been loaded,
|
||||
-- when we know and can access the document language.
|
||||
local props = self.ui.document:getProps()
|
||||
local doc_language = FileManagerBookInfo.customizeProps(props, self.ui.document.file).language
|
||||
local doc_language = FileManagerBookInfo.extendProps(props, self.ui.document.file).language
|
||||
self.book_lang_tag = self:fixLangTag(doc_language)
|
||||
|
||||
local is_known_lang_tag = self.book_lang_tag and LANG_TAG_TO_LANG_NAME[self.book_lang_tag] ~= nil
|
||||
|
||||
Reference in New Issue
Block a user