Posted by HongPong on October 9, 2007 at 9:33pm
Jump to:
| Project: | Event |
| Version: | 5.x-2.x-dev |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Is there a template-friendly way to change the abbreviations created by the automatically available Events calendar block.
I.E. I would like to replace Sun Mon Tue Wed with S M T W T F S . Or is the Events-Views method preferred (or workable) for such alterations? Thanks!
Comments
#1
I am afraid there isn't really a theme friendly way to do this.
What you can do is to change them using the locale module. Not very elegant, though...
#2
I discovered this tip elsewhere - at least the manual hack for it. comment 11 here: http://drupal.org/node/130508
@ event.module, line 1406,
else {$weekdays = array(array('day' => 'Sun', 't' => t('Sun')), array('day' => 'Mon', 't' => t('Mon')), array('day' => 'Tue', 't' => t('Tue')), array('day' => 'Wed', 't' => t('Wed')), array('day' => 'Thu', 't' => t('Thu')), array('day' => 'Fri', 't' => t('Fri')), array('day' => 'Sat', 't' => t('Sat')));
}
change it to
$weekdays = array(array('day' => 'Sun', 't' => t('S')), array('day' => 'Mon', 't' => t('M')), array('day' => 'Tue', 't' => t('T')), array('day' => 'Wed', 't' => t('W')), array('day' => 'Thu', 't' => t('T')), array('day' => 'Fri', 't' => t('F')), array('day' => 'Sat', 't' => t('S')));Well that's the manual hack anyway..... I'll call it fixed, as far as I'm concerned. But it would be great to have a toggle in the UI.
#3
Automatically closed -- issue fixed for two weeks with no activity.