Fix lego translation with locate control

Fixes #2564
This commit is contained in:
Tom Hughes 2020-03-20 14:28:51 +00:00
parent df229c208d
commit 587a1b0754
2 changed files with 9 additions and 6 deletions

View file

@ -18,9 +18,9 @@ $(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")
popup: function (options) {
return I18n.t("javascripts.map.locate." + options.unit + "Popup", :count => options.distance);
}
}
}).addTo(map);

View file

@ -2472,9 +2472,12 @@ en:
out: Zoom Out
locate:
title: Show My Location
metersUnit: meters
feetUnit: feet
popup: You are within {distance} {unit} of this point
metersPopup:
one: You are within one meter of this point
other: You are within %{count} meters of this point
feetPopup:
one: You are within one foot of this point
other: You are within %{count} feet of this point
base:
standard: Standard
cycle_map: Cycle Map