You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there already any way to translate the drawing helper tooltip texts?
Leaflet.draw.js offers L.drawLocal for that ( see https://github.com/Leaflet/Leaflet.draw/blob/master/src/Leaflet.draw.js#L52 ). Any suggestions on how to overwrite these string from within a vaadin application, even after the minify/uglify replaced the names of the functions by some random text?
Thanks a lot in advance!
The text was updated successfully, but these errors were encountered:
so, as a workaround, I am now calling JavaScript.getCurrent().execute("L.drawLocal.draw.handlers.polygon.tooltip.end = \"" + translationText + "\";"); when the user clicks on a MenuBar item representing the geometry type. This is not a good solution because, once the user reloads the website after clicking on the drawing tool menu item (and the state changes to having an AbstractLDrawFeature), the changed translation default back to the hardcoded english text.
Is there already any way to translate the drawing helper tooltip texts?
Leaflet.draw.js offers
L.drawLocal
for that ( see https://github.com/Leaflet/Leaflet.draw/blob/master/src/Leaflet.draw.js#L52 ). Any suggestions on how to overwrite these string from within a vaadin application, even after the minify/uglify replaced the names of the functions by some random text?Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: