|
From: Chad <ch...@ch...> - 2002-10-03 22:41:56
|
I think Jared wrote a date function last night and has it in CVS, we=20
decided to not go with setlocale since it is a submitted bug in Apple's=20=
Radar. Week date start should be working as well, even in month view.=20
Having full language and theme support are the main features of the=20
next rev so these are important. Check out CVS and check in your=20
translations. :-)
-C
On Thursday, October 3, 2002, at 03:35 PM, Michel wrote:
> Hi Chad,
>
> As I told you, retrieving distant calendars is not very difficult:=20
> iWebCal is the proof. I can develop this for you. (see below my Sept=20=
> 26 email)
>
> But this is not a priority. For the moment the language pref is an=20
> issue. Just make a test yourself with your latest PHPiCalendar release=20=
> on a Mac OS X machine, you will see there is no setlocale() function=20=
> working. The function I wrote date_translate() works on all systems:=20=
> Linux where setlocale() works, as on Mac OS systems where setlocale()=20=
> does not work.
>
> // This function is to enable the date translation
> // on Mac OS X when setlocale() doesn't work
> // because gettext is not installed by default
>
> function date_translate($format,$date=3D"") {
> global $date_translate; if(!$date){$date=3Dtime();}
> $date =3D strftime($format,$date);
> foreach($date_translate as $k =3D> $v) {
> $date =3D preg_replace("'".$k."'s",$v,$date);}
> return $date; }
>
> Also the $week_start_day function does not work. Making this calendar=20=
> unuseful in Europe. Do you want me to do it ? This is really an issue=20=
> but very easy to correct.
>
> Best regards, Michael.
> http://www.LaShampoo.com
>
>
>
>> From: Michel <mi...@la...>
>> Date: Sept 26, 2002 20:50:33 Europe/Paris
>> To: Chad <ch...@ch...>
>> Object: R=E9p : Subscribe
>>
>>> Chad wrote :
>>>
>>>> in the list icals then you will have to check that you can read it,=20=
>>>> supress errors since people behind firewalls may have issues, then=20=
>>>> list in the array for chosen calendars
>>>
>>> Since the calendars are available trough http:// that should work=20
>>> very well. On my website (www.tetu.com) the list on the right is=20
>>> retrieved on every connection on a distant website with the=20
>>> readfile() function. Very very easy.
>>> # Retrieve the distant Calendar file...
>>> $distant_cal =3D file("http://server/Calendar.ics");
>>> # And check if the file is a good calendar file :
>>> if($distant_cal[0] !=3D "BEGIN:VCALENDAR\n"){ BadCalendar(); }
|