This is a DHTML Gregorian calendar widget. I'm trying to make an Hijri (Persian Calendar - Jalali) widget. Does anyone have any ideas?
you can use this hijri calendar that support all jquery versions. i use these for persian Calendar.
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.
DWTCalednar
to persian (Hijri) Calendar! –
Rumph https://github.com/farhadi/JalaliJSCalendar/tree/f5475f5c0bc0830c7d2ab8707708bf9e7d6ed0ba
a complete Jalali Calendar(Persian) , is there any way to convert DWT to this ? –
Rumph 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:
- Many of conifuration options are in \ajax\config\msgs\AjxMsg.properties\
- Its not dwtCalender that is important but mostly the other date related files like : AjxDateUtil.js in \ajax\util\
- 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
you can use this hijri calendar that support all jquery versions. i use these for persian Calendar.
© 2022 - 2024 — McMap. All rights reserved.