localized geocoder search results
authorŠtefan Baebler <stefan.baebler@gmail.com>
Sun, 28 Jun 2009 18:00:11 +0000 (18:00 +0000)
committerŠtefan Baebler <stefan.baebler@gmail.com>
Sun, 28 Jun 2009 18:00:11 +0000 (18:00 +0000)
app/controllers/geocoder_controller.rb
app/views/site/_search.html.erb

index f286ab9d3401046e51828e1e8e430e8f58338e22..c7efec154a646afcb850d2b36134b1cdf6fe5606 100644 (file)
@@ -3,6 +3,8 @@ class GeocoderController < ApplicationController
   require 'net/http'
   require 'rexml/document'
 
+  before_filter :set_locale
+
   def search
     query = params[:query]
     results = Array.new
index b57a1f984f0381308322d9e78ccfb23119000cef..d6c1e38fa08b24e8449be7c3292e4ae890c3e91a 100644 (file)
@@ -1,7 +1,7 @@
 <script type="text/javascript">
 <!--
   function startSearch() {
-    updateSidebar("Search Results", "<p class='search_results_entry'>Searching...<\/p>");
+    updateSidebar("<%= t 'site.sidebar.search_results' %>", "<p class='search_results_entry'><%= t 'site.search.searching' %><\/p>");
 
     $("search_field").style.display = "none";
     $("search_active").style.display = "inline";