Page 1 of 1

Change name of day in calendar

Posted: Mon Apr 04, 2005 10:50 am
by pano
Hi,

i updated to 0.8 from 0.7.1 and now my calendar shows Lun Mar Mie... as name of days in top of calendar, and not L M M as it did before upgrade.

I tried to change it, but i could not... how to change it?

Thanks in advance

Re: Change name of day in calendar

Posted: Mon Apr 04, 2005 11:23 am
by garvinhicking
Due to UTF-8 problems we had to cut the function that stripped X characters of the calendar. We now output everything that the Locale setup of your system returns for the "short weekday name".

If you find that is too much, you can edit your templates plugin_calendar.tpl Use templates/default/plugin_calendar.tpl if your chosen template doesn't have one and either modify that directly or copy the file to your template directory and modify it there. The last is the recommended method.

Then change this code:

Code: Select all

{$dow.date|@formatTime:"%a":false}
to this:

Code: Select all

{$dow.date|@formatTime:"%a":false|@truncate:1}
Regards,
Garvin

Posted: Mon Apr 04, 2005 11:37 am
by pano
Thanks, Garvin.

I did it, and now my calendar shows ... for every day name.
I will try to do it myself, now that i know more or less how to do it.

Regards

Re: Change name of day in calendar

Posted: Tue Apr 05, 2005 6:07 pm
by Timbalu
garvinhicking wrote:

Code: Select all

{$dow.date|@formatTime:"%a":false|@truncate:1}
Hi Garvin

This defenitly does not work. Other suggestions?
Ian

Re: Change name of day in calendar

Posted: Wed Apr 06, 2005 11:03 am
by garvinhicking
Try this:

Code: Select all

{$dow.date|@formatTime:"%a":false|@truncate:1:'':true} 

Posted: Wed Apr 06, 2005 11:13 pm
by Timbalu
thats it!
merci vielmals ;-)