chore(i18n): translate meta title for main user pages

This commit is contained in:
Colin Darie 2022-11-30 17:21:11 +01:00
parent 70d4d7848b
commit 762942f468
8 changed files with 37 additions and 7 deletions

View file

@ -1,5 +1,5 @@
- content_for(:root_class, 'scroll-margins-for-sticky-footer')
- content_for(:title, "Modification du brouillon nº #{@dossier.id} (#{@dossier.procedure.libelle})")
- content_for(:title, t(".title", scope: :metas, number: @dossier.id.to_s, procedure_label: @dossier.procedure.libelle))
- content_for :footer do
= render partial: "users/procedure_footer", locals: { procedure: @dossier.procedure, dossier: @dossier }

View file

@ -1,4 +1,4 @@
- content_for(:title, "Demande · Dossier nº#{@dossier.id} (#{@dossier.procedure.libelle})")
- content_for(:title, t(".title", scope: :metas, number: @dossier.id.to_s, procedure_label: @dossier.procedure.libelle))
- content_for :footer do
= render partial: "users/procedure_footer", locals: { procedure: @dossier.procedure, dossier: @dossier }

View file

@ -1,7 +1,7 @@
- if @search_terms.present?
- content_for(:title, "Recherche : #{@search_terms}")
- content_for(:title, t(".title_search", scope: :metas, terms: @search_terms))
- else
- content_for(:title, "Dossiers")
- content_for(:title, t(".title", scope: :metas))
- content_for :footer do
= render partial: "users/dossiers/index_footer"

View file

@ -1,4 +1,4 @@
- content_for(:title, "Dossier bien envoyé (#{@dossier.procedure.libelle})")
- content_for(:title, t(".title", scope: :metas, procedure_label: @dossier.procedure.libelle))
- content_for :footer do
= render partial: "users/procedure_footer", locals: { procedure: @dossier.procedure, dossier: @dossier }

View file

@ -1,4 +1,4 @@
- content_for(:title, "Messagerie · Dossier nº #{@dossier.id} (#{@dossier.procedure.libelle})")
- content_for(:title, t(".title", scope: :metas, number: @dossier.id.to_s, procedure_label: @dossier.procedure.libelle))
- content_for :footer do
= render partial: "users/procedure_footer", locals: { procedure: @dossier.procedure, dossier: @dossier }

View file

@ -1,4 +1,4 @@
- content_for(:title, "Résumé · Dossier nº #{@dossier.id} (#{@dossier.procedure.libelle})")
- content_for(:title, t(".title", scope: :metas, number: @dossier.id.to_s, procedure_label: @dossier.procedure.libelle))
- content_for :footer do
= render partial: "users/procedure_footer", locals: { procedure: @dossier.procedure, dossier: @dossier }

View file

@ -2,3 +2,18 @@ en:
metas:
signin:
title: "Sign-in"
users:
dossiers:
index:
title: Files
title_search: "Search: %{terms}"
show:
title: "Summary · File nº %{number} (%{procedure_label})"
demande:
title: "Application · File nº %{number} (%{procedure_label})"
messagerie:
title: "Mailbox · File nº %{number} (%{procedure_label})"
brouillon:
title: "Modification of draft nº %{number} (%{procedure_label})"
merci:
title: "File submitted (%{procedure_label})"

View file

@ -2,3 +2,18 @@ fr:
metas:
signin:
title: "Se connecter"
users:
dossiers:
index:
title: Dossiers
title_search: "Recherche : %{terms}"
show:
title: "Résumé · Dossier nº %{number} (%{procedure_label})"
demande:
title: "Demande · Dossier nº %{number} (%{procedure_label})"
messagerie:
title: "Messagerie · Dossier nº %{number} (%{procedure_label})"
brouillon:
title: "Modification du brouillon nº %{number} (%{procedure_label})"
merci:
title: "Dossier envoyé (%{procedure_label})"