Opened 15 years ago
Closed 9 years ago
#5461 closed defect (wontfix)
first day of week should be found in locale
Reported by: | Robert Corsaro | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | DateFieldPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
first day of week in calendar should be configured based on the users locale. first_day_of_week config should be changed to default_first_day_of_week
Attachments (0)
Change History (9)
comment:1 Changed 15 years ago by
Status: | new → assigned |
---|
comment:2 Changed 14 years ago by
comment:4 Changed 14 years ago by
Replying to anonymous:
On the contrary. It should be by user
That is sort of where I was headed ... Like the timezone preference, which has a trac setting and a user preference, the locale could have the same options. If the user specifies a preference, it over-rides the Trac setting.
Such an option currently does not exist, right?
Trac dates and times are currently displayed in the format, MM/DD/YYYY HH:MM PM, so the day of week preference might be something that could be implemented along with a datetime format preference.
comment:5 Changed 14 years ago by
We have trac settings for display order of date, date separator and first day of week. http://trac-hacks.org/wiki/DateFieldPlugin
comment:6 Changed 12 years ago by
For the record: "first week day in user-preferences" is an enhancement tracked in t:#10757 (see comment 9 in that ticket).
comment:7 Changed 12 years ago by
Trac Release: | 0.11 → 0.12 |
---|
Replying to doki_pen:
first day of week in calendar should be configured based on the users locale. first_day_of_week config should be changed to default_first_day_of_week
Coming from recent work for WikiCalendarMacro I know, that one could find a user-defined setting per request by help of req.locale
(since Trac 0.12), instantiate Locale
, a Babel object, that in turn would provide the appropriate value in Locale.first_week_day
, (see source:wikicalendarmacro/trunk/wikicalendar/macros.py).
Doesn't matter, if Babel has been installed or not, I think no solution should be expected for Trac < 0.12, because it lacks even basic localization support.
comment:8 Changed 11 years ago by
Owner: | changed from Robert Corsaro to Ryan J Ollos |
---|
comment:9 Changed 9 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
The forthcoming Trac 1.2 supports time fields, so this plugin is being deprecated.
Does Trac have a configurable preference for this? I've wanted to do the same thing with a few other macros, but have not been able to find such a preference in Trac. It seems like it would be best to have a parameter for this in the [trac] section of trac.ini.