mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
Fix deprecation of transchoice
This commit is contained in:
@@ -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' => [
|
||||
|
Reference in New Issue
Block a user