From 44c41e57d077a7b03380358f90d0c366ab4bf056 Mon Sep 17 00:00:00 2001 From: INAGAKI Hiroshi Date: Sat, 22 Apr 2017 16:25:37 +0900 Subject: [PATCH] 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 --- .../luasrc/model/cbi/travelmate/setup_tab.lua | 10 +++++----- 1 file 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 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 -- 2.25.1