| Issue 22: | locale option | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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
Status:
Started
May 31, 2009
edit the $.fullCalendar.monthNames et al options. in the new docs for 1.2. thanks
Status:
Fixed
Aug 13, 2013
(No comment was entered for this change.)
Status:
Implemented
Aug 13, 2013
(No comment was entered for this change.)
Status:
Released
|
|
| ► Sign in to add a comment |