Change name of day in calendar

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
pano

Change name of day in calendar

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Change name of day in calendar

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
pano

Post 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
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Change name of day in calendar

Post by Timbalu »

garvinhicking wrote:

Code: Select all

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

This defenitly does not work. Other suggestions?
Ian
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Change name of day in calendar

Post by garvinhicking »

Try this:

Code: Select all

{$dow.date|@formatTime:"%a":false|@truncate:1:'':true} 
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Post by Timbalu »

thats it!
merci vielmals ;-)
Post Reply