FullCalendar-BS4-PHP-MySQL-JSON icon indicating copy to clipboard operation
FullCalendar-BS4-PHP-MySQL-JSON copied to clipboard

Localisation

Open masch55 opened this issue 4 years ago • 2 comments
trafficstars

I can't do localisation as it is done in fullcalendar.io. Is ths supported in this version, which I realy like. I tried to get the localisation file from fullcalendar.io and put it into the indes.php file like $('#calendar').fullCalendar({

		  var de = {
				    code: 'de',
				    week: {
				      dow: 1, // Monday is the first day of the week.
				      doy: 4, // The week that contains Jan 4th is the first week of the year.
				    },
				    buttonText: {
				      prev: 'Zurück',
				      next: 'Vor',
				      today: 'Heute',
				      year: 'Jahr',
				      month: 'Monat',
				      week: 'Woche',
				      day: 'Tag',
				      list: 'Terminübersicht',
				    },
				    weekText: 'KW',
				    allDayText: 'Ganztägig',
				    moreLinkText(n) {
				      return '+ weitere ' + n
				    },
				    noEventsText: 'Keine Ereignisse anzuzeigen',
				  };
	  
		locale: de;

but it did't work.

Is this supported at all?

Thanks

masch55 avatar Nov 24 '20 19:11 masch55

Locale is supported in v3 which is what this repo is using: https://fullcalendar.io/docs/v3/locale

You will need to load your specific locale from the fullcalendar repo in order to use it as specified by the API docs above: https://github.com/fullcalendar/fullcalendar/tree/v3/locale

I'm looking to have this repo upgraded to v4 and eventually v5.

Edit: I just re-read your question, and I would check to make sure your script tag is not inside the <? php ?> tags.

waldronmatt avatar Nov 25 '20 03:11 waldronmatt

Thanks Matthew,

I got it running 😊 – thanks.

After some tests I‘ve recognized that the file ‘core/edit-title.php’ which is referred to in index.php is not existing. Instead it is called ‘editEventTitle.php’. Renaming the file to ‘edit-title.php’ succeeds in changing the event title. May be should rename it on GitHub.

Thanks and regards

-martin-

Von: Matthew Waldron [email protected] Gesendet: Mittwoch, 25. November 2020 04:56 An: waldronmatt/FullCalendar-BS4-PHP-MySQL-JSON [email protected] Cc: masch55 [email protected]; Author [email protected] Betreff: Re: [waldronmatt/FullCalendar-BS4-PHP-MySQL-JSON] Localisation (#14)

Locale is supported in v3 which is what this repo is using: https://fullcalendar.io/docs/v3/locale

You will need to load your specific locale from the fullcalendar repo in order to use it as specified by the API docs above: https://github.com/fullcalendar/fullcalendar/tree/v3/locale

I'm looking to have this repo upgraded to v4 and eventually v5.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/waldronmatt/FullCalendar-BS4-PHP-MySQL-JSON/issues/14#issuecomment-733447183 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGWKFS4XG3FV6JMTQ3OWPTSRR55FANCNFSM4UBJGDAQ . https://github.com/notifications/beacon/ABGWKFUYAR5CINXYCQ2W4STSRR55FA5CNFSM4UBJGDA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFO3YIDY.gif

masch55 avatar Nov 25 '20 18:11 masch55