From 62c7a5f68902a78bcd8c80ecd7d9c5be4990b5fa Mon Sep 17 00:00:00 2001 From: Philip Beelmann Date: Thu, 27 Apr 2023 10:20:43 +0000 Subject: [PATCH] refactor: No need to translate ({distance}) --- umap/static/umap/js/umap.controls.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index 1dfe44da..383b8312 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -1267,11 +1267,12 @@ L.U.Editable = L.Editable.extend({ var readableDistance = e.layer.getMeasure(tmpLatLngs); if (e.layer.editor._drawnLatLngs.length < e.layer.editor.MIN_VERTEX) { // when drawing second point - content = L._('Click to continue drawing ({distance})', { distance: readableDistance }); + content = L._('Click to continue drawing'); } else { // when drawing third point (or more) - content = L._('Click last point to finish shape ({distance})', { distance: readableDistance }); + content = L._('Click last point to finish shape'); } + content += " ("+readableDistance+")"; } } else { // when moving an existing point