luci-app-travelmate: Fix detection issues of i18n tools
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Sat, 22 Apr 2017 07:25:37 +0000 (16:25 +0900)
committerINAGAKI Hiroshi <musashino.open@gmail.com>
Sat, 22 Apr 2017 07:25:37 +0000 (16:25 +0900)
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>
applications/luci-app-travelmate/luasrc/model/cbi/travelmate/setup_tab.lua

index 2c650f00d457eb6fdaf14a0a68ef31a9259d0a29..6cd030ce6e67077d30d863e502dc361d5b696e85 100644 (file)
@@ -25,11 +25,11 @@ function iface.validate(self, value, section)
        else
                iface.datatype = false
                iface.default = iface.disabled
-               f = m:field(DummyValue, "textfield", "&nbsp;", 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", "&nbsp;", 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