From: Andy Allan Date: Sun, 31 May 2009 13:12:21 +0000 (+0000) Subject: i18n geocoder results X-Git-Tag: live~7339^2~25 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c451aa915c7012faf85fb3e973da7b14c3329720?ds=sidebyside i18n geocoder results --- diff --git a/app/views/geocoder/_results.rhtml b/app/views/geocoder/_results.rhtml index 9bcc5d8ae..bf42244f9 100644 --- a/app/views/geocoder/_results.rhtml +++ b/app/views/geocoder/_results.rhtml @@ -1,9 +1,9 @@ <% results.each do |source| %> -<% type = source[:type] || "Results" %> -

<%= type %> from <%= link_to source[:source], source[:url] %>

+<% type = source[:type] || t('geocoder.results.results') %> +

<%= t'geocoder.results.type_from_source', :type => type, :source_link => link_to(source[:source], source[:url]) %>

<% if source[:results] %> <% if source[:results].empty? %> -

No results found

+

<%= t'geocoder.results.no_results' %>

<% else %> <% source[:results].each do |result| %>

<%= result_to_html(result) %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index 9670727e4..c2fdf8832 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -204,6 +204,11 @@ en: change_marker: "Change marker position" add_marker: "Add a marker to the map" view_larger_map: "View Larger Map" + geocoder: + results: + results: "Results" + type_from_source: "{{type}} from {{source_link}}" + no_results: "No results found" layouts: welcome_user: "Welcome, {{user_link}}" inbox: "inbox ({{size}})"