mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
DictQuickLookup: add button to show list of results
Add a left button to the title bar to show the list of results as a popup. Dictionary: tap or long-press on that button give different view of the results. Wikipedia: request 30 results instead of 20, so we can show 15, 10 or 6 of them per page of that popup.
This commit is contained in:
@@ -488,7 +488,7 @@ function ReaderWikipedia:lookupWikipedia(word, is_sane, box, get_fullpage, force
|
||||
pages = sorted_pages
|
||||
end
|
||||
for pageid, page in pairs(pages) do
|
||||
local definition = page.extract or no_result_text
|
||||
local definition = page.extract or (page.length and _("No introduction.")) or no_result_text
|
||||
if page.length then
|
||||
-- we get 'length' only for intro results
|
||||
-- let's append it to definition so we know
|
||||
|
||||
Reference in New Issue
Block a user