mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
wikipedia: fix languages rotation and query
Fix innacurate language query and rotation when back from nested lookups. More informative lookup message (langage used, search or full page) Allow for screen refresh with diagonal swipe (like in readerpaging).
This commit is contained in:
@@ -11,7 +11,6 @@ local ReaderWikipedia = ReaderDictionary:extend{
|
||||
is_wiki = true,
|
||||
wiki_languages = {},
|
||||
no_page = _("No wiki page found."),
|
||||
lookup_msg = _("Searching Wikipedia for:\n%1")
|
||||
}
|
||||
|
||||
function ReaderWikipedia:init()
|
||||
@@ -88,6 +87,13 @@ function ReaderWikipedia:onLookupWikipedia(word, box, get_fullpage)
|
||||
if word == "" then
|
||||
return
|
||||
end
|
||||
|
||||
-- Fix lookup message to include lang
|
||||
if get_fullpage then
|
||||
self.lookup_msg = T(_("Getting Wikipedia %2 page:\n%1"), "%1", lang:upper())
|
||||
else
|
||||
self.lookup_msg = T(_("Searching Wikipedia %2 for:\n%1"), "%1", lang:upper())
|
||||
end
|
||||
self:onLookupStarted(word)
|
||||
local results = {}
|
||||
local ok, pages
|
||||
|
||||
Reference in New Issue
Block a user