X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e076d824bf6fd6d50ab609b2bbc33b450f1274cd..b9c9d6c1aafdd60c72b54345b4d2dc94317298a0:/app/controllers/geocoder_controller.rb?ds=inline diff --git a/app/controllers/geocoder_controller.rb b/app/controllers/geocoder_controller.rb index aaa8d17ef..2af95e5fa 100644 --- a/app/controllers/geocoder_controller.rb +++ b/app/controllers/geocoder_controller.rb @@ -253,7 +253,8 @@ class GeocoderController < ApplicationController type = place.attributes["type"].to_s name = place.attributes["display_name"].to_s min_lat,max_lat,min_lon,max_lon = place.attributes["boundingbox"].to_s.split(",") - prefix = t "geocoder.search_osm_nominatim.prefix.#{klass}.#{type}", :default => type.gsub("_", " ").capitalize + prefix_name = t "geocoder.search_osm_nominatim.prefix.#{klass}.#{type}", :default => type.gsub("_", " ").capitalize + prefix = t "geocoder.search_osm_nominatim.prefix_format", :name => prefix_name @results.push({:lat => lat, :lon => lon, :min_lat => min_lat, :max_lat => max_lat,