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", iconLoading: "icon geolocate",
strings: { strings: {
title: I18n.t("javascripts.map.locate.title"), title: I18n.t("javascripts.map.locate.title"),
metersUnit: I18n.t("javascripts.map.locate.metersUnit"), popup: function (options) {
feetUnit: I18n.t("javascripts.map.locate.feetUnit"), return I18n.t("javascripts.map.locate." + options.unit + "Popup", :count => options.distance);
popup: I18n.t("javascripts.map.locate.popup") }
} }
}).addTo(map); }).addTo(map);

View file

@ -2472,9 +2472,12 @@ en:
out: Zoom Out out: Zoom Out
locate: locate:
title: Show My Location title: Show My Location
metersUnit: meters metersPopup:
feetUnit: feet one: You are within one meter of this point
popup: You are within {distance} {unit} 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: base:
standard: Standard standard: Standard
cycle_map: Cycle Map cycle_map: Cycle Map