Tweak resource names to make them fit the normal naming scheme
authorTom Hughes <tom@compton.nu>
Mon, 17 May 2010 23:09:29 +0000 (00:09 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 17 May 2010 23:09:29 +0000 (00:09 +0100)
app/controllers/geocoder_controller.rb
config/locales/en.yml

index 2071daccebeddcd494d63a44d28f43993a2b5b89..2af95e5fafc83e8a961e08a216af915fd8ffbdb7 100644 (file)
@@ -254,7 +254,7 @@ class GeocoderController < ApplicationController
       name = place.attributes["display_name"].to_s
       min_lat,max_lat,min_lon,max_lon = place.attributes["boundingbox"].to_s.split(",")
       prefix_name = t "geocoder.search_osm_nominatim.prefix.#{klass}.#{type}", :default => type.gsub("_", " ").capitalize
-      prefix = t "geocoder.search_osm_nominatim_format.prefix", :name => prefix_name
+      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,
index c6043fa328ba68865e32964fe81791c02e91e4c0..841577fa208dc8a19f67300fc30cc16379ea4a60 100644 (file)
@@ -413,9 +413,8 @@ en:
       suffix_place: ", {{distance}} {{direction}} of {{placename}}"
       suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} of {{parentname}})"
       suffix_suburb: "{{suffix}}, {{parentname}}"
-    search_osm_nominatim_format:
-      prefix: "{{name}}"
     search_osm_nominatim:
+      prefix_format: "{{name}}"
       prefix:
         amenity:
           airport: "Airport"