Menu

how to add a new date ?!

Help
Benygh
2010-12-24
2013-05-30
  • Benygh

    Benygh - 2010-12-24

    Hi,
    im gonna add a new date, (jalali) but i dont know where to put its codes to get the full functional work …
    thanks ;)

     
  • Stephen Arnold

    Stephen Arnold - 2010-12-25

    Are you prepared to do the astonishing amount of programming necessary to accommodate the idiosyncrasies of the leap day and changing seasons of the jalali calendar?  This calendar, unlike the Persian calendar, can not be applied with sophistocated, but manageable mathematical algorithms over an extended time frame and its quite difficult to calculate the Julian date equivalent.

    If you are ready to do so, it may be possible to include these calculations into the calendar functionality and make jalali an option.
    Please advise.
    -Stephen

     
  • Gerry Kroll

    Gerry Kroll - 2010-12-25

    Most of the work appears to have been done already:

    http://www.phpclasses.org/package/4457-PHP-Compute-Jalali-calendar-dates.html

    You can look for places where the Hijri calendar is mentioned, and just add the parallel code for the Jalali version.  You might need to provide some interface logic to convert between the PGV date conventions and those required by the above package.  The technical term for this interface logic is "shim".

    I hate to do this:  You should consider contacting the programming team for Webtrees.  You new calendar will probably find a wider audience and better support there.  The team might even consider doing the work for you, if you can build a strong enough case.  It seems to me that if you're going to implement the Persian calendar, you should also start work on the Persian language (Farsi).

    I haven't looked at Webtrees; for personal reasons I'm sticking with PhpGedView for the time being.

     
  • Benygh

    Benygh - 2010-12-26

    ive started working on the translation,
    so as u said i just have to add the codes into the places where hijri code is written ?! right ?!

     
  • Benygh

    Benygh - 2010-12-26

    by the way, is there any better features in WEBTREE ?!
    i dont need all the stuff here in PHPGEDVIEW … is there any simplicity ?

     
  • Stephen Arnold

    Stephen Arnold - 2010-12-26

    You'd be best to visit the webtrees site and read the introduction, discussion, FAQs and forum posts to decide this for yourself. As a fork of this program (PGV), it is inappropriate to evangelize the program within this forum. I do believe you'll find prompt help to any questions you may pose there.
    -Stephen

     

Log in to post a comment.