summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policyconfig.lua
diff options
context:
space:
mode:
authorINAGAKI Hiroshi <musashino.open@gmail.com>2017-04-09 21:38:36 +0900
committerINAGAKI Hiroshi <musashino.open@gmail.com>2017-04-09 21:38:36 +0900
commit473409ad8e9b5d7f55c6b877626b5a453ab4314d (patch)
tree70dfcf6b3ddd38680fbaa87e534ce340adb54c89 /applications/luci-app-mwan3/luasrc/model/cbi/mwan/policyconfig.lua
parenta162384bf70e1f5d9227f289aa5ab123a91a35a6 (diff)
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 <musashino.open@gmail.com>
Diffstat (limited to 'applications/luci-app-mwan3/luasrc/model/cbi/mwan/policyconfig.lua')
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/policyconfig.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policyconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policyconfig.lua
index f48a104c6..06a0fec66 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policyconfig.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policyconfig.lua
@@ -9,7 +9,7 @@ end
function policyWarn() -- display status and warning messages at the top of the page
if nameTooLong == 1 then
- return "<font color=\"ff0000\"><strong>WARNING: this policy's name is " .. policyNameLength .. " characters exceeding the maximum of 15!</strong></font>"
+ return "<font color=\"ff0000\"><strong>" .. translatef("WARNING: this policy's name is %d characters exceeding the maximum of 15!", policyNameLength) .. "</strong></font>"
else
return ""
end
@@ -32,8 +32,8 @@ nameTooLong = 0
policyCheck()
-m5 = Map("mwan3", translate("MWAN Policy Configuration - " .. arg[1]),
- translate(policyWarn()))
+m5 = Map("mwan3", translatef("MWAN Policy Configuration - %s", arg[1]),
+ policyWarn())
m5.redirect = dsp.build_url("admin", "network", "mwan", "configuration", "policy")