Change skim mode menu & dialog title (#4223)

pull/4204/head
Robert 6 years ago committed by poire-z
parent f0d099b62c
commit bd154e0bc3

@ -7,7 +7,7 @@ local _ = require("gettext")
local ReaderGoto = InputContainer:new{ local ReaderGoto = InputContainer:new{
goto_menu_title = _("Go to"), goto_menu_title = _("Go to"),
skim_menu_title = _("Skim to"), skim_menu_title = _("Skim document"),
} }
function ReaderGoto:init() function ReaderGoto:init()

@ -61,12 +61,10 @@ function SkimToWidget:init()
}, },
} }
end end
local dialog_title local dialog_title = _("Skim")
if self.document.info.has_pages then if self.document.info.has_pages then
dialog_title = _("Go to Page")
self.curr_page = self.ui.paging.current_page self.curr_page = self.ui.paging.current_page
else else
dialog_title = _("Go to Location")
self.curr_page = self.document:getCurrentPage() self.curr_page = self.document:getCurrentPage()
end end
self.page_count = self.document:getPageCount() self.page_count = self.document:getPageCount()

Loading…
Cancel
Save