]> git.openstreetmap.org Git - rails.git/commitdiff
made relation_members.member_type translatable via model translations
authorŠtefan Baebler <stefan.baebler@gmail.com>
Sun, 28 Jun 2009 13:21:24 +0000 (13:21 +0000)
committerŠtefan Baebler <stefan.baebler@gmail.com>
Sun, 28 Jun 2009 13:21:24 +0000 (13:21 +0000)
app/views/browse/_relation_member.html.erb

index 39b89bc0100681be236d477ec7df387bb325e580..ead58490cd6f014e53efcfe30956626e36dd1236 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
   <td>
-    <%= relation_member.member_type.capitalize %>
+    <%= t 'activerecord.models.'+relation_member.member_type.downcase %>
     <%= link_to h(printable_name(relation_member.member)), :action => relation_member.member_type.downcase, :id => relation_member.member_id.to_s %>
     <% unless relation_member.member_role.blank? %>
       <%= t'browse.relation_member.as' %>