Parcourir la source

bug fix: date choice dans la conversion de la date en temps écoulé.

bastien il y a 13 ans
Parent
révision
b902d60e11
1 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 6 6
      src/Muzich/CoreBundle/Extension/MyTwigExtension.php

+ 6 - 6
src/Muzich/CoreBundle/Extension/MyTwigExtension.php Voir le fichier

55
     {
55
     {
56
       return $this->translator->transChoice(
56
       return $this->translator->transChoice(
57
         'il y a une minute|Il y a %count% minutes',
57
         'il y a une minute|Il y a %count% minutes',
58
-        1,
58
+        $iMinutes,
59
         array('%count%' => $iMinutes)
59
         array('%count%' => $iMinutes)
60
       );
60
       );
61
     }
61
     }
63
     {
63
     {
64
       return $this->translator->transChoice(
64
       return $this->translator->transChoice(
65
         'il y a une heure|Il y a %count% heures',
65
         'il y a une heure|Il y a %count% heures',
66
-        1,
66
+        $iHours,
67
         array('%count%' => $iHours)
67
         array('%count%' => $iHours)
68
       );
68
       );
69
     }
69
     }
71
     {
71
     {
72
       return $this->translator->transChoice(
72
       return $this->translator->transChoice(
73
         'il y a un jour|Il y a %count% jours',
73
         'il y a un jour|Il y a %count% jours',
74
-        1,
74
+        $iDays,
75
         array('%count%' => $iDays)
75
         array('%count%' => $iDays)
76
       );
76
       );
77
     }
77
     }
79
     {
79
     {
80
       return $this->translator->transChoice(
80
       return $this->translator->transChoice(
81
         'il y a une semaine|Il y a %count% semaines',
81
         'il y a une semaine|Il y a %count% semaines',
82
-        1,
82
+        $iWeeks,
83
         array('%count%' => $iWeeks)
83
         array('%count%' => $iWeeks)
84
       );
84
       );
85
     }
85
     }
87
     {
87
     {
88
       return $this->translator->transChoice(
88
       return $this->translator->transChoice(
89
         'il y a un mois|Il y a %count% mois',
89
         'il y a un mois|Il y a %count% mois',
90
-        1,
90
+        $iMonths,
91
         array('%count%' => $iMonths)
91
         array('%count%' => $iMonths)
92
       );
92
       );
93
     }
93
     }
95
     {
95
     {
96
       return $this->translator->transChoice(
96
       return $this->translator->transChoice(
97
         'il y a un an|Il y a %count% ans',
97
         'il y a un an|Il y a %count% ans',
98
-        1,
98
+        $iYears,
99
         array('%count%' => $iYears)
99
         array('%count%' => $iYears)
100
       );
100
       );
101
     }
101
     }