Merge pull request #2328 from tano-systems/fix-translate-arg

luci-mod-network: fix invalid translate() argument pass
This commit is contained in:
Jo-Philipp Wich 2018-11-23 10:14:49 +01:00 committed by GitHub
commit 42310095df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@
for i, net in ipairs(self.netlist) do
local z = net[3]
local c = z and z:get_color() or "#EEEEEE"
local t = z and translate("Part of zone %q" % z:name()) or translate("No zone assigned")
local t = z and translate("Part of zone %q") % z:name() or translate("No zone assigned")
local disabled = (net[4]:get("auto") == "0")
local dynamic = net[4]:is_dynamic()
%>