From ef8ac6041a52e2bcb0df8b3b57f4b54198e81a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 2 Oct 2023 17:44:21 +0200 Subject: [PATCH] Fix deprecation of transchoice --- .../Resources/views/Event/list.html.twig | 7 +++++- .../Resources/views/Event/show.html.twig | 2 +- .../translations/messages+int-icu.fr.yml | 13 +++++++++++ .../translations/messages.fr.yml | 2 -- .../Resources/views/Person/create.html.twig | 4 +--- .../Resources/views/Person/list.html.twig | 2 +- .../Person/list_by_phonenumber.html.twig | 4 ++-- .../views/Person/list_with_period.html.twig | 4 ++-- .../translations/messages+intl-icu.fr.yaml | 15 ++++++++++++ .../translations/messages.fr.yml | 2 -- .../Resources/views/Search/results.html.twig | 23 +++++-------------- .../translations/messages.fr.yml | 1 - .../translations/messages.intl-icu.fr.yaml | 7 ++++++ .../ChillTaskBundle/Menu/UserMenuBuilder.php | 6 ++--- .../translations/messages.fr.yml | 4 ---- .../translations/messages.intl-icu.fr.yml | 14 +++++++++++ 16 files changed, 71 insertions(+), 39 deletions(-) create mode 100644 src/Bundle/ChillEventBundle/translations/messages+int-icu.fr.yml create mode 100644 src/Bundle/ChillReportBundle/translations/messages.intl-icu.fr.yaml create mode 100644 src/Bundle/ChillTaskBundle/translations/messages.intl-icu.fr.yml diff --git a/src/Bundle/ChillEventBundle/Resources/views/Event/list.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Event/list.html.twig index d6f871125..4bdb1f0f8 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Event/list.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Event/list.html.twig @@ -1,6 +1,11 @@

{{ 'Event search'|trans }}

-

{% transchoice total with { '%pattern%' : pattern } %}%total% events match the search %pattern%{% endtranschoice %}

+

+ {{ 'total events match the search'|trans({'total' : total}) }} : + + {{ pattern }} + +