]> git.openstreetmap.org Git - rails.git/commitdiff
Remove/replace redundant no_place locale translation
authorJ Guthrie <jamie.guthrie@gmail.com>
Thu, 29 Mar 2018 21:27:33 +0000 (22:27 +0100)
committerJ Guthrie <jamie.guthrie@gmail.com>
Thu, 29 Mar 2018 21:27:33 +0000 (22:27 +0100)
app/assets/javascripts/index/directions.js
config/locales/en.yml

index 689a6eba8e24b5003df8e6c8bc19faad2b6e27ba..14be8b3583b87fd30ebbdb0f0b1578e487a98d54 100644 (file)
@@ -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;
         }
index a8308444a6519d4301de53540e9de967ade910c6..8a12d10a18e133d8a8f39e75aa2689eba067bb8b 100644 (file)
@@ -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}