"Book description": more consistent wording (#7789)

pull/7803/head
hius07 3 years ago committed by GitHub
parent 0ddba3bcb6
commit 2fe8c3c41b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -269,7 +269,7 @@ function BookInfo:onShowBookDescription()
description = util.htmlToPlainTextIfHtml(description)
local TextViewer = require("ui/widget/textviewer")
UIManager:show(TextViewer:new{
title = _("Book description:"),
title = _("Description:"),
text = description,
})
else

@ -340,12 +340,12 @@ function CoverMenu:updateItems(select_number)
end,
},
{ -- Allow user to directly view description in TextViewer
text = bookinfo.description and _("View book description") or _("No book description"),
text = _("Book description"),
enabled = bookinfo.description and true or false,
callback = function()
local description = util.htmlToPlainTextIfHtml(bookinfo.description)
local textviewer = TextViewer:new{
title = bookinfo.title,
title = _("Description:"),
text = description,
}
UIManager:close(self.file_dialog)
@ -473,12 +473,12 @@ function CoverMenu:onHistoryMenuHold(item)
end,
},
{ -- Allow user to directly view description in TextViewer
text = bookinfo.description and _("View book description") or _("No book description"),
text = _("Book description"),
enabled = bookinfo.description and true or false,
callback = function()
local description = util.htmlToPlainTextIfHtml(bookinfo.description)
local textviewer = TextViewer:new{
title = bookinfo.title,
title = _("Description:"),
text = description,
}
UIManager:close(self.histfile_dialog)
@ -595,12 +595,12 @@ function CoverMenu:onCollectionsMenuHold(item)
end,
},
{ -- Allow user to directly view description in TextViewer
text = bookinfo.description and _("View book description") or _("No book description"),
text = _("Book description"),
enabled = bookinfo.description and true or false,
callback = function()
local description = util.htmlToPlainTextIfHtml(bookinfo.description)
local textviewer = TextViewer:new{
title = bookinfo.title,
title = _("Description:"),
text = description,
}
UIManager:close(self.collfile_dialog)

Loading…
Cancel
Save