X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-mwan3%2Fluasrc%2Fmodel%2Fcbi%2Fmwan%2Finterface.lua;h=604a4fa84236bf6f2e0e3c0b4775f15c77ea9252;hp=a8e68a01be84b059112792db9345e0f77906ede2;hb=cb2e3c1a571031569e494453c623fc18e797c091;hpb=180f2d670a933b6d570099833e75a99423fea266
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua
index a8e68a01b..604a4fa84 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua
@@ -59,24 +59,24 @@ end
function interfaceWarnings() -- display status and warning messages at the top of the page
local warnings = ""
if interfaceNumber <= 250 then
- warnings = "There are currently " .. interfaceNumber .. " of 250 supported interfaces configured"
+ warnings = "" .. translatef("There are currently %d of 250 supported interfaces configured", interfaceNumber) .. ""
else
- warnings = "WARNING: " .. interfaceNumber .. " interfaces are configured exceeding the maximum of 250!"
+ warnings = "" .. translatef("WARNING: %d interfaces are configured exceeding the maximum of 250!", interfaceNumber) .. ""
end
if errorReliabilityList ~= " " then
- warnings = warnings .. "
WARNING: some interfaces have a higher reliability requirement than there are tracking IP addresses!"
+ warnings = warnings .. "
" .. translate("WARNING: some interfaces have a higher reliability requirement than there are tracking IP addresses!") .. ""
end
if errorRouteList ~= " " then
- warnings = warnings .. "
WARNING: some interfaces have no default route in the main routing table!"
+ warnings = warnings .. "
" .. translate("WARNING: some interfaces have no default route in the main routing table!") .. ""
end
if errorNetConfigList ~= " " then
- warnings = warnings .. "
WARNING: some interfaces are configured incorrectly or not at all in /etc/config/network!"
+ warnings = warnings .. "
" .. translate("WARNING: some interfaces are configured incorrectly or not at all in /etc/config/network!") .. ""
end
if errorNoMetricList ~= " " then
- warnings = warnings .. "
WARNING: some interfaces have no metric configured in /etc/config/network!"
+ warnings = warnings .. "
" .. translate("WARNING: some interfaces have no metric configured in /etc/config/network!") .. ""
end
if errorDuplicateMetricList ~= " " then
- warnings = warnings .. "
WARNING: some interfaces have duplicate metrics configured in /etc/config/network!"
+ warnings = warnings .. "
" .. translate("WARNING: some interfaces have duplicate metrics configured in /etc/config/network!") .. ""
end
return warnings
end
@@ -99,7 +99,7 @@ interfaceCheck()
m5 = Map("mwan3", translate("MWAN Interface Configuration"),
- translate(interfaceWarnings()))
+ interfaceWarnings())
m5:append(Template("mwan/config_css"))
@@ -112,7 +112,7 @@ mwan_interface = m5:section(TypedSection, "interface", translate("Interfaces"),
mwan_interface.addremove = true
mwan_interface.dynamic = false
mwan_interface.sectionhead = "Interface"
- mwan_interface.sortable = true
+ mwan_interface.sortable = false
mwan_interface.template = "cbi/tblsection"
mwan_interface.extedit = dsp.build_url("admin", "network", "mwan", "configuration", "interface", "%s")
function mwan_interface.create(self, section)