refactor: No need to translate ({distance})

This commit is contained in:
Philip Beelmann 2023-04-27 10:20:43 +00:00
parent 077688fc16
commit 62c7a5f689

View file

@ -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