From 96b8cbdc1696230a864b44402aaea4d3163f76ec Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 9 Jan 2020 11:19:39 +0100 Subject: luci-app-bmx7: mask CSS translate directives to avoid i18n confusion Since bmx7's netjsongraph.js contains CSS `translate()` directives, they're treated as translation calls by the i18n source scanner. Mask these directives to avoid false positives. Fixes: #3484 Signed-off-by: Jo-Philipp Wich --- .../root/www/luci-static/resources/bmx7/js/netjsongraph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'applications/luci-app-bmx7/root/www/luci-static') diff --git a/applications/luci-app-bmx7/root/www/luci-static/resources/bmx7/js/netjsongraph.js b/applications/luci-app-bmx7/root/www/luci-static/resources/bmx7/js/netjsongraph.js index 66d0a5f155..5e9e02d26e 100644 --- a/applications/luci-app-bmx7/root/www/luci-static/resources/bmx7/js/netjsongraph.js +++ b/applications/luci-app-bmx7/root/www/luci-static/resources/bmx7/js/netjsongraph.js @@ -170,7 +170,7 @@ */ redraw: function() { panner.attr("transform", - "translate(" + d3.event.translate + ") " + + "trans"+"late(" + d3.event.translate + ") " + "scale(" + d3.event.scale + ")" ); }, @@ -507,7 +507,7 @@ }); labels.attr("transform", function(d) { - return "translate(" + d.x + "," + d.y + ")"; + return "trans"+"late(" + d.x + "," + d.y + ")"; }); }) .on("end", function(){ -- cgit v1.2.3