<% end %>
</td>
<td class="username"><%= link_to h(@friend.display_name), :controller => 'user', :action => 'view', :display_name => @friend.display_name %></td>
- <td><% if @friend.home_lon and @friend.home_lat %><%= t 'user.view.km away', :count => @this_user.distance(@friend).round %><% end %></td>
+ <td>
+ <% if @friend.home_lon and @friend.home_lat %>
+ <% distance = @this_user.distance(@friend) %>
+ <% if distance < 1 %>
+ <%= t 'user.view.m away', :count => (distance * 1000).round %>
+ <% else %>
+ <%= t 'user.view.km away', :count => distance.round %>
+ <% end %>
+ <% end %>
+ </td>
<td class="message">(<%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :user_id => @friend.id %>)</td>
</tr>
<%end%>
<% @this_user.nearby.each do |nearby| %>
<tr>
<td class="username"><%= link_to h(nearby.display_name), :controller => 'user', :action => 'view', :display_name => nearby.display_name %></td>
- <td><%= t 'user.view.km away', :count => @this_user.distance(nearby).round %></td>
+ <td>
+ <% distance = @this_user.distance(nearby) %>
+ <% if distance < 1 %>
+ <%= t 'user.view.m away', :count => (distance * 1000).round %>
+ <% else %>
+ <%= t 'user.view.km away', :count => distance.round %>
+ <% end %>
+ </td>
<td class="message">(<%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :user_id => nearby.id %>)</td>
</tr>
<% end %>
your friends: Your friends
no friends: You have not added any friends yet.
km away: "{{count}}km away"
+ m away: "{{count}}m away"
nearby users: "Nearby users: "
no nearby users: "There are no users who admit to mapping nearby yet."
change your settings: change your settings
your friends: Vinir þínir
no friends: Þú átt enga vini
km away: "í {{count}} km fjarlægð"
+ m away: "í {{count}} m fjarlægð"
nearby users: "Nálægir notendur:"
no nearby users: "Engir notendur hafa stillt staðsetningu sína nálægt þér."
change your settings: "breyttu stillingunum þínum"