3
hi
it seems to be a problem of newer xoops versions.
In index.php there is a check, which calendar should be taken, the settings in APCal.php
var $jscalendar = 'jscalendar' ;
will be ignored
The check in index.php is
if( is_file( XOOPS_ROOT_PATH . '/include/calendarjs.php' ) ) {
// older jscalendar in XOOPS 2.0.x core
, but the same file exist in xoops 2.3 and newer, and I think, actual version is not fully compatible in all languages.
I solved the problem with deleting the first if-condition, because the last else means the same.
In my index.php it looks like this
if( $action == 'Edit' ) {
//goffy deleted first if condition in order to use recommended jscalendar
/* if( is_file( XOOPS_ROOT_PATH . '/include/calendarjs.php' ) ) {
// older jscalendar in XOOPS 2.0.x core
include XOOPS_ROOT_PATH.'/include/calendarjs.php' ;
$cal->jscalendar = 'xoops' ;
} else */if( is_dir( XOOPS_ROOT_PATH . '/common/jscalendar' ) ) {
// jscalendar in common (recommend)
$jscalurl = XOOPS_URL . '/common/jscalendar' ;
$xoopsTpl->assign( 'xoops_module_header' , '
.$jscalurl.'/calendar-system.css" />
' . $xoopsTpl->get_template_vars( "xoops_module_header" ) ) ;
$cal->jscalendar = 'jscalendar' ;
} elseif( is_dir( XOOPS_ROOT_PATH . '/class/calendar' ) ) {
// jscalendar in XOOPS 2.2 core
$jscalurl = XOOPS_URL . '/class/calendar' ;
$xoopsTpl->assign( 'xoops_module_header' , '
.$jscalurl.'/CSS/calendar-blue.css" title="system" />
' . $xoopsTpl->get_template_vars( "xoops_module_header" ) ) ;
$cal->jscalendar = 'jscalendar' ;
} else {
// older jscalendar in XOOPS 2.0.x core
include XOOPS_ROOT_PATH.'/include/calendarjs.php' ;
$cal->jscalendar = 'xoops' ;
}
The jscalendar in folder common must be available, then it works in german version.