<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Date_Holidays split up breaks translation support for non-christian drivers</title> 
  <pubDate>Fri, 10 Apr 2026 16:31:14 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7272</link> 
  <atom:link rel="self" type="application/rss+xml" title="Date_Holidays split up breaks translation support for non-christian drivers" href="https://bugs.horde.org/ticket/7272/rss" /> 
  <description>Date_Holidays split up breaks translation support for non-christian drivers</description> 
 
   
   
  <item> 
   <title>Since Date_Holidays version 0.19.0 the national drivers have</title> 
   <description>Since Date_Holidays version 0.19.0 the national drivers have been migrated to dedicated sub packages.

As a result the location of the translation files has changed as well.



That&#039;s why _getTranslationFileLocation in kronolith/lib/Driver/holidays.php fails to load the correct translation file.



For example the translation files for the german driver were moved from $PEAR_INSTALL_DIR/data/Date_Holidays/lang/Germany/ to $PEAR_INSTALL_DIR/data/Date_Holidays_Germany/lang/Germany/.



</description> 
   <pubDate>Mon, 01 Sep 2008 12:52:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7272#t48642</link> 
  </item> 
   
  <item> 
   <title>From IRC discussion



mrubinsk

12:17:14 date_holidays is k</title> 
   <description>From IRC discussion



mrubinsk

12:17:14 date_holidays is kicking my butt

mrubinsk

12:17:32

oh, it doesn&#039;t *have* a en_us file

mrubinsk

12:17:40

well, that sucks

mrubinsk

12:17:58

...as does the new directory structure

yunosh

12:19:14

yeah, ken is keeping implenting all kind of bc breaking changes (which is fine), without actually implementing my requests that would make it much easier dealing with those

mrubinsk

12:23:10

ah well, I&#039;m giving up on this for now. It&#039;s completely unusable for me anyway, without any en_us files.

mrubinsk

12:23:44

not to mention the files that *are* there are present in different places...for de for instance, we have

mrubinsk

12:24:05

data/Date_Holidays/lang/Christian/de_DE.*

mrubinsk

12:24:07

and

mrubinsk

12:24:25

data/Date_Holidays_Germany/lang/Christian/de_DE*

mrubinsk

12:24:28

very confusing :)

yunosh

12:26:06

uh, and that shouldn&#039;t happen :)

yunosh

12:26:22

probably some left-overs from earlier versions

yunosh

12:26:37

pear list-files is the definite reference

mrubinsk

12:27:44

...and both files are there in that list :)

yunosh

12:28:06

heh

mrubinsk

12:28:14

hence the confusion :)

yunosh

12:28:34

actually, it should be data/Date_Holidays_Christian/lang/de_DE.*

mrubinsk

12:29:45

...but I thought that Christian was part of the base driver?

yunosh

12:30:07

oh, is it?

yunosh

12:30:12

i thought all have been separated out

mrubinsk

12:30:19

there isn&#039;t a Date_Holiday_Christian package

mrubinsk

12:30:23

Holidays

yunosh

12:30:26

ah, k then

yunosh

12:30:34

then the first path looks correct to me

yunosh

12:30:53

unless there are extensions to the christian driver in the germany package

yunosh

12:31:06

which is well possible, from a holiday standpoint

yunosh

12:31:44

but that would make it completely impossible to correctly load translations

mrubinsk

12:31:49

exactly

yunosh

12:32:10

that sucks pretty much

mrubinsk

12:32:21

yup

mrubinsk

12:32:57

...and a diff on the two de files shows no differences

mrubinsk

12:33:10

which *might* be a good sign for us

yunosh

12:33:13

well, if he doesn&#039;t get it implement it properly, we might want to fork it, and use gettext for the translations

mrubinsk

12:34:24

I&#039;ll dump the pertinent parts of this conversation onto the ticket</description> 
   <pubDate>Wed, 03 Sep 2008 16:44:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7272#t48690</link> 
  </item> 
   
  <item> 
   <title>I get the holidays driver not to work either, but it gets a </title> 
   <description>I get the holidays driver not to work either, but it gets a different error:

[kronolith] Factory was unable to produce driver object for driver Germany in year 2008 with locale de_DE [pid 18661 on line 69 of &quot;&lt;bla&gt;/kronolith-h3-2.3/lib/Driver/holidays.php&quot;]



Holidays-Driver of course is installed. If I remove the Holdays::IsError-Clause, it works but does not log any more errors nor does it display the holidays.



From pear list:

Date_Holidays              0.20.1    alpha

Date_Holidays_Austria      0.1.2     alpha

Date_Holidays_Brazil       0.1.2     alpha

Date_Holidays_Denmark      0.1.1     alpha

Date_Holidays_Discordian   0.1.1     alpha

Date_Holidays_EnglandWales 0.1.1     alpha

Date_Holidays_Germany      0.1.1     alpha

