From 153f6ec7a33fda6268e24cf4992f090543606d10 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Tue, 16 Nov 2010 14:18:48 -0500 Subject: [PATCH] Add localized text for monthly_weekday recurrence and tweak text for monthly_date --- kronolith/js/mobile.js | 6 +++++- kronolith/lib/Kronolith.php | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/kronolith/js/mobile.js b/kronolith/js/mobile.js index 520e7402b..3dbd52584 100644 --- a/kronolith/js/mobile.js +++ b/kronolith/js/mobile.js @@ -214,7 +214,11 @@ t.append($('
').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($('
').addClass('kronolithEventDetailRecurring').append(recur)); + break; case 5: case 6: case 7: diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index ee3fb10de..2df3f9202 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -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"); -- 2.11.0