mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 03:23:48 +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' => [
|
||||
|
@@ -95,10 +95,6 @@ Are you sure you want to start this task ?: Êtes-vous sûrs de vouloir démarre
|
||||
"The transition is successfully applied": "La transition a bien été effectuée"
|
||||
"The transition could not be applied": "La transition n'a pas pu être appliquée"
|
||||
|
||||
#widget
|
||||
"%number% tasks over deadline": "{0} Aucune tâche dépassée|{1} Une tâche dépassée | ]1,Inf[ %count% tâches dépassées"
|
||||
"%number% tasks near deadline": "{0} Aucune tâche en rappel|{1} Une tâche en rappel | ]1,Inf[ %count% tâches en rappel"
|
||||
|
||||
Tasks near deadline: Tâches à échéance proche
|
||||
Tasks over deadline: Tâches à échéance dépassée
|
||||
Tasks without alert: Tâches à échéance future ou sans échéance
|
||||
|
@@ -0,0 +1,14 @@
|
||||
#widget
|
||||
nb tasks over deadline: >-
|
||||
{nb, plural,
|
||||
=0 {Aucune tâche dépassée}
|
||||
one {Une tâche dépassée}
|
||||
other {# tâches dépassées}
|
||||
}
|
||||
|
||||
nb tasks near deadline: >-
|
||||
{nb, plural,
|
||||
=0 {Aucune tâche en rappel}
|
||||
one {Une tâche en rappel}
|
||||
other {# tâches en rappel}
|
||||
}
|
Reference in New Issue
Block a user