From: Anton Kikin Date: Thu, 22 Nov 2018 21:46:51 +0000 (+0300) Subject: luci-mod-network: fix invalid translate() argument pass X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F2328%2Fhead;p=oweals%2Fluci.git 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 --- 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() %>