Skip to content

Commit

Permalink
MDL-35224 calendar: Adding current time string to make page titles un…
Browse files Browse the repository at this point in the history
…ique
  • Loading branch information
ankitagarwal committed Sep 18, 2012
1 parent c8ac480 commit 3fe4a2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calendar/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 2 additions & 0 deletions lang/en/calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 3fe4a2f

Please sign in to comment.