Question

This is a DHTML Gregorian calendar widget. I'm trying to make an Hijri (Persian Calendar - Jalali) widget. Does anyone have any ideas?

Was it helpful?

Solution

you can use this hijri calendar that support all jquery versions. i use these for persian Calendar.

amib Calendar and hasheminezhad Calendar

OTHER TIPS

Try this site, it contains JQuery calenders:

http://keith-wood.name/calendars.html

Note that this site contains a lot of calenders to choose from and one of them is the Persian calender.

You want to change it for the Zimbra core or just to use it in a zimlet? If zimbra core, you need to be more familaiar with the structure of zimbra, its not just a file which needs to be translated but it has series of setting and few extra parts (look at the end of my comment for more tips!)

if you look at

http://files.zimbra.com/docs/zimlet/zcs/7.2.0/jsdocs/symbols/DwtCalendar.html

would notice that it doesn't have that much of relation with globalization

But if you want to have a zimlet that extends calender, you need to override calender view by overriding calender invoked functions in onShowMSG

It will need just a function to convert the calender to the persian one and mapping days

As you probably know the Persian calender conversation is just the matter of names and few mathematical calculation.

just add the calculations , set firstdayoftheweek and set names of days ....

you can find some usefull tips in Persian Calender implementation in Javascript

.

Some tips:

  1. Many of conifuration options are in \ajax\config\msgs\AjxMsg.properties\
  2. Its not dwtCalender that is important but mostly the other date related files like : AjxDateUtil.js in \ajax\util\
  3. Zimbra has the globalization abilities, try to look at zimbra for other languages to be familiar with the way they translate and places that should be change
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top