summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua
diff options
context:
space:
mode:
authorkuoruan <kuoruan@gmail.com>2017-07-20 13:09:16 +0800
committerHsing-Wang Liao <kuoruan@gmail.com>2017-07-23 10:42:49 +0800
commit744584946081f44d03610682f390321e0ca7c33b (patch)
treea9dd12cf4882a6e04ca3a8b1fd92b00849ca94ee /applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua
parent2224714217105b1482dab63842409bb62154230d (diff)
luci-app-mwan3: Add more translate strings
Signed-off-by: Hsing-wang Liao <kuoruan@gmail.com>
Diffstat (limited to 'applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua')
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua
index 08c3f69de..6640564d5 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua
@@ -42,7 +42,7 @@ mwan_policy = m5:section(TypedSection, "policy", translate("Policies"),
"Policies may not share the same name as configured interfaces, members or rules"))
mwan_policy.addremove = true
mwan_policy.dynamic = false
- mwan_policy.sectionhead = "Policy"
+ mwan_policy.sectionhead = translate("Policy")
mwan_policy.sortable = true
mwan_policy.template = "cbi/tblsection"
mwan_policy.extedit = ds.build_url("admin", "network", "mwan", "configuration", "policy", "%s")
@@ -65,7 +65,6 @@ use_member = mwan_policy:option(DummyValue, "use_member", translate("Members ass
else
return "&#8212;"
end
-
end
last_resort = mwan_policy:option(DummyValue, "last_resort", translate("Last resort"))
@@ -73,11 +72,11 @@ last_resort = mwan_policy:option(DummyValue, "last_resort", translate("Last reso
function last_resort.cfgvalue(self, s)
local action = self.map:get(s, "last_resort")
if action == "blackhole" then
- return "blackhole (drop)"
+ return translate("blackhole (drop)")
elseif action == "default" then
- return "default (use main routing table)"
+ return translate("default (use main routing table)")
else
- return "unreachable (reject)"
+ return translate("unreachable (reject)")
end
end