Merge pull request #7305 from betagouv/feat/7304
ETQ Usager, je souhaite que mes emails transactionnels soient traduits
This commit is contained in:
commit
467eee0e76
9 changed files with 69 additions and 16 deletions
|
@ -17,8 +17,8 @@ module Mails
|
||||||
|
|
||||||
SLUG = "initiated_mail"
|
SLUG = "initiated_mail"
|
||||||
DEFAULT_TEMPLATE_NAME = "notification_mailer/default_templates/initiated_mail"
|
DEFAULT_TEMPLATE_NAME = "notification_mailer/default_templates/initiated_mail"
|
||||||
DISPLAYED_NAME = 'Accusé de réception'
|
DISPLAYED_NAME = I18n.t('activerecord.models.mail.initiated_mail.proof_of_receipt')
|
||||||
DEFAULT_SUBJECT = 'Votre dossier nº --numéro du dossier-- a bien été déposé (--libellé démarche--)'
|
DEFAULT_SUBJECT = I18n.t('activerecord.models.mail.initiated_mail.default_subject', dossier_number: '--numéro du dossier--', procedure_libelle: '--libellé démarche--')
|
||||||
DOSSIER_STATE = Dossier.states.fetch(:en_construction)
|
DOSSIER_STATE = Dossier.states.fetch(:en_construction)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -17,8 +17,8 @@ module Mails
|
||||||
|
|
||||||
SLUG = "received_mail"
|
SLUG = "received_mail"
|
||||||
DEFAULT_TEMPLATE_NAME = "notification_mailer/default_templates/received_mail"
|
DEFAULT_TEMPLATE_NAME = "notification_mailer/default_templates/received_mail"
|
||||||
DISPLAYED_NAME = 'Accusé de passage en instruction'
|
DISPLAYED_NAME = I18n.t('activerecord.models.mail.received_mail.under_instruction')
|
||||||
DEFAULT_SUBJECT = 'Votre dossier nº --numéro du dossier-- va être examiné (--libellé démarche--)'
|
DEFAULT_SUBJECT = I18n.t('activerecord.models.mail.received_mail.default_subject', dossier_number: '--numéro du dossier--', procedure_libelle: '--libellé démarche--')
|
||||||
DOSSIER_STATE = Dossier.states.fetch(:en_instruction)
|
DOSSIER_STATE = Dossier.states.fetch(:en_instruction)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,16 +1,17 @@
|
||||||
%strong
|
%strong
|
||||||
Merci de ne pas répondre à cet email.
|
= t('.do_not_reply')
|
||||||
- if dossier.present? && dossier.messagerie_available?
|
- if dossier.present? && dossier.messagerie_available?
|
||||||
Pour vous adresser à votre administration, passez directement par la
|
= t('.contact_admin')
|
||||||
= succeed '.' do
|
= succeed '.' do
|
||||||
= link_to 'messagerie du dossier', messagerie_dossier_url(dossier), target: '_blank', rel: 'noopener'
|
= link_to t('.file_messagerie'), messagerie_dossier_url(dossier), target: '_blank', rel: 'noopener'
|
||||||
|
|
||||||
- if service.present?
|
- if service.present?
|
||||||
%table{ width: "100%", border: "0", cellspacing: "0", cellpadding: "0", style: "cursor:auto;color:#55575d;font-family:Helvetica, Arial, sans-serif;font-size:11px;line-height:22px;text-align:left;" }
|
%table{ width: "100%", border: "0", cellspacing: "0", cellpadding: "0", style: "cursor:auto;color:#55575d;font-family:Helvetica, Arial, sans-serif;font-size:11px;line-height:22px;text-align:left;" }
|
||||||
%tr
|
%tr
|
||||||
%td{ width: "50%", valign: "top" }
|
%td{ width: "50%", valign: "top" }
|
||||||
%p
|
%p
|
||||||
%strong Cette démarche est gérée par :
|
%strong
|
||||||
|
= t('.procedure_management')
|
||||||
%br
|
%br
|
||||||
= service.nom
|
= service.nom
|
||||||
%br
|
%br
|
||||||
|
@ -19,17 +20,15 @@
|
||||||
= service.adresse
|
= service.adresse
|
||||||
%td{ width: "50%", valign: "top" }
|
%td{ width: "50%", valign: "top" }
|
||||||
%p
|
%p
|
||||||
%strong Poser une question sur votre dossier :
|
%strong
|
||||||
|
= t('.ask_question')
|
||||||
%br
|
%br
|
||||||
- if dossier.present? && dossier.messagerie_available?
|
- if dossier.present? && dossier.messagerie_available?
|
||||||
= link_to 'Par la messagerie', messagerie_dossier_url(dossier), target: '_blank', rel: 'noopener'
|
= link_to t('.by_messagerie'), messagerie_dossier_url(dossier), target: '_blank', rel: 'noopener'
|
||||||
- else
|
- else
|
||||||
Par email :
|
= t('.by_email')
|
||||||
= link_to service.email, "mailto:#{service.email}"
|
= link_to service.email, "mailto:#{service.email}"
|
||||||
- if service.telephone_url.present?
|
- if service.telephone_url.present?
|
||||||
%br
|
%br= t('.by_phone')
|
||||||
Par téléphone :
|
|
||||||
= link_to service.telephone, service.telephone_url
|
= link_to service.telephone, service.telephone_url
|
||||||
%br
|
%br= "#{t('.schedule')} #{ formatted_horaires(service.horaires) }"
|
||||||
Horaires : #{ formatted_horaires(service.horaires) }
|
|
||||||
|
|
||||||
|
|
7
config/locales/models/mail/initiated_mail/en.yml
Normal file
7
config/locales/models/mail/initiated_mail/en.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
en:
|
||||||
|
activerecord:
|
||||||
|
models:
|
||||||
|
mail:
|
||||||
|
initiated_mail:
|
||||||
|
default_subject: Your file nº %{dossier_number} has been successfully submitted (%{procedure_libelle})
|
||||||
|
proof_of_receipt: Acknowledgment of receipt
|
7
config/locales/models/mail/initiated_mail/fr.yml
Normal file
7
config/locales/models/mail/initiated_mail/fr.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
fr:
|
||||||
|
activerecord:
|
||||||
|
models:
|
||||||
|
mail:
|
||||||
|
initiated_mail:
|
||||||
|
default_subject: Votre dossier nº %{dossier_number} a bien été déposé (%{procedure_libelle})
|
||||||
|
proof_of_receipt: Accusé de réception
|
7
config/locales/models/mail/received_mail/en.yml
Normal file
7
config/locales/models/mail/received_mail/en.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
en:
|
||||||
|
activerecord:
|
||||||
|
models:
|
||||||
|
mail:
|
||||||
|
received_mail:
|
||||||
|
default_subject: Your file nº %{dossier_number} will be examined (%{procedure_libelle})
|
||||||
|
under_instruction: Acknowledgment of being under instruction
|
7
config/locales/models/mail/received_mail/fr.yml
Normal file
7
config/locales/models/mail/received_mail/fr.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
fr:
|
||||||
|
activerecord:
|
||||||
|
models:
|
||||||
|
mail:
|
||||||
|
received_mail:
|
||||||
|
default_subject: Votre dossier nº %{dossier_number} va être examiné (%{procedure_libelle})
|
||||||
|
under_instruction: Accusé de passage en instruction
|
13
config/locales/views/layouts/mailers/en.yml
Normal file
13
config/locales/views/layouts/mailers/en.yml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
en:
|
||||||
|
layouts:
|
||||||
|
mailers:
|
||||||
|
service_footer:
|
||||||
|
do_not_reply: Please do not reply to this email.
|
||||||
|
contact_admin: To contact your administration, go directly to the
|
||||||
|
file_messagerie: file mailbox
|
||||||
|
procedure_management: "This procedure is managed by:"
|
||||||
|
ask_question: "Ask a question about your file:"
|
||||||
|
by_messagerie: By messaging
|
||||||
|
by_email: "By email :"
|
||||||
|
by_phone: "By phone :"
|
||||||
|
schedule: "Schedule :"
|
13
config/locales/views/layouts/mailers/fr.yml
Normal file
13
config/locales/views/layouts/mailers/fr.yml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
fr:
|
||||||
|
layouts:
|
||||||
|
mailers:
|
||||||
|
service_footer:
|
||||||
|
do_not_reply: Merci de ne pas répondre à cet email.
|
||||||
|
contact_admin: Pour vous adresser à votre administration, passez directement par la
|
||||||
|
file_messagerie: messagerie du dossier
|
||||||
|
procedure_management: "Cette démarche est gérée par :"
|
||||||
|
ask_question: "Poser une question sur votre dossier :"
|
||||||
|
by_messagerie: Par la messagerie
|
||||||
|
by_email: "Par email :"
|
||||||
|
by_phone: "Par téléphone :"
|
||||||
|
schedule: "Horaires :"
|
Loading…
Add table
Reference in a new issue