Kkriztal2000Sep 13, 2016
Hi.
as I can change,in envents-calendar.php, Monday, Tuesday, wednesday..., september 2016... to spanish.
1 reply · opened Sep 13, 2016
Hi.
as I can change,in envents-calendar.php, Monday, Tuesday, wednesday..., september 2016... to spanish.
Hello,
This is Definitely Possible. Please find the following code in the events-calendar.html Template:
var cal = $( '#calendar' ).calendario( {
onDayClick : function( $el, $contentEl, dateProperties ) {
for( var key in dateProperties ) {
console.log( key + ' = ' + dateProperties[ key ] );
}
},
caldata : canvasEvents
} ),
$month = $( '#calendar-month' ).html( cal.getMonthName() ),
$year = $( '#calendar-year' ).html( cal.getYear() );and replace it with:
var cal = $( '#calendar' ).calendario( {
weeks : [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ],
weekabbrs : [ 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' ],
months : [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ],
monthabbrs : [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ],
onDayClick : function( $el, $contentEl, dateProperties ) {
for( var key in dateProperties ) {
console.log( key + ' = ' + dateProperties[ key ] );
}
},
caldata : canvasEvents
} ),
$month = $( '#calendar-month' ).html( cal.getMonthName() ),
$year = $( '#calendar-year' ).html( cal.getYear() );Now, you can simply change the weeks, weekabbrs, months, monthabbrs Values according to your needs.
This will definitely work fine. Let us know if we can help you with anything else or if you find any further issues.
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard