X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5efbc8a8b7094588fb4745c25778d7746ec0b64b..95abc14b305f03de27352a252a451d1e0b200a4d:/app/controllers/geocoder_controller.rb diff --git a/app/controllers/geocoder_controller.rb b/app/controllers/geocoder_controller.rb index 8ad51b234..57f86ec9f 100644 --- a/app/controllers/geocoder_controller.rb +++ b/app/controllers/geocoder_controller.rb @@ -181,7 +181,7 @@ class GeocoderController < ApplicationController prefix_name = t "geocoder.search_osm_nominatim.admin_levels.level#{rank}", :default => prefix_name place.elements["extratags"].elements.each("tag") do |extratag| if extratag.attributes["key"] == "place" - prefix_name = t "geocoder.search_osm_nominatim.prefix.place.#{extratag.attributes["value"]}", :default => prefix_name + prefix_name = t "geocoder.search_osm_nominatim.prefix.place.#{extratag.attributes['value']}", :default => prefix_name end end end