diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index ae96c85b3..7089c176f 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -282,7 +282,7 @@ class AccountController < ApplicationController token = Token.new(:user => user, :action => "register") if user.save and token.save Mailer.register(token).deliver - flash[:notice] = l(:notice_account_register_done) + flash[:notice] = l(:notice_account_register_done, :email => user.mail) redirect_to signin_path else yield if block_given? diff --git a/config/locales/en-GB.yml b/config/locales/en-GB.yml index 01da61416..4801f8880 100644 --- a/config/locales/en-GB.yml +++ b/config/locales/en-GB.yml @@ -152,7 +152,7 @@ en-GB: notice_account_invalid_creditentials: Invalid user or password notice_account_password_updated: Password was successfully updated. notice_account_wrong_password: Wrong password - notice_account_register_done: Account was successfully created. To activate your account, click on the link that was emailed to you. + notice_account_register_done: Account was successfully created. An email containing the instructions to activate your account was sent to %{email}. notice_account_unknown_email: Unknown user. notice_can_t_change_password: This account uses an external authentication source. Impossible to change the password. notice_account_lost_email_sent: An email with instructions to choose a new password has been sent to you. diff --git a/config/locales/en.yml b/config/locales/en.yml index 9e280ecd8..eebc34500 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -148,7 +148,7 @@ en: notice_account_invalid_creditentials: Invalid user or password notice_account_password_updated: Password was successfully updated. notice_account_wrong_password: Wrong password - notice_account_register_done: Account was successfully created. To activate your account, click on the link that was emailed to you. + notice_account_register_done: Account was successfully created. An email containing the instructions to activate your account was sent to %{email}. notice_account_unknown_email: Unknown user. notice_account_not_activated_yet: You haven't activated your account yet. If you want to receive a new activation email, please click this link. notice_account_locked: Your account is locked. diff --git a/config/locales/fr.yml b/config/locales/fr.yml index dd0f7a844..0847308b0 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -165,7 +165,7 @@ fr: notice_account_invalid_creditentials: Identifiant ou mot de passe invalide. notice_account_password_updated: Mot de passe mis à jour avec succès. notice_account_wrong_password: Mot de passe incorrect - notice_account_register_done: Un message contenant les instructions pour activer votre compte vous a été envoyé. + notice_account_register_done: Un message contenant les instructions pour activer votre compte vous a été envoyé à l'adresse %{email}. notice_account_unknown_email: Aucun compte ne correspond à cette adresse. notice_account_not_activated_yet: Vous n'avez pas encore activé votre compte. Si vous voulez recevoir un nouveau message d'activation, veuillez cliquer sur ce lien. notice_account_locked: Votre compte est verrouillé.