X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-mwan3%2Fluasrc%2Fmodel%2Fcbi%2Fmwan%2Fpolicy.lua;h=b7a90aa93ad0269c810a16d2a1aed4758a7eb97c;hp=6d2ce713005ea841002519102b08ff0e74d624b1;hb=08a2b27df5e282a6b5221fbe72f700523c7b0913;hpb=cf1af792d6ca285fed757fa21904f635bdbfffce 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 6d2ce7130..b7a90aa93 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua @@ -1,4 +1,9 @@ +-- Copyright 2014 Aedan Renner +-- Copyright 2018 Florian Eckert +-- Licensed to the public under the GNU General Public License v2. + dsp = require "luci.dispatcher" +uci = require "uci" function policyCheck() @@ -20,7 +25,7 @@ function policyError(policy_error) local warnings = "" for i, k in pairs(policy_error) do if policy_error[i] == true then - warnings = warnings .. string.format("%s
", + warnings = warnings .. string.format("%s
", translatef("WARNING: Policie %s has exceeding the maximum name of 15 characters", i) ) end