Translate units used by leaflet-locatecontrol
This commit is contained in:
parent
ab5616f354
commit
7a81258ddc
3 changed files with 6 additions and 0 deletions
|
@ -109,6 +109,8 @@ $(document).ready(function () {
|
|||
iconLoading: "icon geolocate",
|
||||
strings: {
|
||||
title: I18n.t("javascripts.map.locate.title"),
|
||||
metersUnit: I18n.t("javascripts.map.locate.metersUnit"),
|
||||
feetUnit: I18n.t("javascripts.map.locate.feetUnit"),
|
||||
popup: I18n.t("javascripts.map.locate.popup")
|
||||
}
|
||||
}).addTo(map);
|
||||
|
|
|
@ -18,6 +18,8 @@ $(document).ready(function () {
|
|||
iconLoading: "icon geolocate",
|
||||
strings: {
|
||||
title: I18n.t("javascripts.map.locate.title"),
|
||||
metersUnit: I18n.t("javascripts.map.locate.metersUnit"),
|
||||
feetUnit: I18n.t("javascripts.map.locate.feetUnit"),
|
||||
popup: I18n.t("javascripts.map.locate.popup")
|
||||
}
|
||||
}).addTo(map);
|
||||
|
|
|
@ -2472,6 +2472,8 @@ en:
|
|||
out: Zoom Out
|
||||
locate:
|
||||
title: Show My Location
|
||||
metersUnit: meters
|
||||
feetUnit: feet
|
||||
popup: You are within {distance} {unit} of this point
|
||||
base:
|
||||
standard: Standard
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue