]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/geocoder/_results.rhtml
Make URL that link to the OSM Wiki configurable by translations. A lot
[rails.git] / app / views / geocoder / _results.rhtml
index 9bcc5d8ae67f6f93976f3b1366f3a09ae63dc275..bf42244f99ec8e3e7b357b1933fc64d23f0b8528 100644 (file)
@@ -1,9 +1,9 @@
 <% results.each do |source| %>
-<% type = source[:type] || "Results" %>
-<p class="search_results_heading"><%= type %> from <%= link_to source[:source], source[:url] %></p>
+<% type = source[:type] || t('geocoder.results.results') %>
+<p class="search_results_heading"><%= t'geocoder.results.type_from_source', :type => type, :source_link => link_to(source[:source], source[:url]) %></p>
 <% if source[:results] %>
 <% if source[:results].empty? %>
-<p class="search_results_entry">No results found</p>
+<p class="search_results_entry"><%= t'geocoder.results.no_results' %></p>
 <% else %>
 <% source[:results].each do |result| %>
 <p class="search_results_entry"><%= result_to_html(result) %></p>