-<h2>My inbox</h2>
+<h2><%= t'message.inbox.my_inbox'%>/<%= link_to t('message.inbox.outbox'), url_for(:controller => "user", :action => "outbox", :id => @user.display_name) %></h2>
-<p>You have <%= @user.new_messages.size %> new messages and <%= @user.messages.size - @user.new_messages.size %> old messages</p>
+<p><%= t'message.inbox.you_have', :new_count => @user.new_messages.size, :old_count => (@user.messages.size - @user.new_messages.size) %></p>
-<% if (params[:all] and @user.messages.size > 0) or (@user.new_messages.size > 0) %>
+<% if @user.messages.size > 0 %>
<div id="messages">
<table class="messages">
<tr>
- <th>From</th>
- <th>Subject</th>
- <th>Date</th>
+ <th><%= t'message.inbox.from' %></th>
+ <th><%= t'message.inbox.subject' %></th>
+ <th><%= t'message.inbox.date' %></th>
<th></th>
<th></th>
</tr>
- <% if params[:all] %>
- <%= render :partial => "message_summary", :collection => @user.messages %>
- <% else %>
- <%= render :partial => "message_summary", :collection => @user.new_messages %>
- <% end %>
+ <%= render :partial => "message_summary", :collection => @user.messages %>
</table>
</div>
-<% end %>
-
-<br />
-
-<% if params[:all] %>
- <%= link_to 'Show new messages', :controller => 'message', :action => 'inbox', :display_name => @user.display_name %>
<% else %>
- <%= link_to 'Show all messages', :controller => 'message', :action => 'inbox', :display_name => @user.display_name, :all => true %>
+ <div id="messages"><%= t'message.inbox.no_messages_yet', :people_mapping_nearby_link => link_to(t('message.inbox.people_mapping_nearby'), :controller => 'user', :action => 'view', :display_name => @user.display_name) %></div>
<% end %>