]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/user.js
Fix lego translation with locate control
[rails.git] / app / assets / javascripts / user.js
index 3839a18c24c10a5d16c776b934a16b5bd673d6e0..b9518f10de451cca7f76cccd20c257dad91f663c 100644 (file)
@@ -18,9 +18,9 @@ $(document).ready(function () {
       iconLoading: "icon geolocate",
       strings: {
         title: I18n.t("javascripts.map.locate.title"),
       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);
 
       }
     }).addTo(map);