allow some strings to be translated (#6428)

reviewable/pr6431/r1
yparitcher 4 years ago committed by GitHub
parent db843929f0
commit 2f3fda3fe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,9 +52,12 @@ function Ftp:downloadFile(item, address, user, pass, path, close)
end
function Ftp:config(item, callback)
local text_info = "FTP address must be in the format ftp://example.domain.com\n"..
"Also supported is format with IP e.g: ftp://10.10.10.1\n"..
"Username and password are optional."
local text_info = _([[
The FTP address must be in the following format:
ftp://example.domain.com
An IP address is also supported, for example:
ftp://10.10.10.1
Username and password are optional.]])
local hint_name = _("Your FTP name")
local text_name = ""
local hint_address = _("FTP address eg ftp://example.com")

@ -572,7 +572,8 @@ function ReaderBookmark:toggleBookmark(pn_or_xp)
local notes = self.ui.toc:getTocTitleByPage(pn_or_xp)
local chapter_name = notes
if notes ~= "" then
notes = "in "..notes
-- @translators In which chapter title (%1) a note is found.
notes = T(_("in %1"), notes)
end
self:addBookmark({
page = pn_or_xp,

@ -409,7 +409,7 @@ common_settings.document = {
local interval = G_reader_settings:readSetting("auto_save_settings_interval_minutes")
local s_interval
if interval == false then
s_interval = "only on close"
s_interval = _("only on close")
else
s_interval = T(N_("every 1 m", "every %1 m", interval), interval)
end

Loading…
Cancel
Save