@ -401,9 +401,9 @@ function Wikipedia:createEpub(epub_path, page, lang, with_images, progress_callb
ifwith_imagesthen
-- if no progress_callback (non UI), our fake one will return true
if#images>0then
include_images=progress_callback(T(_("The page contains %1 images.\nWould you like to download and include them in the generated EPUB file?"),#images),true)
include_images=progress_callback(T(_("The page contains %1 images.\nWould you like to download and include them in the generated EPUB file?"),#images),true, _("Include"),_("Don't include"))
ifinclude_imagesthen
use_img_2x=progress_callback(_("Would you like to use slightly higher quality images? This will result in a bigger file size."),true)
use_img_2x=progress_callback(_("Would you like to use slightly higher quality images? This will result in a bigger file size."),true, _("Higher quality"),_("Standard quality"))
end
else
progress_callback(_("The page does not contain any images."))
ifprogress_callback(_("Download did not complete.\nDo you want to create an EPUB with the already downloaded images?"),true,_("Create"),_("Don't create"))then
cancelled=false
end
end
ifcancelledthen
progress_callback(_("Canceled. Cleaning up…"))
else
progress_callback(_("Packing EPUB…"))
end
@ -811,8 +822,53 @@ function Wikipedia:createEpubWithUI(epub_path, page, lang, result_callback)