|
From: Jared <xe...@si...> - 2002-10-03 22:51:58
|
Mike, where does your date_translation function get it's translations=20
from? If you check CVS, you can see in the date_functions.php file what=20=
I did with localizeDate(). If your solution is more generic and will=20
translate more, I would be happy to use it. However, I chose to go with=20=
what I was sure would work as we have it now. Plus, mine is flexible if=20=
needed. If yours covers all cases already, I would love to use it.
Yes, we got $week_start_day working entirely.
I am working on remote file viewing right now. This will have to be=20
made a configurable option as not everyone will want their web server=20
to display just any one's calendar.
-Jared
On Thursday, October 3, 2002, at 05:40 PM, Chad wrote:
> 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=20
> Apple's Radar. Week date start should be working as well, even in=20
> month view. Having full language and theme support are the main=20
> features of the next rev so these are important. Check out CVS and=20
> check in your 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=20
>> release on a Mac OS X machine, you will see there is no setlocale()=20=
>> function working. The function I wrote date_translate() works on all=20=
>> systems: Linux where setlocale() works, as on Mac OS systems where=20
>> setlocale() 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=20
>>>>> it, supress errors since people behind firewalls may have issues,=20=
>>>>> then 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(); }
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Phpicalendar-devel mailing list
> Php...@li...
> https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel
|