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);
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