Fix deprecation of transchoice

This commit is contained in:
2023-10-02 17:44:21 +02:00
parent 41f4bbfdce
commit ef8ac6041a
16 changed files with 71 additions and 39 deletions

View File

@@ -66,7 +66,7 @@ class UserMenuBuilder implements LocalMenuBuilderInterface
if (0 < $ended) {
$this->addItemInMenu(
$menu,
'%number% tasks over deadline',
'nb tasks over deadline',
$ended,
-15,
['new', 'in_progress'],
@@ -77,7 +77,7 @@ class UserMenuBuilder implements LocalMenuBuilderInterface
if (0 < $warning) {
$this->addItemInMenu(
$menu,
'%number% tasks near deadline',
'nb tasks near deadline',
$warning,
-14,
['new', 'in_progress'],
@@ -103,7 +103,7 @@ class UserMenuBuilder implements LocalMenuBuilderInterface
{
if (0 < $number) {
$menu->addChild(
$this->translator->transChoice($message, $number),
$this->translator->trans($message, $number),
[
'route' => 'chill_task_singletask_my_tasks',
'routeParameters' => [