Merge pull request #6422 from tchak/feat-more-email-translations
Traduction de certains emails de notification (#6422)
This commit is contained in:
commit
ab5116a06c
33 changed files with 103 additions and 64 deletions
|
@ -2,8 +2,7 @@
|
|||
- if @user.unconfirmed_email.nil?
|
||||
- content_for(:title, 'Activate account')
|
||||
|
||||
%p
|
||||
Dear Sir or Madam,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
You have entered your details to create an account on #{APPLICATION_NAME}. To confirm your email and finish creating your account, select the following link:
|
||||
|
@ -13,8 +12,7 @@
|
|||
- else
|
||||
- content_for(:title, "Change email address")
|
||||
|
||||
%p
|
||||
Dear Sir or Madam,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
To confirm your account email change on #{APPLICATION_NAME}, select the following link:
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
- if @user.unconfirmed_email.nil?
|
||||
- content_for(:title, 'Activez votre compte')
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
Pour activer votre compte sur #{APPLICATION_NAME}, veuillez cliquer sur le lien suivant :
|
||||
|
@ -13,8 +12,7 @@
|
|||
- else
|
||||
- content_for(:title, "Changement d’adresse email")
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
Pour confirmer votre changement d’adresse email, veuillez cliquer sur le lien suivant :
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, 'New email address')
|
||||
|
||||
%p
|
||||
Dear Sir or Madam,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
- unconfirmed_email = @resource.try(:unconfirmed_email?)
|
||||
- if unconfirmed_email.present?
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, 'Votre nouvelle adresse email')
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
- unconfirmed_email = @resource.try(:unconfirmed_email?)
|
||||
- if unconfirmed_email.present?
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, 'New password')
|
||||
|
||||
%p
|
||||
Dear Sir or Madam,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
A request to change your password on #{APPLICATION_NAME} for the account #{@resource.email} was successfully processed.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, 'Votre nouveau mot de passe')
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
La demande de changement de mot de passe pour votre compte #{@resource.email} sur
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
%p
|
||||
Dear Sir or Madam,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
Someone has requested to change your account password on #{APPLICATION_NAME}. To define a new password, select the following link:
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
Vous avez demandé à changer votre mot de passe sur #{APPLICATION_NAME}. Pour ceci, merci de cliquer sur le lien suivant :
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, 'Reactivate account')
|
||||
|
||||
%p
|
||||
Dear Sir or Madam,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
Someone made too many unsuccessful attempts to connect to your account #{@resource.email} on #{APPLICATION_NAME}.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, 'Réactivez votre compte')
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
Quelqu’un a tenté de se connecter un grand nombre de fois sans succès à votre
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, "#{@subject}")
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
= t('.header', count: @deleted_dossiers.count)
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, "#{@subject}")
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
= t('.header', count: @deleted_dossiers.count)
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, "#{@subject}")
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
= t('.header', count: @dossier_hashes.count)
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, "#{@subject}")
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
= t('.header', count: @dossiers.count)
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, "#{@subject}")
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
Le dossier n°#{@dossier.id} pour la démarche «
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, "#{@subject}")
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
= t('.body', dossier_id: @deleted_dossier.dossier_id, procedure: @deleted_dossier.procedure.libelle)
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, "#{@subject}")
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
= t('.body', dossier_id: @deleted_dossier.dossier_id, procedure: @deleted_dossier.procedure.libelle)
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
- content_for(:title, "#{@subject}")
|
||||
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
= "Vous suiviez jusqu'à maintenant le dossier n°#{@dossier_id} de la démarche #{@demarche}."
|
||||
L’usager a modifié le groupe de routage. Son dossier appartient maintenant à un groupe instructeur dont vous ne faites pas partie.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, "#{@subject}")
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
= t('.body_html', dossier_id: @deleted_dossier.dossier_id, libelle_demarche: @deleted_dossier.procedure.libelle, deleted_dossiers_link: dossiers_url(statut: 'dossiers-supprimes'))
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, "#{@subject}")
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
- if @state == Dossier.states.fetch(:en_construction)
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, "#{@subject}")
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
- if @state == Dossier.states.fetch(:en_construction)
|
||||
|
|
31
app/views/dossier_mailer/notify_new_answer.en.html.haml
Normal file
31
app/views/dossier_mailer/notify_new_answer.en.html.haml
Normal file
|
@ -0,0 +1,31 @@
|
|||
- content_for :procedure_logo do
|
||||
= render 'layouts/mailers/logo', url: @logo_url
|
||||
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
- if !@dossier.brouillon?
|
||||
%p
|
||||
You received
|
||||
%strong a new message
|
||||
from the service in charge of examine your File.
|
||||
%p
|
||||
To read the message and answer it, select the following link:
|
||||
|
||||
= round_button('Read the message', messagerie_dossier_url(@dossier), :primary)
|
||||
- else
|
||||
%p
|
||||
You received
|
||||
%strong a new message
|
||||
from the service in charge of examine the File you started a draft for on the procedure #{@dossier.procedure.libelle}.
|
||||
%p{ style: "padding: 8px; color: #333333; background-color: #EEEEEE; font-size: 14px;" }
|
||||
= @body
|
||||
|
||||
%p
|
||||
If you chose to contact the service, please use the email available below in the page.
|
||||
|
||||
= round_button('Open the File', dossier_url(@dossier), :primary)
|
||||
|
||||
= render 'layouts/mailers/signature', service: @service
|
||||
|
||||
- content_for :footer do
|
||||
= render 'layouts/mailers/service_footer', service: @service, dossier: @dossier
|
|
@ -1,8 +1,7 @@
|
|||
- content_for :procedure_logo do
|
||||
= render 'layouts/mailers/logo', url: @logo_url
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
- if !@dossier.brouillon?
|
||||
%p
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, "#{@subject}")
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
= t('.body', dossier_id: @dossier.id, libelle_demarche: @dossier.procedure.libelle)
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
- content_for(:title, "#{@subject}")
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
= t('.body', dossier_id: @dossier.id, libelle_demarche: @dossier.procedure.libelle)
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
- content_for :procedure_logo do
|
||||
= render 'layouts/mailers/logo', url: @logo_url
|
||||
|
||||
%p
|
||||
Dear Sir or Madam,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
You started filling a File on the procedure:
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
- content_for :procedure_logo do
|
||||
= render 'layouts/mailers/logo', url: @logo_url
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
Vous avez commencé à remplir un dossier pour la démarche
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
- content_for :procedure_logo do
|
||||
= render 'layouts/mailers/logo', url: @logo_url
|
||||
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
Your File will be reexamined. All previous decisions are void.
|
||||
To see the File created on procedure
|
||||
%strong= @dossier.procedure.libelle
|
||||
, select the following link:
|
||||
= link_to dossier_url(@dossier), dossier_url(@dossier), target: '_blank', rel: 'noopener'
|
||||
|
||||
- if @dossier.procedure.service.present?
|
||||
%p
|
||||
In order to get more details about the decision to reexamin, please contact the following service:
|
||||
= mail_to @dossier.procedure.service.email, @dossier.procedure.service.email
|
||||
|
||||
= render 'layouts/mailers/signature'
|
||||
|
||||
- content_for :footer do
|
||||
= render 'layouts/mailers/service_footer', service: @service, dossier: @dossier
|
|
@ -1,8 +1,7 @@
|
|||
- content_for :procedure_logo do
|
||||
= render 'layouts/mailers/logo', url: @logo_url
|
||||
|
||||
%p
|
||||
Bonjour,
|
||||
%p= t(:hello, scope: [:views, :shared, :greetings])
|
||||
|
||||
%p
|
||||
Votre dossier va être réexaminé, la précédente décision sur ce dossier est caduque.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
%p
|
||||
= t(:best_regards, scope: [:layouts, :signature])
|
||||
= t(:best_regards, scope: [:views, :shared, :greetings])
|
||||
%br
|
||||
- if defined?(service) && service && service.nom.present?
|
||||
= service.nom
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
- variant = (index == 0 ? :primary : :secondary)
|
||||
- case action
|
||||
- when MailTemplateConcern::Actions::SHOW
|
||||
= round_button('Consulter mon dossier', dossier_url(@dossier), variant)
|
||||
= round_button(t(:access, scope: [:layouts, :notifications, :actions]), dossier_url(@dossier), variant)
|
||||
- when MailTemplateConcern::Actions::ASK_QUESTION
|
||||
= round_button('J’ai une question', messagerie_dossier_url(@dossier), variant)
|
||||
= round_button(t(:question, scope: [:layouts, :notifications, :actions]), messagerie_dossier_url(@dossier), variant)
|
||||
- when MailTemplateConcern::Actions::REPLY
|
||||
= round_button('Répondre à ce message', messagerie_dossier_url(@dossier), variant)
|
||||
= round_button(t(:reply, scope: [:layouts, :notifications, :actions]), messagerie_dossier_url(@dossier), variant)
|
||||
|
||||
= vertical_margin(5)
|
||||
|
|
|
@ -53,8 +53,11 @@ en:
|
|||
line3: administrative forms.
|
||||
locale_dropdown:
|
||||
languages: "Languages"
|
||||
signature:
|
||||
best_regards: Best Regards,
|
||||
notifications:
|
||||
actions:
|
||||
access: View your File
|
||||
question: I have a question
|
||||
reply: Reply to this message
|
||||
views:
|
||||
commencer:
|
||||
show:
|
||||
|
@ -102,6 +105,9 @@ en:
|
|||
first: First
|
||||
truncate: '…'
|
||||
shared:
|
||||
greetings:
|
||||
hello: Dear Sir or Madam,
|
||||
best_regards: Best Regards,
|
||||
dossiers:
|
||||
edit:
|
||||
autosave: Your file is automatically saved after each modification. You can close the window at any time and pick up where you left off later.
|
||||
|
|
|
@ -43,8 +43,12 @@ fr:
|
|||
line3: administratifs dématérialisés.
|
||||
locale_dropdown:
|
||||
languages: "Langues"
|
||||
signature:
|
||||
best_regards: Bonne journée,
|
||||
notifications:
|
||||
actions:
|
||||
access: Consulter mon dossier
|
||||
question: J’ai une question
|
||||
reply: Répondre à ce message
|
||||
|
||||
views:
|
||||
commencer:
|
||||
show:
|
||||
|
@ -93,6 +97,9 @@ fr:
|
|||
first: Premier
|
||||
truncate: '…'
|
||||
shared:
|
||||
greetings:
|
||||
hello: Bonjour,
|
||||
best_regards: Bonne journée,
|
||||
dossiers:
|
||||
edit:
|
||||
autosave: Votre dossier est enregistré automatiquement après chaque modification. Vous pouvez à tout moment fermer la fenêtre et reprendre plus tard là où vous en étiez.
|
||||
|
|
Loading…
Add table
Reference in a new issue