]> git.openstreetmap.org Git - rails.git/commitdiff
Made also part of translatable. Fixes #1897.
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Tue, 2 Jun 2009 07:14:55 +0000 (07:14 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Tue, 2 Jun 2009 07:14:55 +0000 (07:14 +0000)
app/views/browse/_way_details.rhtml
config/locales/en.yml

index ad7e489222f7c7fb85471a601daec6bcbf6cee85..a11f06aadf89cfb16dc6fb6c1fcbb3d4c7f863cf 100644 (file)
@@ -11,7 +11,7 @@
             <%= link_to h(printable_name(wn.node)), :action => "node", :id => wn.node_id.to_s %>
             <% related_ways = wn.node.ways.reject { |w| w.id == way_details.id } %>
            <% if related_ways.size > 0 then %>
-             (also part of <%= related_ways.map { |w| link_to(h(printable_name(w)), :action => "way", :id => w.id.to_s) }.join(", ") %>)
+        (<%= t 'browse.way_details.also_part_of', :related_ways => related_ways.map { |w| link_to(h(printable_name(w)), :action => "way", :id => w.id.to_s) }.join(", ") %>)
             <% end %>
          </td></tr>
         <% end %>
index 154664da892ef7ea5c0d8918045768174074b805..af56740d7ed4cb4d7f60cf5d9bb32f081f582ddd 100644 (file)
@@ -163,6 +163,7 @@ en:
     way_details:
       nodes: "Nodes:"
       part_of: "Part of:"
+      also_part_of: "also part of {{related_ways}}"
     way_history:
       way_history: "Way History"
       way_history_title: "Way History: {{way_name}}"