From: defacer Date: Mon, 3 May 2004 14:07:35 +0000 (+0000) Subject: Some l10n problems fixed. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=aa870ca24ab3973b5bc3227e3a7ff9b4ed38d517;p=moodle.git Some l10n problems fixed. --- 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':