diff --git a/app/controllers/invitations_controller.rb b/app/controllers/invitations_controller.rb index 508508da0..2ea2e4c05 100644 --- a/app/controllers/invitations_controller.rb +++ b/app/controllers/invitations_controller.rb @@ -51,7 +51,7 @@ class InvitationsController < ApplicationController inviter = EmailInviter.new(params[:email_inviter][:emails], current_user, params[:email_inviter]) inviter.send! - redirect_to :back, :notice => "#{t('invitations.create.sent')} #{inviter.emails.join(', ')}" + redirect_to :back, :notice => t('invitations.create.sent', :emails => inviter.emails.join(', ')) end def check_if_invites_open diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index 7927bf1bd..618ec4619 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -356,7 +356,7 @@ en: excited: "%{name} is excited to see you here." invitations: create: - sent: "Invitations have been sent to: " + sent: "Invitations have been sent to: %{emails}" rejected: "The following email addresses had problems: " no_more: "You have no more invitations." already_sent: "You already invited this person."