Use date span instead of week number as week view title.
authorJan Schneider <jan@horde.org>
Mon, 10 May 2010 16:42:12 +0000 (18:42 +0200)
committerJan Schneider <jan@horde.org>
Mon, 10 May 2010 17:21:24 +0000 (19:21 +0200)
kronolith/js/kronolith.js
kronolith/lib/Kronolith.php

index d5ff3b8..9cc8630 100644 (file)
@@ -558,7 +558,7 @@ KronolithCore = {
 
             $('kronolithViewWeek')
                 .down('caption span')
-                .update(this.setTitle(Kronolith.text.week.interpolate({ week: date.getRealWeek() })));
+                .update(this.setTitle(dates[0].toString('d') + ' - ' + dates[1].toString('d')));
 
             for (i = 0; i < 24; i++) {
                 day = dates[0].clone();
index cd527b7..28db1df 100644 (file)
@@ -349,7 +349,6 @@ class Kronolith
             'noalerts' => _("No Notifications"),
             'alerts' => sprintf(_("%s notifications"), '#{count}'),
             'hidelog' => _("Hide Notifications"),
-            'week' => sprintf(_("Week %s"), '#{week}'),
             'agenda' => _("Agenda"),
             'searching' => sprintf(_("Events matching \"%s\""), '#{term}'),
             'allday' => _("All day"),