diff --git a/frontend/apps/filemanager/filemanagersearch.lua b/frontend/apps/filemanager/filemanagersearch.lua index 2e8ee28c1..2a01a3c64 100644 --- a/frontend/apps/filemanager/filemanagersearch.lua +++ b/frontend/apps/filemanager/filemanagersearch.lua @@ -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 diff --git a/plugins/SSH.koplugin/main.lua b/plugins/SSH.koplugin/main.lua index e378b79fa..4968240a6 100644 --- a/plugins/SSH.koplugin/main.lua +++ b/plugins/SSH.koplugin/main.lua @@ -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) diff --git a/plugins/coverbrowser.koplugin/main.lua b/plugins/coverbrowser.koplugin/main.lua index 50b132315..c74cc5b53 100644 --- a/plugins/coverbrowser.koplugin/main.lua +++ b/plugins/coverbrowser.koplugin/main.lua @@ -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"),