From 43b70fd773da890dd43fc1dba0eb42f37f7a0829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 4 Nov 2024 15:26:07 +0100 Subject: [PATCH] Rename translation key for workflow signature titles Updated the translation key from 'workflow.signature_required_title' to 'workflow.signatures_title' in the workflow history view. This change ensures consistency and proper usage of the translation key across different parts of the application. --- .../Resources/views/Workflow/_history.html.twig | 4 ++-- .../ChillMainBundle/translations/messages+intl-icu.fr.yaml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/views/Workflow/_history.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Workflow/_history.html.twig index 9149e9a94..4ce53a845 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Workflow/_history.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Workflow/_history.html.twig @@ -74,7 +74,7 @@ {% if not loop.last and step.signatures|length > 0 %}
-

{{ 'workflow.signature_required_title'|trans({'nb_signatures': step.signatures|length}) }} :

+

{{ 'workflow.signatures_title'|trans({'nb_signatures': step.signatures|length}) }} :

{{ include('@ChillMain/Workflow/_signature_list.html.twig', {'signatures': step.signatures, is_small: true }) }}
@@ -130,7 +130,7 @@
{% if step.signatures|length > 0 %} -

{{ 'workflow.signature_required_title'|trans({'nb_signatures': step.signatures|length}) }} :

+

{{ 'workflow.signatures_title'|trans({'nb_signatures': step.signatures|length}) }} :

{{ include('@ChillMain/Workflow/_signature_list.html.twig', {'signatures': step.signatures, is_small: true }) }} {% endif %} {% endif %} diff --git a/src/Bundle/ChillMainBundle/translations/messages+intl-icu.fr.yaml b/src/Bundle/ChillMainBundle/translations/messages+intl-icu.fr.yaml index 5c67b3eaa..e86484114 100644 --- a/src/Bundle/ChillMainBundle/translations/messages+intl-icu.fr.yaml +++ b/src/Bundle/ChillMainBundle/translations/messages+intl-icu.fr.yaml @@ -67,6 +67,12 @@ workflow: one {Signature demandée} other {Signatures demandées} } + signatures_title: >- + {nb_signatures, plural, + =0 {Aucune signature} + one {Signature} + other {Signatures} + } pending_signatures: >- {nb_signatures, plural, =0 {Aucune signature demandée}