diff --git a/app/views/browse/_node.html.erb b/app/views/browse/_node.html.erb
index 6acc5e01e..ab91a9728 100644
--- a/app/views/browse/_node.html.erb
+++ b/app/views/browse/_node.html.erb
@@ -12,12 +12,24 @@
<% unless node.ways.empty? and node.containing_relation_members.empty? %>
<%= t "browse.part_of" %>
-
- <% node.ways.uniq.each do |way| %>
- - <%= link_to printable_name(way), { :action => "way", :id => way.id.to_s }, { :class => link_class("way", way), :title => link_title(way) } %>
- <% end %>
- <%= render :partial => "containing_relation", :collection => node.containing_relation_members.uniq %>
-
+ <% unless node.ways.empty? %>
+ >
+ <%= t 'browse.part_of_ways', :count => node.ways.count %>
+
+ <% node.ways.uniq.each do |way| %>
+ - <%= link_to printable_name(way), { :action => "way", :id => way.id.to_s }, { :class => link_class("way", way), :title => link_title(way) } %>
+ <% end %>
+
+
+ <% end %>
+ <% unless node.containing_relation_members.empty? %>
+ >
+ <%= t 'browse.part_of_relations', :count => node.containing_relation_members.count %>
+
+ <%= render :partial => "containing_relation", :collection => node.containing_relation_members.uniq %>
+
+
+ <% end %>
<% end %>
<% end %>
diff --git a/app/views/browse/_relation.html.erb b/app/views/browse/_relation.html.erb
index b54581b8b..1dc78afba 100644
--- a/app/views/browse/_relation.html.erb
+++ b/app/views/browse/_relation.html.erb
@@ -12,12 +12,22 @@
<% unless relation.containing_relation_members.empty? %>
<%= t "browse.part_of" %>
- <%= render :partial => "containing_relation", :collection => relation.containing_relation_members.uniq %>
+ >
+ <%= t 'browse.part_of_relations', :count => relation.containing_relation_members.count %>
+
+ <%= render :partial => "containing_relation", :collection => relation.containing_relation_members.uniq %>
+
+
<% end %>
<% unless relation.relation_members.empty? %>
<%= t ".members" %>
- <%= render :partial => "relation_member", :collection => relation.relation_members %>
+ >
+ <%= t '.members_count', :count => relation.relation_members.count %>
+
+ <%= render :partial => "relation_member", :collection => relation.relation_members %>
+
+
<% end %>
<% end %>
diff --git a/app/views/browse/_way.html.erb b/app/views/browse/_way.html.erb
index 137d529ff..2788fdea9 100644
--- a/app/views/browse/_way.html.erb
+++ b/app/views/browse/_way.html.erb
@@ -12,24 +12,30 @@
<% unless way.containing_relation_members.empty? %>
<%= t "browse.part_of" %>
-
- <%= render :partial => "containing_relation", :collection => way.containing_relation_members.uniq %>
-
+ >
+ <%= t 'browse.part_of_relations', :count => way.containing_relation_members.count %>
+
+ <%= render :partial => "containing_relation", :collection => way.containing_relation_members.uniq %>
+
+
<% end %>
<% unless way.way_nodes.empty? %>
<%= t ".nodes" %>
-
- <% way.way_nodes.each do |wn| %>
- -
- <%= link_to printable_name(wn.node), { :action => "node", :id => wn.node_id.to_s }, { :class => link_class("node", wn.node), :title => link_title(wn.node), :rel => link_follow(wn.node) } %>
- <% related_ways = wn.node.ways.reject { |w| w.id == wn.way_id } %>
- <% if related_ways.size > 0 then %>
- (<%= t ".also_part_of_html", :count => related_ways.size, :related_ways => to_sentence(related_ways.map { |w| link_to(printable_name(w), { :action => "way", :id => w.id.to_s }, { :class => link_class("way", w), :title => link_title(w) }) }) %>)
- <% end %>
-
- <% end %>
-
+ >
+ <%= t '.nodes_count', :count => way.way_nodes.count %>
+
+ <% way.way_nodes.each do |wn| %>
+ -
+ <%= link_to printable_name(wn.node), { :action => "node", :id => wn.node_id.to_s }, { :class => link_class("node", wn.node), :title => link_title(wn.node), :rel => link_follow(wn.node) } %>
+ <% related_ways = wn.node.ways.reject { |w| w.id == wn.way_id } %>
+ <% if related_ways.size > 0 then %>
+ (<%= t ".also_part_of_html", :count => related_ways.size, :related_ways => to_sentence(related_ways.map { |w| link_to(printable_name(w), { :action => "way", :id => w.id.to_s }, { :class => link_class("way", w), :title => link_title(w) }) }) %>)
+ <% end %>
+
+ <% end %>
+
+
<% end %>
<% end %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 997500b3d..ec08012fe 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -232,6 +232,12 @@ en:
anonymous: "anonymous"
no_comment: "(no comment)"
part_of: "Part of"
+ part_of_relations:
+ one: 1 relation
+ other: "%{count} relations"
+ part_of_ways:
+ one: 1 way
+ other: "%{count} ways"
download_xml: "Download XML"
view_history: "View History"
view_details: "View Details"
@@ -265,6 +271,8 @@ en:
title_html: "Way: %{name}"
history_title_html: "Way History: %{name}"
nodes: "Nodes"
+ nodes_count:
+ other: "%{count} nodes"
also_part_of_html:
one: "part of way %{related_ways}"
other: "part of ways %{related_ways}"
@@ -272,6 +280,9 @@ en:
title_html: "Relation: %{name}"
history_title_html: "Relation History: %{name}"
members: "Members"
+ members_count:
+ one: 1 member
+ other: "%{count} members"
relation_member:
entry_html: "%{type} %{name}"
entry_role_html: "%{type} %{name} as %{role}"