From 9efa2c7b92952b7d72bd5dc35dd22deb79d50b35 Mon Sep 17 00:00:00 2001 From: J Guthrie Date: Sun, 29 Apr 2018 20:30:44 +0100 Subject: [PATCH] Change roundabout exit logic and remove blank string from locale file --- app/assets/javascripts/index/directions/osrm.js | 2 +- config/locales/en.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/index/directions/osrm.js b/app/assets/javascripts/index/directions/osrm.js index e249ce1f5..38b220430 100644 --- a/app/assets/javascripts/index/directions/osrm.js +++ b/app/assets/javascripts/index/directions/osrm.js @@ -117,7 +117,7 @@ function OSRMEngine() { } if (step.maneuver.type.match(/rotary|roundabout/)) { - if (step.maneuver.exit) { + if (step.maneuver.exit && step.maneuver.exit <= 10) { instText += I18n.t(template + '_with_exit', { exit: I18n.t('javascripts.directions.instructions.exit_counts.' + numToWord(step.maneuver.exit)), name: name } ); } else { instText += I18n.t(template + '_without_exit', { name: name } ); diff --git a/config/locales/en.yml b/config/locales/en.yml index 2c1ac0169..e9644b657 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2393,7 +2393,6 @@ en: eight: "8th" nine: "9th" ten: "10th" - gt_ten: "" time: "Time" query: node: Node -- 2.43.2