Add localized text for monthly_weekday recurrence and tweak text
authorMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 16 Nov 2010 19:18:48 +0000 (14:18 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 16 Nov 2010 20:02:22 +0000 (15:02 -0500)
for monthly_date

kronolith/js/mobile.js
kronolith/lib/Kronolith.php

index 520e740..3dbd525 100644 (file)
                  t.append($('<div>').addClass('kronolithEventDetailRecurring').append(recur));
                  break;
              case 4:
-                 // Monthly
+                 // Monthly_Day
+                 recur = Kronolith.text.recur.desc[e.r.t][(e.r.i > 1) ? 1 : 0];
+                 recur = recur.replace('#{interval}', e.r.i);
+                 t.append($('<div>').addClass('kronolithEventDetailRecurring').append(recur));
+                 break;
              case 5:
              case 6:
              case 7:
index ee3fb10..2df3f92 100644 (file)
@@ -336,7 +336,9 @@ class Kronolith
             Horde_Date_Recurrence::RECUR_WEEKLY => array(sprintf(_("Recurs weekly on every %s"), "#{weekday}"),
                                                          sprintf(_("Recurs every %s weeks on %s"), "#{interval}", "#{weekday}")),
             Horde_Date_Recurrence::RECUR_MONTHLY_DATE => array(sprintf(_("Recurs on the %s of every month"), "#{date}"),
-                                                               sprintf(_("Recurs on the %s of every %s months"), "#{date}", "#{interval}"))
+                                                               sprintf(_("Recurs every %s months on the %s"), "#{interval}", "#{date}")),
+            Horde_Date_Recurrence::RECUR_MONTHLY_WEEKDAY => array(_("Recurs every month on the same weekday"),
+                                                               sprintf(_("Recurs every %s months on the same weekday"), "#{interval}"))
         );
         $code['text']['recur']['exception'] = _("Exception");