From c7a3c5cccc8cbaa5bd44524c140f9b41ab2f7f85 Mon Sep 17 00:00:00 2001 From: Anton Kikin Date: Fri, 23 Nov 2018 00:46:51 +0300 Subject: 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 --- modules/luci-mod-network/luasrc/view/admin_network/iface_overview.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 4fd46e2bf..9d4afd2b2 100644 --- 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() %> -- cgit v1.2.3