diff options
author | Dirk Brenken <dev@brenken.org> | 2018-03-28 11:21:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-28 11:21:56 +0200 |
commit | eea92af6766db29fb4500f22f9a85c026953bb81 (patch) | |
tree | 167ebc1148eaea394e0f0e008fe04da596608343 /applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua | |
parent | 8d34bf94a66d0fe3b36f064170ae7516f4d78126 (diff) | |
parent | 3a0d5301caacd5534375a65d3bfb9c60165e27fa (diff) |
Merge pull request #1704 from TDT-AG/pr/20180328-luci-app-mwan3-fixes
luci-app-mwan3: fix syntax error and update notify page
Diffstat (limited to 'applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua')
-rw-r--r-- | applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua | 12 |
1 files changed, 6 insertions, 6 deletions
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 4b1a070d1b..14bf1384f7 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua @@ -8,37 +8,37 @@ dsp = require "luci.dispatcher" function interfaceWarnings(overview, count) local warnings = "" if count <= 250 then - warnings = string.format("<strong>%s</strong></br>", + warnings = string.format("<strong>%s</strong><br />", translatef("There are currently %d of 250 supported interfaces configured", count) ) else - warnings = string.format("<strong>%s</strong></br>", + warnings = string.format("<strong>%s</strong><br />", translatef("WARNING: %d interfaces are configured exceeding the maximum of 250!", count) ) end for i, k in pairs(overview) do if overview[i]["network"] == false then - warnings = warnings .. string.format("<strong>%s</strong></br>", + warnings = warnings .. string.format("<strong>%s</strong><br />", translatef("WARNING: Interface %s are not found in /etc/config/network", i) ) end if overview[i]["default_route"] == false then - warnings = warnings .. string.format("<strong>%s</strong></br>", + warnings = warnings .. string.format("<strong>%s</strong><br />", translatef("WARNING: Interface %s has no default route in the main routing table", i) ) end if overview[i]["reliability"] == false then - warnings = warnings .. string.format("<strong>%s</strong></br>", + warnings = warnings .. string.format("<strong>%s</strong><br />", translatef("WARNING: Interface %s has a higher reliability " .. "requirement than tracking hosts (%d)", i, overview[i]["tracking"]) ) end if overview[i]["duplicate_metric"] == true then - warnings = warnings .. string.format("<strong>%s</strong></br>", + warnings = warnings .. string.format("<strong>%s</strong><br />", translatef("WARNING: Interface %s has a duplicate metric %s configured", i, overview[i]["metric"]) ) end |