made flash messages for conversations translatable
This commit is contained in:
parent
22b73c736b
commit
699264e7a3
3 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue