]> 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 82a81afa5dddf3c83c91dbed29ed35b4cf12b537..743ab0c8e0bb6543e427a1c99065b1f63c218649 100644 (file)
@@ -1 +1,8 @@
-<p><%= t'browse.not_found.sorry', :type=> @type , :id => params[:id] %></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>