Summary | Add support for Date_Holidays |
Queue | Kronolith |
Queue Version | HEAD |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | webmaster (at) dasourcerer (dot) net |
Created | 05/02/2006 (6977 days ago) |
Due | |
Updated | 05/01/2007 (6613 days ago) |
Assigned | 10/15/2006 (6811 days ago) |
Resolved | 05/01/2007 (6613 days ago) |
Milestone | |
Patch | No |
State ⇒ Resolved
create new tickets if there are horde-specific date_holidays problems?
http://pear.php.net/bugs/10220
http://pear.php.net/bugs/10221
http://pear.php.net/bugs/10222
package maintainers?
though it's the default location. But you can set it to any directory.
be a PEAR_DATA_DIR define, so going down from PEAR_INSTALL_DIR was my
best chance. If I find a better solution (or anything changes within
Date_Holidays), I'll send in another patch. Promise.
probably. It's too odd that you have to find out yourself if a
translation exists and which one. This should be done inside the
package.
that once a non-existent driver is loaded, all others are flushed.
Very weird...
maintainers?
hardcoded PEAR path for the data files, but we should really look at
PEAR's data_dir configuration variable.
PEAR_INSTALL_DIR as path. Nevertheless I'm glab my patch made it into
CVS ;)
though it's the default location. But you can set it to any directory.
because it seemed odd to link to a dictionary from a calendar, and I
had too many false results.
overwrote the tooltip function.
probably. It's too odd that you have to find out yourself if a
translation exists and which one. This should be done inside the
package.
that once a non-existent driver is loaded, all others are flushed.
Very weird...
hardcoded PEAR path for the data files, but we should really look at
PEAR's data_dir configuration variable.
PEAR_INSTALL_DIR as path. Nevertheless I'm glab my patch made it into
CVS ;)
State ⇒ Feedback
because it seemed odd to link to a dictionary from a calendar, and I
had too many false results.
There are still some issue, mostly limititations in Date_Holiday
probably. It's too odd that you have to find out yourself if a
translation exists and which one. This should be done inside the
package. It's even broken at the moment because you are looking in a
hardcoded PEAR path for the data files, but we should really look at
PEAR's data_dir configuration variable.
Locales are not working properly either, I still have to look into
that. But I want to get it commited, it lingered on my harddrive for
too long.
the underlying OS.
you keep your patched version, update once I've committed my version,
and then send a new patch with any remaining changes on your side.
all. For me, it's working as intended. I'm just glad you like it :)
Technically there is no harm in doing so. The Composite driver is
used to add other holiday drivers so a set of drivers can be used. It
is already loaded and it doesn't make much sense to add the composite
driver to tha composite driver. So it's no longer available as an
option to the user.
independent way
I've been using '/' all the time, now replaced with
DIRECTORY_SEPARATOR (Date_Holidays needs the full path to where its
translation files are kept). This might have prevented the
translation of holidays on non-unixoid systems.
underlying OS.
Since I've already tweaked your patch locally a bit, I suggest that
you keep your patched version, update once I've committed my version,
and then send a new patch with any remaining changes on your side.
New Attachment: dhpatch[1].diff
would be better with these changes:
- Prevent the user from selecting the "Composite" driver
Technically there is no harm in doing so. The Composite driver is used
to add other holiday drivers so a set of drivers can be used. It is
already loaded and it doesn't make much sense to add the composite
driver to tha composite driver. So it's no longer available as an
option to the user.
- Generate the file location of the translation files in a platform
independent way
I've been using '/' all the time, now replaced with
DIRECTORY_SEPARATOR (Date_Holidays needs the full path to where its
translation files are kept). This might have prevented the translation
of holidays on non-unixoid systems.
Sorry for the inconvenience. I should have thought of this before.
Assigned to Jan Schneider
State ⇒ Assigned
New Attachment: dhpatch.diff
acting as an interface between Kronolith and the Date_Holidays
package. The user is able to select a set of holiday drivers.
Furthermore, the code attempts to translate holidays names whenever
possible.
The entire thing can be switched of by the site admin. Thanks to Jan
and Chuck for their help with the UI part.
Oh, and Kronolith is also getting its very own test.php with this patch.
State ⇒ Accepted
as additional calendar options to the user.
filters for holidays. So you can decide easily wether you only want
national holidays or national holidays and holidays of a certain
religion or only later one. IMHO this is a lot more comfortable than
having to importing several iCal files manually. Plus it is very easy
to remove holidays from the display once you decide you no longer need
them.
integrating it into Kronolith has been on my personal todo list since
then.
It has many advantages over remote calendars:
- It isn't remote. You don't need to rely on the remote resource being
available.
- It works for an unfinite future. Some recurring holidays can't be
covered by iCalendar recurrence rules and need to be specified for
every year; the remote file needs to be actively maintained.
- It is localized. You can have holidays in your local language for a
foreign country.
- Probably more...
just need to make it easier to find generic remote calendars (like
national holidays, etc) by linking to a repo from the Kronolith
website or within the Kronolith application itself?
State ⇒ Feedback
adding a remote ical calendar. But I'm curious what others think...
Priority ⇒ 1. Low
State ⇒ New
Queue ⇒ Kronolith
Type ⇒ Enhancement
Summary ⇒ Add support for Date_Holidays
the need to add national and/or religious holidays by hand:
<http://pear.php.net/package/Date_Holidays/>
I really hope this can be done...
I requested this already in
ticket #2985. Since that proved to be thewrong place, I'm stating it here again :>