]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/not_found.rhtml
Make node/way/relation which is fed into the the 'browse.not_found.sorry' message...
[rails.git] / app / views / browse / not_found.rhtml
index 1322a0a6fffea6afa08799337325e04d0dcbdafd..743ab0c8e0bb6543e427a1c99065b1f63c218649 100644 (file)
@@ -1 +1,8 @@
-<p>Sorry, the <%= @type -%> with the id <%= params[:id] -%>, could not be found.</p>
+<%
+  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'),
+  };
+%>
+<p><%= t'browse.not_found.sorry', :type=> browse_not_found_type[@type] , :id => params[:id] %></p>