Skip to content

Commit

Permalink
fix(contact): add missing notices locales
Browse files Browse the repository at this point in the history
  • Loading branch information
colinux committed Jul 31, 2024
1 parent 9789712 commit 66322d4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/support_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def admin
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')

Check warning on line 17 in app/controllers/support_controller.rb

View check run for this annotation

Codecov / codecov/patch

app/controllers/support_controller.rb#L17

Added line #L17 was not covered by tests

redirect_to messagerie_dossier_path(dossier)
return
Expand All @@ -27,7 +27,7 @@ def create

if @form.save

Check warning on line 28 in app/controllers/support_controller.rb

View check run for this annotation

Codecov / codecov/patch

app/controllers/support_controller.rb#L28

Added line #L28 was not covered by tests
@form.create_conversation_later
flash.notice = "Votre message a été envoyé."
flash.notice = t('.message_sent')

Check warning on line 30 in app/controllers/support_controller.rb

View check run for this annotation

Codecov / codecov/patch

app/controllers/support_controller.rb#L30

Added line #L30 was not covered by tests

redirect_to root_path

Check warning on line 32 in app/controllers/support_controller.rb

View check run for this annotation

Codecov / codecov/patch

app/controllers/support_controller.rb#L32

Added line #L32 was not covered by tests
else
Expand Down
3 changes: 3 additions & 0 deletions config/locales/views/support/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
3 changes: 3 additions & 0 deletions config/locales/views/support/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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é.

0 comments on commit 66322d4

Please sign in to comment.