description = named.elements["description"].to_s
distance = format_distance(place.attributes["approxdistance"].to_i)
direction = format_direction((place.attributes["direction"].to_i - 180) % 360)
- prefix = t "geocoder.description.osm_namefinder_prefix", :distance => distance, :direction => direction, :type => type
+ prefix = t "geocoder.description_osm_namefinder.prefix", :distance => distance, :direction => direction, :type => type
@results.push({:lat => lat, :lon => lon, :zoom => zoom,
:prefix => prefix.capitalize, :name => name,
:description => description})
title:
osm_namefinder: '{{types}} from <a href="http://gazetteer.openstreetmap.org/namefinder/">OpenStreetMap Namefinder</a>'
geonames: 'Location from <a href="http://www.geonames.org/">GeoNames</a>'
- osm_namefinder_prefix: "{{distance}} {{direction}} of {{type}} "
types:
cities: Cities
towns: Towns
places: Places
+ description_osm_namefinder:
+ prefix: "{{distance}} {{direction}} of {{type}} "
results:
no_results: "No results found"
distance:
title:
osm_namefinder: '{{types}} iz <a href="http://gazetteer.openstreetmap.org/namefinder/">iskalca po OpenStreetMap-u</a>'
geonames: 'Lokacija iz <a href="http://www.geonames.org/">GeoNames</a>'
- osm_namefinder_prefix: "{{distance}} {{direction}} od {{type}} "
types:
cities: Velemesta
towns: Mesta
places: Kraji
+ description_osm_namefinder:
+ prefix: "{{distance}} {{direction}} od {{type}} "
results:
no_results: "Ni zadetkov"
distance: