Permalink
Browse files

MDL-35224 calendar: Adding current time string to make page titles un…

…ique
  • Loading branch information...
1 parent c8ac480 commit 3fe4a2fa697f4c8ed16f9e309d70cbc650b873db @ankitagarwal ankitagarwal committed Sep 11, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −2 calendar/view.php
  2. +2 −0 lang/en/calendar.php
View
@@ -98,11 +98,11 @@
switch($view) {
case 'day':
$PAGE->navbar->add(userdate($time, get_string('strftimedate')));
- $pagetitle = get_string('dayview', 'calendar');
+ $pagetitle = get_string('dayviewtitle', 'calendar', userdate($time, get_string('strftimedaydate')));
break;
case 'month':
$PAGE->navbar->add(userdate($time, get_string('strftimemonthyear')));
- $pagetitle = get_string('detailedmonthview', 'calendar');
+ $pagetitle = get_string('detailedmonthviewtitle', 'calendar', userdate($time, get_string('strftimemonthyear')));
break;
case 'upcoming':
$pagetitle = get_string('upcomingevents', 'calendar');
View
@@ -38,11 +38,13 @@
$string['courseevents'] = 'Course events';
$string['courses'] = 'Courses';
$string['dayview'] = 'Day view';
+$string['dayviewtitle'] = 'Day view: {$a}';
$string['daywithnoevents'] = 'There are no events this day.';
$string['default'] = 'Default';
$string['deleteevent'] = 'Delete event';
$string['deleteevents'] = 'Delete events';
$string['detailedmonthview'] = 'Detailed month view';
+$string['detailedmonthviewtitle'] = 'Detailed month view: {$a}';
$string['durationminutes'] = 'Duration in minutes';
$string['durationnone'] = 'Without duration';
$string['durationuntil'] = 'Until';

0 comments on commit 3fe4a2f

Please sign in to comment.