Description
The MonthCalendar macro always generates calendars that start on Monday. This is the wrong custom for most in North America.
In MoinMoin/macro/MonthCalendar.py, there is this code:
# The following line sets the calendar to have either Sunday or Monday as # the first day of the week. Only SUNDAY or MONDAY (case sensitive) are # valid here. All other values will not make good calendars. # If set to Sunday, the calendar is displayed at "March 2003" vs. "2003 / 3" also. # XXX change here ----------------vvvvvv calendar.setfirstweekday(calendar.MONDAY)
So somebody has noted the problem, but fixing it requires source editing. All other configuration settings are just that -- configuration settings. It is inconsistent that the date format is a config setting but the calendar start day isn't. Ideally, in fact, it would be a parameter to the macro rather than a global config setting, since different people on the same wiki may prefer different start dates.
Asking users to patch each new version of Moin for a configuration change is not very friendly.
Steps to reproduce
Use the MonthCalendar macro.
- Observe that weeks always start on Monday.
Example
See HelpOnMacros/MonthCalendar.
Component selection
macro MonthCalendar
Details
MoinMoin Version |
1.8.5 |
OS and Version |
|
Python Version |
|
Server Setup |
|
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
English |
Workaround
Users have to hack MonthCalendar.py
Discussion
In moin2, this can be done by accessing locale data of user (babel), but MonthCalendar is not in moin2 (it needs major changes / major work).
Plan
- Priority:
- Assigned to:
- Status: