From 064e2abeed35a1708c56a7df748f1e7f6570a959 Mon Sep 17 00:00:00 2001 From: Lisa Durand Date: Tue, 27 Jun 2023 15:16:36 +0200 Subject: [PATCH] add missing translation for admin cards --- .../procedures/_procedures_list.html.haml | 27 ++++++++++++------- config/locales/en.yml | 7 +++++ config/locales/fr.yml | 6 +++++ 3 files changed, 31 insertions(+), 9 deletions(-) diff --git a/app/views/administrateurs/procedures/_procedures_list.html.haml b/app/views/administrateurs/procedures/_procedures_list.html.haml index ce97e4403..b79af04c1 100644 --- a/app/views/administrateurs/procedures/_procedures_list.html.haml +++ b/app/views/administrateurs/procedures/_procedures_list.html.haml @@ -13,19 +13,31 @@ = link_to commencer_url(procedure.path), commencer_url(procedure.path), class: 'fr-link fr-mb-1w' %p.fr-mt-1w.fr-mb-1w - créée le #{procedure.created_at.strftime('%d/%m/%Y')} + = t('administrateurs.procedures.created_at') + = procedure.created_at.strftime('%d/%m/%Y') + - if procedure.published_at.present? - %span publiée le #{procedure.published_at.strftime('%d/%m/%Y')} + %span + = t('administrateurs.procedures.published_at') + = procedure.published_at.strftime('%d/%m/%Y') - if procedure.updated_at.today? - %span modifiée à #{procedure.updated_at.strftime('%H:%M')} + %span + = t('administrateurs.procedures.updated_at_today') + = procedure.updated_at.strftime('%H:%M') - else - %span modifiée le #{procedure.updated_at.strftime('%d/%m/%Y %H:%M')} + %span + = t('administrateurs.procedures.updated_at') + = procedure.updated_at.strftime('%d/%m/%Y %H:%M') - if procedure.closed_at.present? - %span archivée le #{procedure.closed_at.strftime('%d/%m/%Y')} + %span + = t('administrateurs.procedures.closed_at') + = procedure.closed_at.strftime('%d/%m/%Y') - elsif procedure.auto_archive_on&.future? - %span sera clôturée le #{procedure.auto_archive_on.strftime('%d/%m/%Y')} + %span + = t('administrateurs.procedures.auto_archive_on') + = procedure.auto_archive_on.strftime('%d/%m/%Y') %div - if procedure.routing_enabled? @@ -41,16 +53,13 @@ .text-right %p.fr-mb-0 N° #{procedure.id} - if procedure.close? - %span.fr-badge.fr-badge--sm.fr-badge--warning = t('closed', scope: [:layouts, :breadcrumb]) - elsif procedure.locked? - %span.fr-badge.fr-badge--sm.fr-badge--success = t('published', scope: [:layouts, :breadcrumb]) - - else %span.fr-badge.fr-badge--sm.fr-badge--new = t('draft', scope: [:layouts, :breadcrumb]) diff --git a/config/locales/en.yml b/config/locales/en.yml index b9f54df18..1a2789215 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -747,6 +747,13 @@ en: new: title: Pick a password continue: Continue + procedures: + created_at: created at + published_at: published at + updated_at_today: updated at + updated_at: updated at + closed_at: closed at + auto_archive_on: will close at users: dossiers: test_procedure: "This file is submitted on a test procedure. Any modification of the procedure by the administrator (addition of a field, publication of the procedure, etc.) will result in the removal of the file." diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 0f2351a25..4b32f2e22 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -823,6 +823,12 @@ fr: to_clone: Cloner to_close: Clore procedures: + created_at: créée le + published_at: publiée le + updated_at_today: modifiée à + updated_at: modifiée le + closed_at: archivée le + auto_archive_on: sera clôturée le show: ready: "Validé" needs_configuration: "À configurer"