From 473409ad8e9b5d7f55c6b877626b5a453ab4314d Mon Sep 17 00:00:00 2001 From: INAGAKI Hiroshi Date: Sun, 9 Apr 2017 21:38:36 +0900 Subject: luci-app-mwan3: Fix luci tools cannot detect translate() Fixed strings in Lua sources where the LuCI i18n tools cannot be detected. And also fixed some other problems. Signed-off-by: INAGAKI Hiroshi --- applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua') diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua index f7fb341e1..25a96f5c8 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua @@ -13,7 +13,7 @@ end function ruleWarn() -- display warning message at the top of the page if error_protocol == 1 then - return "WARNING: this rule is incorrectly configured with no or improper protocol specified! Please configure a specific protocol!" + return "" .. translate("WARNING: this rule is incorrectly configured with no or improper protocol specified! Please configure a specific protocol!") .. "" else return "" end @@ -45,8 +45,8 @@ error_protocol = 0 ruleCheck() -m5 = Map("mwan3", translate("MWAN Rule Configuration - ") .. arg[1], - translate(ruleWarn())) +m5 = Map("mwan3", translatef("MWAN Rule Configuration - %s", arg[1]), + ruleWarn()) m5.redirect = dsp.build_url("admin", "network", "mwan", "configuration", "rule") -- cgit v1.2.3