X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-mwan3%2Fluasrc%2Fmodel%2Fcbi%2Fmwan%2Frule.lua;h=9cb4756fc802207ec9241401fb1d9c7c9336b4b2;hp=a22e01054c05cc255d14466de2ec84fd13d98653;hb=afd84b3cabfa9b797689685742289774bb1c98e8;hpb=c69622e5afb31490044e975c760daf81debd390e
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua
index a22e01054..9cb4756fc 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua
@@ -17,7 +17,7 @@ end
function ruleWarn() -- display warning messages at the top of the page
if error_protocol_list ~= " " then
- return "WARNING: some rules have a port configured with no or improper protocol specified! Please configure a specific protocol!"
+ return "" .. translate("WARNING: Some rules have a port configured with no or improper protocol specified! Please configure a specific protocol!") .. ""
else
return ""
end
@@ -34,7 +34,7 @@ ruleCheck()
m5 = Map("mwan3", translate("MWAN Rule Configuration"),
- translate(ruleWarn()))
+ ruleWarn())
m5:append(Template("mwan/config_css"))
@@ -47,7 +47,7 @@ mwan_rule = m5:section(TypedSection, "rule", translate("Traffic Rules"),
mwan_rule.addremove = true
mwan_rule.anonymous = false
mwan_rule.dynamic = false
- mwan_rule.sectionhead = "Rule"
+ mwan_rule.sectionhead = translate("Rule")
mwan_rule.sortable = true
mwan_rule.template = "cbi/tblsection"
mwan_rule.extedit = dsp.build_url("admin", "network", "mwan", "configuration", "rule", "%s")
@@ -93,10 +93,10 @@ sticky = mwan_rule:option(DummyValue, "sticky", translate("Sticky"))
function sticky.cfgvalue(self, s)
if self.map:get(s, "sticky") == "1" then
stickied = 1
- return "Yes"
+ return translate("Yes")
else
stickied = nil
- return "No"
+ return translate("No")
end
end
@@ -133,7 +133,7 @@ errors = mwan_rule:option(DummyValue, "errors", translate("Errors"))
if not string.find(error_protocol_list, " " .. s .. " ") then
return ""
else
- return ""
+ return ""
end
end