From ae7f3f2786c2106528b98be8215d47c93785b1c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 5 Jun 2009 19:02:31 +0000 Subject: [PATCH] Make node/way/relation which is fed into the the 'browse.not_found.sorry' message translatable --- app/views/browse/not_found.rhtml | 9 ++++++++- config/locales/en.yml | 4 ++++ config/locales/is.yml | 6 +++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/app/views/browse/not_found.rhtml b/app/views/browse/not_found.rhtml index 82a81afa5..743ab0c8e 100644 --- a/app/views/browse/not_found.rhtml +++ b/app/views/browse/not_found.rhtml @@ -1 +1,8 @@ -

<%= t'browse.not_found.sorry', :type=> @type , :id => params[:id] %>

+<% + browse_not_found_type = { + 'node' => I18n.t('browse.not_found.type.node'), + 'way' => I18n.t('browse.not_found.type.way'), + 'relation' => I18n.t('browse.not_found.type.relation'), + }; +%> +

<%= t'browse.not_found.sorry', :type=> browse_not_found_type[@type] , :id => params[:id] %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index 3203cd975..0a7e589af 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -120,6 +120,10 @@ en: view_history: "view history" not_found: sorry: "Sorry, the {{type}} with the id {{id}}, could not be found." + type: + node: node + way: way + relation: relation paging_nav: showing_page: "Showing page" of: "of" diff --git a/config/locales/is.yml b/config/locales/is.yml index b76bd98f3..76fc9e539 100644 --- a/config/locales/is.yml +++ b/config/locales/is.yml @@ -119,7 +119,11 @@ is: download_xml: "Hala niður á XML sniði" view_history: "sýna breytingarsögu" not_found: - sorry: "Sorry, the {{type}} with the id {{id}}, could not be found." + sorry: "Því miður {{type}} með kennitöluna {{id}}." + type: + node: fannst ekki hnútur + way: fannst ekki vegur + relation: fundust ekki vensli paging_nav: showing_page: "Sýni síðu" of: "af" -- 2.43.2