Date_Holidays_Iceland      0.1.1     alpha

Date_Holidays_Ireland      0.1.1     alpha

Date_Holidays_Japan        0.1.0     alpha

Date_Holidays_Netherlands  0.1.1     alpha

Date_Holidays_Norway       0.1.1     alpha

Date_Holidays_PHPdotNet    0.1.2     alpha

Date_Holidays_Romania      0.1.1     alpha

Date_Holidays_Slovenia     0.1.2     alpha

Date_Holidays_Sweden       0.1.1     alpha

Date_Holidays_UNO          0.1.2     beta

Date_Holidays_USA          0.1.1     alpha

Date_Holidays_Ukraine      0.1.1     alpha

</description> 
   <pubDate>Thu, 09 Oct 2008 13:56:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7272#t49546</link> 
  </item> 
   
  <item> 
   <title>http://pear.php.net/bugs/bug.php?id=10221</title> 
   <description>http://pear.php.net/bugs/bug.php?id=10221</description> 
   <pubDate>Sun, 07 Dec 2008 14:13:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7272#t51102</link> 
  </item> 
   
  <item> 
   <title>While there may be some issues with holiday locales as repor</title> 
   <description>While there may be some issues with holiday locales as reported on the PEAR forum, there is a separate issue that results in no holidays being displayed and the same locale error being posted to the log.  In this situation, the locale error is a phantom.  



In kronolith/lib/Driver/holidays.php, on line 83 (version 2.3), the line that reads

 $holidays = $dh-&gt;getHolidayForDate($date-&gt;timestamp(), $GLOBALS[&#039;l

anguage&#039;], true);



must be changed to

 $holidays = $dh-&gt;getHolidayForDate($date-&gt;format(&#039;Y-m-d&#039;), $GLOBALS[&#039;

language&#039;], true);



Because the date format is wrong, $dh gets set to an error; which end up getting reported as a locale error, even though the real problem is something else.

</description> 
   <pubDate>Mon, 08 Dec 2008 14:03:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7272#t51153</link> 
  </item> 
   
  <item> 
   <title>&gt; must be changed to

&gt;  $holidays = $dh-&gt;getHolidayForDate(</title> 
   <description>&gt; must be changed to

&gt;  $holidays = $dh-&gt;getHolidayForDate($date-&gt;format(&#039;Y-m-d&#039;), $GLOBALS[&#039;

&gt; language&#039;], true);

&gt;

Thanks for this solution, holidays are at last displayed again. (with a fr_FR locale and Christian driver (yes it wasn&#039;t working with christian driver on my setup))</description> 
   <pubDate>Tue, 16 Dec 2008 15:38:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7272#t51296</link> 
  </item> 
   
  <item> 
   <title>&gt; In kronolith/lib/Driver/holidays.php, on line 83 (version </title> 
   <description>&gt; In kronolith/lib/Driver/holidays.php, on line 83 (version 2.3), the 

&gt; line that reads

&gt;  $holidays = $dh-&gt;getHolidayForDate($date-&gt;timestamp(), $GLOBALS[&#039;l

&gt; anguage&#039;], true);

&gt;

&gt; must be changed to

&gt;  $holidays = $dh-&gt;getHolidayForDate($date-&gt;format(&#039;Y-m-d&#039;), $GLOBALS[&#039;

&gt; language&#039;], true);



This is not true, Date_Holidays_Driver is already doing exactly that if you pass it a timestamp.



The original issue has been fixed in Date_Holiday though. </description> 
   <pubDate>Sat, 24 Jan 2009 17:53:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7272#t51934</link> 
  </item> 
   
  <item> 
   <title>New version of Date_Holidays has been released, code has bee</title> 
   <description>New version of Date_Holidays has been released, code has been merged to stable branch.</description> 
   <pubDate>Tue, 27 Jan 2009 00:45:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7272#t51976</link> 
  </item> 
   
  <item> 
   <title>When printing out Date_History::getErrors, I received the me</title> 
   <description>When printing out Date_History::getErrors, I received the message &#039;Date-string has wrong format&#039;. The solution of arnaud worked for me too. </description> 
   <pubDate>Mon, 02 Feb 2009 23:01:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7272#t52222</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Date_Holiday</title> 
   <description>Changes have been made in Git for this ticket:

Date_Holidays in CVS has a new addTranslation() method that takes care of locale/translation support. Beside that, all translations are using UTF-8 now. Not being merged until there is a new release. Bug: #7272

http://git.horde.org/diff.php/kronolith/lib/Driver/holidays.php?rt=horde-git&amp;r1=9910e685f9ac27e8205ecd78230c60ea0c58c4e8&amp;r2=ef2da06a532372d82dfa061822ebab30aaa201a0</description> 
   <pubDate>Tue, 12 Jan 2010 23:57:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7272#t57501</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
