canvs / fullcalendar

Automatically exported from code.google.com/p/fullcalendar
0 stars 0 forks source link

locale option #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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,

Original issue reported on code.google.com by paul.wol...@gmail.com on 25 May 2009 at 2:03

GoogleCodeExporter commented 9 years ago
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

Original comment by adamrs...@gmail.com on 25 May 2009 at 5:32

GoogleCodeExporter commented 9 years ago
edit the $.fullCalendar.monthNames et al options. in the new docs for 1.2. 
thanks

Original comment by adamrs...@gmail.com on 1 Jun 2009 at 5:13

GoogleCodeExporter commented 9 years ago

Original comment by adamrs...@gmail.com on 14 Aug 2013 at 2:11

GoogleCodeExporter commented 9 years ago

Original comment by adamrs...@gmail.com on 14 Aug 2013 at 2:12