mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
allow some strings to be translated (#6428)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user