luci-app-travelmate: Fix detection issues of i18n tools
Fixed detection issues of i18n tools for translation target. 'translate()' -> 'translatef()' And fixed the format within that function. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
This commit is contained in:
parent
494fc4cdb9
commit
44c41e57d0
1 changed files with 5 additions and 5 deletions
|
@ -25,11 +25,11 @@ function iface.validate(self, value, section)
|
||||||
else
|
else
|
||||||
iface.datatype = false
|
iface.datatype = false
|
||||||
iface.default = iface.disabled
|
iface.default = iface.disabled
|
||||||
f = m:field(DummyValue, "textfield", " ", translate("Direct Link: "
|
f = m:field(DummyValue, "textfield", " ", translatef("Direct Link: "
|
||||||
.. [[<a href="]] .. luci.dispatcher.build_url("admin/network/wireless") .. [[">]]
|
.. "<a href=\"%s\">"
|
||||||
.. "Wireless Setup" .. [[</a>]]))
|
.. "Wireless Setup</a>", luci.dispatcher.build_url("admin/network/wireless")))
|
||||||
f.default = translate("Network Interface '" .. value .. "' created successfully." ..
|
f.default = translatef("Network Interface '%s' created successfully." ..
|
||||||
" Feel free to scan & add new stations via standard wireless setup.")
|
" Feel free to scan & add new stations via standard wireless setup.", value)
|
||||||
f.disabled = true
|
f.disabled = true
|
||||||
end
|
end
|
||||||
return value
|
return value
|
||||||
|
|
Loading…
Reference in a new issue