Translate units used by leaflet-locatecontrol
authorSimon Legner <Simon.Legner@gmail.com>
Mon, 23 Dec 2019 23:29:30 +0000 (00:29 +0100)
committerSimon Legner <Simon.Legner@gmail.com>
Mon, 23 Dec 2019 23:29:30 +0000 (00:29 +0100)
app/assets/javascripts/index.js
app/assets/javascripts/user.js
config/locales/en.yml

index 704016c6673daf233963580cc2676a035205bfe9..6584864d544a4e05c92cb2f73bed1dd6a9b1f4d6 100644 (file)
@@ -109,6 +109,8 @@ $(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")
     }
   }).addTo(map);
index 7cbdb1e110b24c843dc8504c505a1363b15e0acb..3839a18c24c10a5d16c776b934a16b5bd673d6e0 100644 (file)
@@ -18,6 +18,8 @@ $(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")
       }
     }).addTo(map);
index b99e068b879bfea7f615a9cc9a8548594f8afd76..7c3aef4aa216508e3e65ea9c60495392b6ec0419 100644 (file)
@@ -2472,6 +2472,8 @@ en:
         out: Zoom Out
       locate:
         title: Show My Location
+        metersUnit: meters
+        feetUnit: feet
         popup: You are within {distance} {unit} of this point
       base:
         standard: Standard