From aa870ca24ab3973b5bc3227e3a7ff9b4ed38d517 Mon Sep 17 00:00:00 2001 From: defacer Date: Mon, 3 May 2004 14:07:35 +0000 Subject: [PATCH] Some l10n problems fixed. --- calendar/lib.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/calendar/lib.php b/calendar/lib.php index 00acc36683..4a897fd693 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -529,19 +529,18 @@ function calendar_top_controls($type, $data) { */ break; case 'display': - $content .= '
'.$monthname.' '.$data['y']."
\n"; + $content .= '
'.strftime(get_string('strftimemonthyear'), $time)."
\n"; + break; case 'month': list($prevmonth, $prevyear) = calendar_sub_month($data['m'], $data['y']); list($nextmonth, $nextyear) = calendar_add_month($data['m'], $data['y']); - $prevdate = getdate(calendar_mktime_check($prevmonth, 1, $prevyear)); - $nextdate = getdate(calendar_mktime_check($nextmonth, 1, $nextyear)); - $prevname = calendar_month_name($prevdate['month']); - $nextname = calendar_month_name($nextdate['month']); + $prevdate = calendar_mktime_check($prevmonth, 1, $prevyear); + $nextdate = calendar_mktime_check($nextmonth, 1, $nextyear); $content .= "\n"; - $content .= '\n"; + $content .= '\n"; $content .= '\n"; - $content .= '\n"; + $content .= '\n"; $content .= "
<< '.$prevname.' '.$prevyear."<< '.strftime(get_string('strftimemonthyear'), $prevdate)."'.strftime(get_string('strftimemonthyear'), $time)."'.$nextname.' '.$nextyear." >>'.strftime(get_string('strftimemonthyear'), $nextdate)." >>
\n"; break; case 'day': -- 2.39.5