ソースを参照

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

bastien 13 年 前
コミット
b902d60e11
共有1 個のファイルを変更した6 個の追加6 個の削除を含む
  1. 6 6
      src/Muzich/CoreBundle/Extension/MyTwigExtension.php

+ 6 - 6
src/Muzich/CoreBundle/Extension/MyTwigExtension.php ファイルの表示

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