made flash messages for conversations translatable

This commit is contained in:
MrZYX 2011-03-30 16:51:50 +02:00
parent 22b73c736b
commit 699264e7a3
3 changed files with 6 additions and 2 deletions

View file

@ -11,7 +11,7 @@ class ConversationVisibilitiesController < ApplicationController
:conversation_id => params[:conversation_id]).first
if @vis
if @vis.destroy
flash[:notice] = "Conversation successfully removed"
flash[:notice] = I18n.t('conversations.destroy.success')
end
end
redirect_to conversations_path

View file

@ -32,7 +32,7 @@ class ConversationsController < ApplicationController
if @conversation = Conversation.create(params[:conversation])
Postzord::Dispatch.new(current_user, @conversation).post
flash[:notice] = "Message sent"
flash[:notice] = I18n.t('conversations.create.sent')
if params[:profile]
redirect_to person_path(params[:profile])
else

View file

@ -200,6 +200,10 @@ en:
few: "%{count} new messages"
many: "%{count} new messages"
other: "%{count} new messages"
create:
sent: "Message sent"
destroy:
success: "Conversation successfully removed"
date:
formats: