Commit c64a79d6 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Allow the calendar to be multi-language. Fixed problem with german language...

Allow the calendar to be multi-language. Fixed problem with german language file causing the calender to explode
parent 15760647
......@@ -43,6 +43,8 @@ Calendar._SDN = new Array
"Sa",
"So");
Calendar._FD = 0;
// full month names
Calendar._MN = new Array
("Januar",
......
......@@ -1043,7 +1043,8 @@ function pieform_element_calendar_configure($element) {
$element['jsroot'] = get_config('wwwroot') . 'js/jscalendar/';
$element['themefile'] = theme_get_url('style/calendar.css');
$element['imagefile'] = theme_get_url('images/calendar.gif');
$element['language'] = 'en'; // @todo: language file names for the js calendar may need to be changed
$language = substr(get_config('lang'), 0, 2);$language = 'de';
$element['language'] = $language;
return $element;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment