summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-bmx7/root/www/luci-static
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-01-09 11:19:39 +0100
committerJo-Philipp Wich <jo@mein.io>2020-01-09 11:19:39 +0100
commit96b8cbdc1696230a864b44402aaea4d3163f76ec (patch)
tree8ba909152d080c6b9c239a7c8a66b0b68fa956ce /applications/luci-app-bmx7/root/www/luci-static
parent73a7561ee1837cd8d3aeaf8506d7492803e994b2 (diff)
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 <jo@mein.io>
Diffstat (limited to 'applications/luci-app-bmx7/root/www/luci-static')
-rw-r--r--applications/luci-app-bmx7/root/www/luci-static/resources/bmx7/js/netjsongraph.js4
1 files changed, 2 insertions, 2 deletions
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(){