X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1729a680ac24bcf9fc45b97abe0228e41305bd57..6b0451124c0fe1cb7275ce973a069a125386558e:/app/assets/javascripts/index/directions/osrm.js?ds=sidebyside
diff --git a/app/assets/javascripts/index/directions/osrm.js b/app/assets/javascripts/index/directions/osrm.js
index 5c1ce6906..b53fecb81 100644
--- a/app/assets/javascripts/index/directions/osrm.js
+++ b/app/assets/javascripts/index/directions/osrm.js
@@ -12,7 +12,7 @@ function OSRMEngine() {
getRoute: function (points, callback) {
var TURN_INSTRUCTIONS = [
"",
- 'javascripts.directions.instructions.continue_on', // 1
+ 'javascripts.directions.instructions.continue', // 1
'javascripts.directions.instructions.slight_right', // 2
'javascripts.directions.instructions.turn_right', // 3
'javascripts.directions.instructions.sharp_right', // 4
@@ -66,9 +66,9 @@ function OSRMEngine() {
var instText = "" + (i + 1) + ". ";
var name = s[1] ? "" + s[1] + "" : I18n.t('javascripts.directions.instructions.unnamed');
if (instCodes[0] === "11" && instCodes[1]) {
- instText += I18n.t('javascripts.directions.instructions.roundabout_with_exit', { exit: instCodes[1], name: name } );
+ instText += I18n.t(TURN_INSTRUCTIONS[instCodes[0]] + '_with_exit', { exit: instCodes[1], name: name } );
} else {
- instText += I18n.t(TURN_INSTRUCTIONS[instCodes[0]], { name: name });
+ instText += I18n.t(TURN_INSTRUCTIONS[instCodes[0]] + '_without_exit', { name: name });
}
if ((i + 1) < data.route_instructions.length) {
linesegend = data.route_instructions[i + 1][3] + 1;