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

reviewable/pr7803/r1
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) description = util.htmlToPlainTextIfHtml(description)
local TextViewer = require("ui/widget/textviewer") local TextViewer = require("ui/widget/textviewer")
UIManager:show(TextViewer:new{ UIManager:show(TextViewer:new{
title = _("Book description:"), title = _("Description:"),
text = description, text = description,
}) })
else else

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

Loading…
Cancel
Save