git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
db2bfb2
)
luci-mod-network: fix invalid translate() argument pass
author
Anton Kikin
<redacted>
Thu, 22 Nov 2018 21:46:51 +0000
(
00:46
+0300)
committer
Anton Kikin
<redacted>
Thu, 22 Nov 2018 21:46:51 +0000
(
00:46
+0300)
We must pass to the translate() a string without substituted zone name.
Signed-off-by: Anton Kikin <redacted>
modules/luci-mod-network/luasrc/view/admin_network/iface_overview.htm
patch
|
blob
|
history
diff --git
a/modules/luci-mod-network/luasrc/view/admin_network/iface_overview.htm
b/modules/luci-mod-network/luasrc/view/admin_network/iface_overview.htm
index 4fd46e2bff087d91eb19b348e971264069459a07..9d4afd2b277760208df53d04b654b559902d510e 100644
(file)
--- a/
modules/luci-mod-network/luasrc/view/admin_network/iface_overview.htm
+++ b/
modules/luci-mod-network/luasrc/view/admin_network/iface_overview.htm
@@
-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()
%>
git clone https://git.99rst.org/PROJECT