additional translations in geocoder describer
authorŠtefan Baebler <stefan.baebler@gmail.com>
Fri, 3 Jul 2009 06:38:43 +0000 (06:38 +0000)
committerŠtefan Baebler <stefan.baebler@gmail.com>
Fri, 3 Jul 2009 06:38:43 +0000 (06:38 +0000)
app/controllers/geocoder_controller.rb
config/locales/en.yml
config/locales/sl.yml

index 904e6bf74b2c7163e06a168744ddf3871fddfa68..8fceef376ad52f1646e53993ef09dfbe40bfb713 100644 (file)
@@ -278,7 +278,7 @@ class GeocoderController < ApplicationController
       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 = "#{distance} #{direction} of #{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})
index 544dc52d7d3a84eea937c58ccde0611eb687348b..cb1fb50a72c7330260a36a7f25bbb7416b4d9e7e 100644 (file)
@@ -355,6 +355,7 @@ en:
       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
index d34a9a043886972dbd365a5c61a8c6cfd3e22e62..12d4ee92975f173fbf6f0c965ccb3946531cd6e9 100644 (file)
@@ -359,6 +359,15 @@ sl:
       suffix_place: ", {{distance}} {{direction}} od {{placename}}"
       suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} od {{parentname}})"
       suffix_suburb: "{{suffix}}, {{parentname}}"
+    description:
+      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: Mesta
+        towns: Kraji
+        places: Naselja
     results:
       no_results: "Ni zadetkov"
     distance: