]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/user.js
Update bundle
[rails.git] / app / assets / javascripts / user.js
index 7cbdb1e110b24c843dc8504c505a1363b15e0acb..377efb315b290eaf48a1c186f44aa648b56fe153 100644 (file)
@@ -18,7 +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"),
-        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);