My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 22: locale option
1 person starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
Reported by paul.wol...@gmail.com, May 25, 2009
this is what i changed in fullcalendar.js  for making locale to Dutch:
perhaps something to include in a next version...


if(options.locale) {
var monthNames 	= options.locale.monthNames 	||     
['January','February','March','April','May','June','July','August','September','October','November','December'];
var monthAbbrevs= options.locale.monthAbbrevs 	|| ['Jan', 'Feb', 'Mar',
'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
var dayAbbrevs 	= options.locale.dayAbbrevs 	||
['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'] ;
var dayNames 	= options.locale.dayNames 		||
['Sun','Mon','Tue','Wed','Thu','Fri','Sat'] ;
		}

in the $(document).ready function: 
var nl = {dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag',
'donderdag', 'vrijdag', 'zaterdag'],
dayAbbrevs: ["zo", "ma", "di", "wo", "do", "vr", "za", "zo"],
monthNames: ["januari", "februari", "maart", "april", "mei", "juni",
"juli", "augustus", "september", "oktober", "november", "december"],
monthAbbrevs: ["jan", "feb", "maa", "apr", "mei", "jun", "jul", "aug",
"sep", "okt", "nov", "dec"]
		};

and as an option : 
locale: nl,


May 25, 2009
Project Member #1 adamrs...@gmail.com
yes, FullCalendar needs something like this. Might do the options.locale approach, or
use a global $.fullCalendar object and do $.fullCalendar.monthNames,
$.fullCalendar.dayNames, etc. You can change these values before initializing the
calendar.

This will be in v1.2 for sure
Status: Started
May 31, 2009
Project Member #2 adamrs...@gmail.com
edit the $.fullCalendar.monthNames et al options. in the new docs for 1.2. thanks
Status: Fixed
Aug 13, 2013
Project Member #3 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Implemented
Aug 13, 2013
Project Member #4 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Released
Sign in to add a comment

Powered by Google Project Hosting