-
Bug
-
Resolution: Won't Fix
-
Trivial
-
None
-
1.9.8
-
None
-
Any
-
Easy
-
MOODLE_19_STABLE
I modified the funtion in block_birthday.php to make it German by using strftime instead of date an LC_TIME
If some one knows how to get the Language variable can improve it.
<code>
function get_month_day($date, $format='ISO') {
$year = date('Y');
switch ($format)
{ case 'USA': $period = explode('.',$date); $month = $period[0]; $day = $period[1]; break; case 'ISO': $period = explode('-',$date); $month = $period[1]; $day = $period[2]; break; case 'EUR': $period = explode('.',$date); $month = $period[1]; $day = $period[0]; break; default : error('Invalid field type'); }// $return = date('M d',mktime(0,0,0,$month,$day,$year));
setlocale(LC_TIME, 'de_DE.UTF8');
$return = strftime('%d. %B', mktime(0,0,0,$month,$day,$year));
return $return;
}
</code>