From c451aa915c7012faf85fb3e973da7b14c3329720 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Sun, 31 May 2009 13:12:21 +0000 Subject: [PATCH 1/1] i18n geocoder results --- app/views/geocoder/_results.rhtml | 6 +++--- config/locales/en.yml | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) 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}})" -- 2.43.2