refactor(i18n): move signature translation keys to shared

This commit is contained in:
Paul Chavard 2021-08-26 17:50:39 +02:00
parent c1c45613cc
commit 241f564ecc
32 changed files with 38 additions and 38 deletions

View file

@ -2,7 +2,7 @@
- if @user.unconfirmed_email.nil? - if @user.unconfirmed_email.nil?
- content_for(:title, 'Activate account') - content_for(:title, 'Activate account')
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %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: 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:
@ -12,7 +12,7 @@
- else - else
- content_for(:title, "Change email address") - content_for(:title, "Change email address")
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
To confirm your account email change on #{APPLICATION_NAME}, select the following link: To confirm your account email change on #{APPLICATION_NAME}, select the following link:

View file

@ -2,7 +2,7 @@
- if @user.unconfirmed_email.nil? - if @user.unconfirmed_email.nil?
- content_for(:title, 'Activez votre compte') - content_for(:title, 'Activez votre compte')
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
Pour activer votre compte sur #{APPLICATION_NAME}, veuillez cliquer sur le lien suivant : Pour activer votre compte sur #{APPLICATION_NAME}, veuillez cliquer sur le lien suivant :
@ -12,7 +12,7 @@
- else - else
- content_for(:title, "Changement dadresse email") - content_for(:title, "Changement dadresse email")
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
Pour confirmer votre changement dadresse email, veuillez cliquer sur le lien suivant : Pour confirmer votre changement dadresse email, veuillez cliquer sur le lien suivant :

View file

@ -1,6 +1,6 @@
- content_for(:title, 'New email address') - content_for(:title, 'New email address')
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
- unconfirmed_email = @resource.try(:unconfirmed_email?) - unconfirmed_email = @resource.try(:unconfirmed_email?)
- if unconfirmed_email.present? - if unconfirmed_email.present?

View file

@ -1,6 +1,6 @@
- content_for(:title, 'Votre nouvelle adresse email') - content_for(:title, 'Votre nouvelle adresse email')
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
- unconfirmed_email = @resource.try(:unconfirmed_email?) - unconfirmed_email = @resource.try(:unconfirmed_email?)
- if unconfirmed_email.present? - if unconfirmed_email.present?

View file

@ -1,6 +1,6 @@
- content_for(:title, 'New password') - content_for(:title, 'New password')
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
A request to change your password on #{APPLICATION_NAME} for the account #{@resource.email} was successfully processed. A request to change your password on #{APPLICATION_NAME} for the account #{@resource.email} was successfully processed.

View file

@ -1,6 +1,6 @@
- content_for(:title, 'Votre nouveau mot de passe') - content_for(:title, 'Votre nouveau mot de passe')
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
La demande de changement de mot de passe pour votre compte #{@resource.email} sur La demande de changement de mot de passe pour votre compte #{@resource.email} sur

View file

@ -1,4 +1,4 @@
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
Someone has requested to change your account password on #{APPLICATION_NAME}. To define a new password, select the following link: Someone has requested to change your account password on #{APPLICATION_NAME}. To define a new password, select the following link:

View file

@ -1,4 +1,4 @@
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
Vous avez demandé à changer votre mot de passe sur #{APPLICATION_NAME}. Pour ceci, merci de cliquer sur le lien suivant : Vous avez demandé à changer votre mot de passe sur #{APPLICATION_NAME}. Pour ceci, merci de cliquer sur le lien suivant :

View file

@ -1,6 +1,6 @@
- content_for(:title, 'Reactivate account') - content_for(:title, 'Reactivate account')
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
Someone made too many unsuccessful attempts to connect to your account #{@resource.email} on #{APPLICATION_NAME}. Someone made too many unsuccessful attempts to connect to your account #{@resource.email} on #{APPLICATION_NAME}.

View file

@ -1,6 +1,6 @@
- content_for(:title, 'Réactivez votre compte') - content_for(:title, 'Réactivez votre compte')
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
Quelquun a tenté de se connecter un grand nombre de fois sans succès à votre Quelquun a tenté de se connecter un grand nombre de fois sans succès à votre

View file

@ -1,6 +1,6 @@
- content_for(:title, "#{@subject}") - content_for(:title, "#{@subject}")
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
= t('.header', count: @deleted_dossiers.count) = t('.header', count: @deleted_dossiers.count)

View file

@ -1,6 +1,6 @@
- content_for(:title, "#{@subject}") - content_for(:title, "#{@subject}")
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
= t('.header', count: @deleted_dossiers.count) = t('.header', count: @deleted_dossiers.count)

View file

@ -1,6 +1,6 @@
- content_for(:title, "#{@subject}") - content_for(:title, "#{@subject}")
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
= t('.header', count: @dossier_hashes.count) = t('.header', count: @dossier_hashes.count)

View file

@ -1,6 +1,6 @@
- content_for(:title, "#{@subject}") - content_for(:title, "#{@subject}")
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
= t('.header', count: @dossiers.count) = t('.header', count: @dossiers.count)

View file

@ -1,6 +1,6 @@
- content_for(:title, "#{@subject}") - content_for(:title, "#{@subject}")
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
Le dossier n°#{@dossier.id} pour la démarche «  Le dossier n°#{@dossier.id} pour la démarche « 

View file

@ -1,6 +1,6 @@
- content_for(:title, "#{@subject}") - content_for(:title, "#{@subject}")
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
= t('.body', dossier_id: @deleted_dossier.dossier_id, procedure: @deleted_dossier.procedure.libelle) = t('.body', dossier_id: @deleted_dossier.dossier_id, procedure: @deleted_dossier.procedure.libelle)

View file

@ -1,6 +1,6 @@
- content_for(:title, "#{@subject}") - content_for(:title, "#{@subject}")
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
= t('.body', dossier_id: @deleted_dossier.dossier_id, procedure: @deleted_dossier.procedure.libelle) = t('.body', dossier_id: @deleted_dossier.dossier_id, procedure: @deleted_dossier.procedure.libelle)

View file

@ -1,6 +1,6 @@
- content_for(:title, "#{@subject}") - content_for(:title, "#{@subject}")
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
= "Vous suiviez jusqu'à maintenant le dossier n°#{@dossier_id} de la démarche #{@demarche}." = "Vous suiviez jusqu'à maintenant le dossier n°#{@dossier_id} de la démarche #{@demarche}."

View file

@ -1,6 +1,6 @@
- content_for(:title, "#{@subject}") - content_for(:title, "#{@subject}")
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
= t('.body_html', dossier_id: @deleted_dossier.dossier_id, libelle_demarche: @deleted_dossier.procedure.libelle, deleted_dossiers_link: dossiers_url(statut: 'dossiers-supprimes')) = t('.body_html', dossier_id: @deleted_dossier.dossier_id, libelle_demarche: @deleted_dossier.procedure.libelle, deleted_dossiers_link: dossiers_url(statut: 'dossiers-supprimes'))

View file

@ -1,6 +1,6 @@
- content_for(:title, "#{@subject}") - content_for(:title, "#{@subject}")
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
- if @state == Dossier.states.fetch(:en_construction) - if @state == Dossier.states.fetch(:en_construction)

View file

@ -1,6 +1,6 @@
- content_for(:title, "#{@subject}") - content_for(:title, "#{@subject}")
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
- if @state == Dossier.states.fetch(:en_construction) - if @state == Dossier.states.fetch(:en_construction)

View file

@ -1,7 +1,7 @@
- content_for :procedure_logo do - content_for :procedure_logo do
= render 'layouts/mailers/logo', url: @logo_url = render 'layouts/mailers/logo', url: @logo_url
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
- if !@dossier.brouillon? - if !@dossier.brouillon?
%p %p

View file

@ -1,7 +1,7 @@
- content_for :procedure_logo do - content_for :procedure_logo do
= render 'layouts/mailers/logo', url: @logo_url = render 'layouts/mailers/logo', url: @logo_url
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
- if !@dossier.brouillon? - if !@dossier.brouillon?
%p %p

View file

@ -1,6 +1,6 @@
- content_for(:title, "#{@subject}") - content_for(:title, "#{@subject}")
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
= t('.body', dossier_id: @dossier.id, libelle_demarche: @dossier.procedure.libelle) = t('.body', dossier_id: @dossier.id, libelle_demarche: @dossier.procedure.libelle)

View file

@ -1,6 +1,6 @@
- content_for(:title, "#{@subject}") - content_for(:title, "#{@subject}")
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
= t('.body', dossier_id: @dossier.id, libelle_demarche: @dossier.procedure.libelle) = t('.body', dossier_id: @dossier.id, libelle_demarche: @dossier.procedure.libelle)

View file

@ -1,7 +1,7 @@
- content_for :procedure_logo do - content_for :procedure_logo do
= render 'layouts/mailers/logo', url: @logo_url = render 'layouts/mailers/logo', url: @logo_url
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
You started filling a File on the procedure: You started filling a File on the procedure:

View file

@ -1,7 +1,7 @@
- content_for :procedure_logo do - content_for :procedure_logo do
= render 'layouts/mailers/logo', url: @logo_url = render 'layouts/mailers/logo', url: @logo_url
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
Vous avez commencé à remplir un dossier pour la démarche Vous avez commencé à remplir un dossier pour la démarche

View file

@ -1,7 +1,7 @@
- content_for :procedure_logo do - content_for :procedure_logo do
= render 'layouts/mailers/logo', url: @logo_url = render 'layouts/mailers/logo', url: @logo_url
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
Your File will be reexamined. All previous decisions are void. Your File will be reexamined. All previous decisions are void.

View file

@ -1,7 +1,7 @@
- content_for :procedure_logo do - content_for :procedure_logo do
= render 'layouts/mailers/logo', url: @logo_url = render 'layouts/mailers/logo', url: @logo_url
%p= t(:greeting, scope: [:layouts, :signature]) %p= t(:hello, scope: [:views, :shared, :greetings])
%p %p
Votre dossier va être réexaminé, la précédente décision sur ce dossier est caduque. Votre dossier va être réexaminé, la précédente décision sur ce dossier est caduque.

View file

@ -1,5 +1,5 @@
%p %p
= t(:best_regards, scope: [:layouts, :signature]) = t(:best_regards, scope: [:views, :shared, :greetings])
%br %br
- if defined?(service) && service && service.nom.present? - if defined?(service) && service && service.nom.present?
= service.nom = service.nom

View file

@ -53,9 +53,6 @@ en:
line3: administrative forms. line3: administrative forms.
locale_dropdown: locale_dropdown:
languages: "Languages" languages: "Languages"
signature:
greeting: Dear Sir or Madam,
best_regards: Best Regards,
notifications: notifications:
actions: actions:
access: View your File access: View your File
@ -108,6 +105,9 @@ en:
first: First first: First
truncate: '…' truncate: '…'
shared: shared:
greetings:
hello: Dear Sir or Madam,
best_regards: Best Regards,
dossiers: dossiers:
edit: 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. 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.

View file

@ -43,9 +43,6 @@ fr:
line3: administratifs dématérialisés. line3: administratifs dématérialisés.
locale_dropdown: locale_dropdown:
languages: "Langues" languages: "Langues"
signature:
greeting: Bonjour,
best_regards: Bonne journée,
notifications: notifications:
actions: actions:
access: Consulter mon dossier access: Consulter mon dossier
@ -100,6 +97,9 @@ fr:
first: Premier first: Premier
truncate: '…' truncate: '…'
shared: shared:
greetings:
hello: Bonjour,
best_regards: Bonne journée,
dossiers: dossiers:
edit: 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. 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.