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 f286ab9..c7efec1 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 b57a1f9..d6c1e38 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";