Lazy lookups for translations in message_controller.rb
[rails.git] / app / views / message / _message_count.html.erb
1 <p id="inbox-count">
2 <%= t "message.inbox.messages",
3       :new_messages => t("message.inbox.new_messages",
4                          :count => current_user.new_messages.size),
5       :old_messages => t("message.inbox.old_messages",
6                          :count => current_user.messages.size - current_user.new_messages.size)
7 %>
8 </p>