From becccea034bc1ca4609c904095f4f86e17e349b4 Mon Sep 17 00:00:00 2001 From: J Guthrie Date: Thu, 29 Mar 2018 22:27:33 +0100 Subject: [PATCH 1/1] Remove/replace redundant no_place locale translation --- app/assets/javascripts/index/directions.js | 2 +- config/locales/en.yml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index 689a6eba8..14be8b358 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -90,7 +90,7 @@ OSM.Directions = function (map) { endpoint.awaitingGeocode = false; endpoint.hasGeocode = true; if (json.length === 0) { - alert(I18n.t('javascripts.directions.errors.no_place_with_name', {place: endpoint.value})); + alert(I18n.t('javascripts.directions.errors.no_place', {place: endpoint.value})); input.css("background-color", "rgba(255, 0, 0, 0.5)"); return; } diff --git a/config/locales/en.yml b/config/locales/en.yml index a8308444a..8a12d10a1 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2325,8 +2325,7 @@ en: distance: "Distance" errors: no_route: "Couldn't find a route between those two places." - no_place: "Sorry - couldn't find that place." - no_place_with_name: "Sorry - couldn't locate '%{place}'." + no_place: "Sorry - couldn't locate '%{place}'." instructions: continue_without_exit: Continue on %{name} slight_right_without_exit: Slight right onto %{name} -- 2.43.2