allow some strings to be translated (#6428)

This commit is contained in:
yparitcher
2020-07-25 09:26:26 -04:00
committed by GitHub
parent db843929f0
commit 2f3fda3fe8
3 changed files with 9 additions and 5 deletions

View File

@@ -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")