[fix] Various minor string issues (#5719)

Fixes <https://github.com/koreader/koreader/issues/5712>.
pull/5720/head
Frans de Jonge 4 years ago committed by GitHub
parent 908151a3b0
commit e3fa9bd4b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -639,10 +639,10 @@ function Search:browse(option, run, chosen)
local i = 1
while i <= self.count do
if (option == "tags" and self.data[i][self.tags3]:find("\t" .. chosen .. "\t",nil,true)) or (option == "series" and chosen == self.data[i][self.series]) then
local entry = _("Title: ") .. (self.data[i][self.title] or "-") .. "\n \n" ..
_("Author(s):") .. " " .. (self.data[i][self.authors2] or "-") .. "\n \n" ..
_("Tags:") .. " " .. (self.data[i][self.tags2] or "-") .. "\n \n" ..
_("Series:") .. " " .. (self.data[i][self.series] or "-")
local entry = T(_("Title: %1"), (self.data[i][self.title] or "-")) .. "\n \n" ..
T(_("Author(s): %1"), (self.data[i][self.authors2] or "-")) .. "\n \n" ..
T(_("Tags: %1"), (self.data[i][self.tags2] or "-")) .. "\n \n" ..
T(_("Series: %1"), (self.data[i][self.series] or "-"))
if self.data[i][self.series] ~= "-" then
entry = entry .. " (" .. tostring(self.data[i][self.series_index]):gsub(".0$","") .. ")"
end

@ -66,8 +66,9 @@ function SSH:start()
if os.execute(cmd) == 0 then
local info = InfoMessage:new{
timeout = 10,
text = string.format("%s %s \n %s",
_("SSH port: "), self.SSH_port,
-- @translators: %1 is the SSH port, %2 is the network info.
text = T(_("SSH port: %1\n%2"),
self.SSH_port,
Device.retrieveNetworkInfo and Device:retrieveNetworkInfo() or _("Could not retrieve network info.")),
}
UIManager:show(info)

@ -4,6 +4,7 @@ local logger = require("logger")
local _ = require("gettext")
local BookInfoManager = require("bookinfomanager")
local Screen = require("device").screen
local T = require("ffi/util").template
--[[
This plugin provides additional display modes to file browsers (File Manager
@ -105,7 +106,7 @@ function CoverBrowser:addToMainMenu(menu_items)
end
if self.full_featured then
-- Inform that this settings applies only to classic file chooser
current_state = _("(Classic mode) ") .. current_state
current_state = T(_("(Classic mode) %1"), current_state)
end
return current_state
end,
@ -366,7 +367,7 @@ function CoverBrowser:addToMainMenu(menu_items)
}
},
{
text = _("Series "),
text = _("Series"),
sub_item_table = {
{
text = _("Append series metadata to authors"),

Loading…
Cancel
Save