]> git.openstreetmap.org Git - rails.git/commitdiff
Pluralise related way text properly.
authorTom Hughes <tom@compton.nu>
Tue, 2 Jun 2009 17:00:43 +0000 (17:00 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 2 Jun 2009 17:00:43 +0000 (17:00 +0000)
app/views/browse/_way_details.rhtml
config/locales/en.yml

index cd912984c2db5efb82e050475696f15d5ac5424e..917582f8244ec5ec3f67ee3b06ea5f19d0e1bbf9 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 %>
-        (<%= 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) }.to_sentence %>)
+              (<%= t 'browse.way_details.also_part_of', :count => related_ways.size, :related_ways => related_ways.map { |w| link_to(h(printable_name(w)), :action => "way", :id => w.id.to_s) }.to_sentence %>)
             <% end %>
          </td></tr>
         <% end %>
index c285f25249b97b05810c06adff77f2ae49fa8332..14f97f5fefb3579d0a1f82ae67a15a498850d3f0 100644 (file)
@@ -163,7 +163,9 @@ en:
     way_details:
       nodes: "Nodes:"
       part_of: "Part of:"
-      also_part_of: "also part of the ways {{related_ways}}"
+      also_part_of:
+        one: "also part of way {{related_ways}}"
+        other: "also part of ways {{related_ways}}"
     way_history:
       way_history: "Way History"
       way_history_title: "Way History: {{way_name}}"