]> git.openstreetmap.org Git - rails.git/commitdiff
Compacted repeated "Results" into one sentence
authorNenad Vujicic <nenadus@gmail.com>
Fri, 23 Aug 2024 12:59:04 +0000 (14:59 +0200)
committerNenad Vujicic <nenadus@gmail.com>
Thu, 29 Aug 2024 23:54:08 +0000 (01:54 +0200)
Fixes #5065. Removed "Results from" from search results.

app/views/geocoder/search.html.erb
config/locales/en.yml

index f87a4909dd3a4144bdae95a0505fcdc8b5d8817e..56f468f2f655a1303038a237173aca13550d7099 100644 (file)
@@ -4,7 +4,7 @@
 
 <% @sources.each do |source| %>
   <h4>
-    <%= t(".title.results_from_html", :results_link => link_to(t(".title.#{source[:name]}"), source[:url].to_s)) %>
+    <%= link_to t(".title.#{source[:name]}"), source[:url].to_s %>
   </h4>
   <div class="search_results_entry mx-n3" data-href="<%= url_for @params.merge(:action => "search_#{source[:name]}") %>">
     <div class="text-center loader">
index dfad0230eec312bbd179c186065f05ea7843f719..499579d59cd6403bc3e3ff837bb1d0dc7504ba9b 100644 (file)
@@ -674,7 +674,6 @@ en:
   geocoder:
     search:
       title:
-        results_from_html: 'Results from %{results_link}'
         latlon: Internal
         osm_nominatim: OpenStreetMap Nominatim
         osm_nominatim_reverse: OpenStreetMap Nominatim