From f9f584df1e46494e9716815a5ffdd20fac264c9d Mon Sep 17 00:00:00 2001 From: Gautier P Date: Fri, 26 Feb 2021 20:00:17 +0100 Subject: [PATCH] Add missing translatable content --- js/plugin/Routing.js | 3 +++ locales/en.json | 2 ++ 2 files changed, 5 insertions(+) diff --git a/js/plugin/Routing.js b/js/plugin/Routing.js index 4572c0ea..5f80e85f 100644 --- a/js/plugin/Routing.js +++ b/js/plugin/Routing.js @@ -35,6 +35,9 @@ BR.Routing = L.Routing.extend({ }, onAdd: function (map) { + this.options.tooltips.waypoint = i18next.t('map.route-tooltip-waypoint'); + this.options.tooltips.segment = i18next.t('map.route-tooltip-segment'); + this._segmentsCasing = new L.FeatureGroup().addTo(map); this._loadingTrailerGroup = new L.FeatureGroup().addTo(map); diff --git a/locales/en.json b/locales/en.json index 37070cf2..430740ea 100644 --- a/locales/en.json +++ b/locales/en.json @@ -142,6 +142,8 @@ "route-quality-cost": "Cost coding", "route-quality-incline": "Incline coding", "route-quality-shortcut": "{{action}} ({{key}} key to toggle)", + "route-tooltip-segment": "Drag to create a new waypoint", + "route-tooltip-waypoint": "Waypoint. Drag to move; Click to remove.", "strava-biking": "Show Strava biking segments", "strava-running": "Show Strava running segments", "strava-shortcut": "{{action}}\n({{key}} key to toggle layer, click to reload for current area)",