Skip to content
World Wide Web Server edited this page Jul 4, 2012 · 15 revisions

I am developing a multi-lingual project.

I have converted the whole code ,that is mentioned in PHP help (Calendar ref) from JS to PHP . http://www.fourmilab.ch/documents/calendar/

Persian and Gregorian(no change from original calendar class) calendars have been prepared and others in way. CI_Calendar has been changed to call Gregorian(default) Persian, Hebrew, Arabic ... calendars. So this changes are completely compatible with old version of using Calendar (without any changes), just if anyone want to use other calendars it is possible not just by passing a "base_calendar" config parameter.

I was just wondering if we can include it in codeigniter main code. It can make it richer without any more complexity or much overhead in size, Just one Multi_Calendar class for calculation and for each calendar (like Hebrew) one class.

This way codeigniter may be the first framework to support multiple calendars (now it means truly a internationalization support).

The base JS codes are Public domain and our own works license will be GPL and we can change it for CI, to fit in codeigniter license.

[quote] /home/kaveh/calendar_kmz/: total 8 drwxr-xr-x 2 kaveh ashk 4096 2007-07-26 11:14 controller drwxr-xr-x 2 kaveh ashk 4096 2007-07-26 11:14 library

/home/kaveh/calendar_kmz/controller: total 4 -rw-r--r-- 1 kaveh ashk 411 2007-07-26 10:14 blog.php

/home/kaveh/calendar_kmz/library: total 92 -rw-r--r-- 1 kaveh ashk 13206 2007-07-25 22:31 Calendar_gregorian.php -rw-r--r-- 1 kaveh ashk 13439 2007-07-26 10:16 Calendar_persian.php -rw-r--r-- 1 kaveh ashk 3696 2007-07-25 22:00 Calendar.php -rw-r--r-- 1 kaveh ashk 50240 2007-07-24 16:24 Multi_calendar.php [/quote]

Clone this wiki locally