diff options
author | INAGAKI Hiroshi <musashino.open@gmail.com> | 2017-04-22 16:25:37 +0900 |
---|---|---|
committer | INAGAKI Hiroshi <musashino.open@gmail.com> | 2017-04-22 16:25:37 +0900 |
commit | 44c41e57d077a7b03380358f90d0c366ab4bf056 (patch) | |
tree | 04d0ab748216268517efaee4beccdb1279854ff9 /applications/luci-app-travelmate/luasrc | |
parent | 494fc4cdb913cfd68c7299bfc7dbad0dab8dfc0c (diff) |
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>
Diffstat (limited to 'applications/luci-app-travelmate/luasrc')
-rw-r--r-- | applications/luci-app-travelmate/luasrc/model/cbi/travelmate/setup_tab.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/setup_tab.lua b/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/setup_tab.lua index 2c650f00d4..6cd030ce6e 100644 --- a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/setup_tab.lua +++ b/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/setup_tab.lua @@ -25,11 +25,11 @@ function iface.validate(self, value, section) else iface.datatype = false iface.default = iface.disabled - f = m:field(DummyValue, "textfield", " ", translate("Direct Link: " - .. [[<a href="]] .. luci.dispatcher.build_url("admin/network/wireless") .. [[">]] - .. "Wireless Setup" .. [[</a>]])) - f.default = translate("Network Interface '" .. value .. "' created successfully." .. - " Feel free to scan & add new stations via standard wireless setup.") + f = m:field(DummyValue, "textfield", " ", translatef("Direct Link: " + .. "<a href=\"%s\">" + .. "Wireless Setup</a>", luci.dispatcher.build_url("admin/network/wireless"))) + f.default = translatef("Network Interface '%s' created successfully." .. + " Feel free to scan & add new stations via standard wireless setup.", value) f.disabled = true end return value |