X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/149182f62009012447eadf66dd38aaa1b30090f9..bf895a0332242df4189b507e647d0aa4ce4a5a04:/app/assets/javascripts/routing_engines/osrm_car.js diff --git a/app/assets/javascripts/routing_engines/osrm_car.js b/app/assets/javascripts/routing_engines/osrm_car.js index cb80c5615..da94adf05 100644 --- a/app/assets/javascripts/routing_engines/osrm_car.js +++ b/app/assets/javascripts/routing_engines/osrm_car.js @@ -3,7 +3,8 @@ // *** need to clear hints at some point OSM.RoutingEngines.list.push({ - name: 'Car (OSRM)', + name: "javascripts.directions.engines.osrm_car", + creditline: 'Directions courtesy of OSRM', draggable: true, _hints: {}, getRoute: function(isFinal,points) { @@ -34,7 +35,7 @@ OSM.RoutingEngines.list.push({ var instText=""+(i+1)+". "; instText+=TURN_INSTRUCTIONS[instCodes[0]]; if (instCodes[1]) { instText+="exit "+instCodes[1]+" "; } - if (instCodes[0]!=15) { instText+=s[1] ? ""+s[1]+"" : "(unnamed)"; } + if (instCodes[0]!=15) { instText+=s[1] ? ""+s[1]+"" : I18n.t('javascripts.directions.instructions.unnamed'); } steps.push([line[s[3]], s[0].split('-')[0], instText, s[2]]); } if (steps.length) router.setItinerary({ steps: steps });