-<p id="inbox-count"><%= t'message.inbox.you_have', :new_count => @user.new_messages.size, :old_count => (@user.messages.size - @user.new_messages.size) %></p>
+<p id="inbox-count">
+<%= t "message.inbox.messages",
+ :new_messages => t("message.inbox.new_messages",
+ :count => current_user.new_messages.size),
+ :old_messages => t("message.inbox.old_messages",
+ :count => current_user.messages.size - current_user.new_messages.size)
+%>
+</p>