From 7247925a01b1d72b25eb3db21eb79669c8d0572d Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 15 May 2009 18:27:58 +0200 Subject: [PATCH] Update new view captions. --- kronolith/js/src/kronolith.js | 7 ++++++- kronolith/lib/Kronolith.php | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/kronolith/js/src/kronolith.js b/kronolith/js/src/kronolith.js index 2d3a47b94..07905d270 100644 --- a/kronolith/js/src/kronolith.js +++ b/kronolith/js/src/kronolith.js @@ -254,7 +254,7 @@ KronolithCore = { this.dayEvents = []; this.dayGroups = []; this.allDayEvents = []; - $('kronolithViewDay').down('.kronolithCol').setText(date.toString('D')); + $('kronolithViewDay').down('caption span').setText(date.toString('D')); break; case 'week': @@ -266,6 +266,9 @@ KronolithCore = { td = $('kronolithViewWeekBody').down('td').next('td'), dates = this.viewDates(date, view), day = dates[0].clone(); + + $('kronolithViewWeek').down('caption span').setText(Kronolith.text.week.interpolate({ week: date.getWeek() })); + for (var i = 0; i < 7; i++) { div.writeAttribute('id', 'kronolithEventsWeek' + day.dateString()); th.writeAttribute('date', day.dateString()).down('span').setText(day.toString('dddd, d')); @@ -282,6 +285,8 @@ KronolithCore = { dates = this.viewDates(date, view), day = dates[0].clone(), rows = 0, row; + $('kronolithViewMonth').down('caption span').setText(date.toString('MMMM')); + // Remove old rows. Maybe we should only rebuild the calendars if // necessary. tbody.childElements().each(function(row) { diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index 4a6e064f9..1ecd0b29f 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -200,6 +200,7 @@ class Kronolith 'ajax_recover' => _("The connection to the remote server has been restored."), 'alarm' => _("Alarm:"), 'noalerts' => _("No Alerts"), + 'week' => str_replace('%d', '#{week}', _("Week %d")), )); for ($i = 1; $i <= 12; ++$i) { $code['text']['month'][$i - 1] = NLS::getLangInfo(constant('MON_' . $i)); -- 2.11.0