luci-mod-network: fix invalid translate() argument pass
We must pass to the translate() a string without substituted zone name. Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
This commit is contained in:
parent
db2bfb24ad
commit
c7a3c5cccc
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
for i, net in ipairs(self.netlist) do
|
for i, net in ipairs(self.netlist) do
|
||||||
local z = net[3]
|
local z = net[3]
|
||||||
local c = z and z:get_color() or "#EEEEEE"
|
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 disabled = (net[4]:get("auto") == "0")
|
||||||
local dynamic = net[4]:is_dynamic()
|
local dynamic = net[4]:is_dynamic()
|
||||||
%>
|
%>
|
||||||
|
|
Loading…
Reference in a new issue