refactor: No need to translate ({distance})
This commit is contained in:
parent
077688fc16
commit
62c7a5f689
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue