From f0b6a62ca45f51ae2c0caf37b2d5b6b584ae37eb Mon Sep 17 00:00:00 2001 From: Samuel Vicent Date: Mon, 14 Dec 2020 22:50:40 +0100 Subject: [PATCH] replace transchoice by trans - transChoice is deprecated since SF4.2** and fails on SF5 (https://symfony.com/blog/new-in-symfony-4-2-intlmessageformatter) --- Resources/views/blocks.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/blocks.html.twig b/Resources/views/blocks.html.twig index 5d816126..dd7fa7a5 100644 --- a/Resources/views/blocks.html.twig +++ b/Resources/views/blocks.html.twig @@ -158,7 +158,7 @@ {% endblock grid_pager %} {# ---------------------------------------------------- grid_pager_totalcount -------------------------------------------------- #} {% block grid_pager_totalcount %} -{{ '%count% Results, ' | transchoice(grid.totalCount, {'%count%': grid.totalCount}) }} +{{ '%count% Results, ' | trans({'%count%': grid.totalCount}) }} {% endblock grid_pager_totalcount %} {# ---------------------------------------------------- grid_pager_selectpage -------------------------------------------------- #} {% block grid_pager_selectpage %}