diff --git a/app/controllers/support_controller.rb b/app/controllers/support_controller.rb index ff4dd5e95..f76227226 100644 --- a/app/controllers/support_controller.rb +++ b/app/controllers/support_controller.rb @@ -14,7 +14,7 @@ class SupportController < ApplicationController def create if direct_message? create_commentaire! - flash.notice = "Votre message a été envoyé sur la messagerie de votre dossier." + flash.notice = t('.direct_message_sent') redirect_to messagerie_dossier_path(dossier) return @@ -27,7 +27,7 @@ class SupportController < ApplicationController if @form.save @form.create_conversation_later - flash.notice = "Votre message a été envoyé." + flash.notice = t('.message_sent') redirect_to root_path else diff --git a/config/locales/views/support/en.yml b/config/locales/views/support/en.yml index 69852a6ec..ca545026a 100644 --- a/config/locales/views/support/en.yml +++ b/config/locales/views/support/en.yml @@ -68,3 +68,6 @@ en: question: I want to open an admin account with an Orange, Wanadoo, etc. email admin_autre: question: Other topic + create: + direct_message_sent: Your message has been sent to the mailbox in your file. + message_sent: Your message has been sent. diff --git a/config/locales/views/support/fr.yml b/config/locales/views/support/fr.yml index e3ab7a913..9ceaa6df6 100644 --- a/config/locales/views/support/fr.yml +++ b/config/locales/views/support/fr.yml @@ -69,3 +69,6 @@ fr: question: Je souhaite ouvrir un compte administrateur avec un email Orange, Wanadoo, etc. admin_autre: question: Autre sujet + create: + direct_message_sent: Votre message a été envoyé sur la messagerie de votre dossier. + message_sent: Votre message a été envoyé.