#15234 closed (fixed)
Year is localized with USE_THOUSAND_SEPARATOR in admin's date hierarchy under certain conditions
Reported by: | Julien Phalip | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | 1.2 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The easiest way to reproduce this bug is:
- set
USE_THOUSAND_SEPARATOR
toTrue
. - set
USE_L10N
toTrue
. - Install
contrib.comments
. - Create one single comment, or multiple comments all within the same month.
- Visit
/admin/comments/comment/
The year displayed at the top of the page is (for instance): "2,011".
The attached patch fixes the issue and also adds tests for this particular case and for other cases for future-proofing.
See #14895 for a related issue.
Attachments (1)
Change History (5)
by , 14 years ago
Attachment: | 15234_localized_year_in_date_hierarchy.diff added |
---|
comment:1 by , 14 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In [15451]: