From 56adb34890f4f1cc9c1527752dbc6335093208ac Mon Sep 17 00:00:00 2001 From: Corinne Durrmeyer Date: Tue, 24 Sep 2024 14:43:59 +0200 Subject: [PATCH] Internationalize title and specify current stage --- app/views/users/dossiers/identite.html.haml | 2 +- config/locales/metas.en.yml | 2 ++ config/locales/metas.fr.yml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/users/dossiers/identite.html.haml b/app/views/users/dossiers/identite.html.haml index 633270aaa..bc7582a90 100644 --- a/app/views/users/dossiers/identite.html.haml +++ b/app/views/users/dossiers/identite.html.haml @@ -1,4 +1,4 @@ -- content_for(:title, "Nouveau dossier (#{@dossier.procedure.libelle})") +- content_for(:title, t(".title", scope: :metas, procedure_label: @dossier.procedure.libelle)) = render partial: "shared/dossiers/submit_is_over", locals: { dossier: @dossier } diff --git a/config/locales/metas.en.yml b/config/locales/metas.en.yml index 4cbf750ce..216ec97ed 100644 --- a/config/locales/metas.en.yml +++ b/config/locales/metas.en.yml @@ -7,6 +7,8 @@ en: index: title: Files title_search: "Search: %{terms}" + identite: + title: "New file (%{procedure_label}) - Step 1: Identity" show: title: "Summary · File nº %{number} (%{procedure_label})" demande: diff --git a/config/locales/metas.fr.yml b/config/locales/metas.fr.yml index 5261f1215..afe4245a6 100644 --- a/config/locales/metas.fr.yml +++ b/config/locales/metas.fr.yml @@ -7,6 +7,8 @@ fr: index: title: Dossiers title_search: "Recherche : %{terms}" + identite: + title: "Nouveau dossier (%{procedure_label}) - Étape 1 : Identité" show: title: "Résumé · Dossier nº %{number} (%{procedure_label})" demande: