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
Change name of day in calendar
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Change name of day in calendar
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:
to this:
Regards,
Garvin
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}
Code: Select all
{$dow.date|@formatTime:"%a":false|@truncate:1}
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/
# 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
Re: Change name of day in calendar
Hi Garvingarvinhicking wrote:Code: Select all
{$dow.date|@formatTime:"%a":false|@truncate:1}
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
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/
# 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/