From: INAGAKI Hiroshi Date: Sat, 22 Apr 2017 07:25:37 +0000 (+0900) Subject: luci-app-travelmate: Fix detection issues of i18n tools X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=44c41e57d077a7b03380358f90d0c366ab4bf056;p=oweals%2Fluci.git 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 --- 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 2c650f00d..6cd030ce6 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: " - .. [[]] - .. "Wireless Setup" .. [[]])) - 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: " + .. "" + .. "Wireless Setup", 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