Author: beseg7
Description:
Here is a patch file for adding some official calendars, to use in
user-perefences-date (WatchList etc.) or even in system-date (default for users,
<nowiki>~~~~, ~~~~~</nowiki>).
The calendars that are patched here are:
- ewish (Hebrew, Israeli) calendar (languages msgs updated: he, en)
- slamic (Muslim, Hijri, Arabic) calendar (languages msgs updated: ar, en)
- ersian (Iranian, Jalāli) calendar (languages msgs updated: fa, ku, en)
- aka (Indian national) calendar (languages msgs updated: hi, en)
A new file was created – Calendars.php. It contains converesions from the
Gregorian date to the 4 dates above.
The file Language.php updated by:
- requiring Calendars.php
- adding some arrays & 'get'-functions for month names
- changing "sprintfDate" function, by:
- adding option to use all those calendars (see in the documentation)
- adding option to use Hebrew-Gematria for Jewish dates
- adding "hebrewNumeral" function for Hebrew-Gematria
The file Defines.php updated by adding 4 new symbols for those calendars.
I checked all the calendars, and they seem to work correctly.
Due to my ignorance in other languages, I didn't know how to write genitive
months in Arabic, Persian, Kurdish & Hindu, so I wrote them as non-genitive
months. Please, someone check it.
Version: unspecified
Severity: enhancement