Opened 13 years ago
Closed 13 years ago
#17017 closed Cleanup/optimization (fixed)
Localization for en_GB is incorrect
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Internationalization | Version: | dev |
Severity: | Normal | Keywords: | localization, british, dates |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | yes |
Description
Dates are always written with the day first in British English, so:
- DATE_FORMAT should be similar to "25 Oct 2006" (Note the lack of a ',')
- DATETIME_FORMAT should be similar to "25 Oct 2006, 2:30 pm"
- MONTHDAY_FORMAT should be "25 October"
See http://en.wikipedia.org/wiki/Calendar_date#Expressing_dates_in_spoken_English for a reference
Attachments (3)
Change History (9)
comment:1 by , 13 years ago
Easy pickings: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
by , 13 years ago
Attachment: | 17017-r16941-abbreviated-month.diff added |
---|
by , 13 years ago
Attachment: | 17017-r16941-long-month.diff added |
---|
comment:2 by , 13 years ago
Has patch: | set |
---|
Which of the two formats should be picked? "25 Oct 2006" (abbreviated) or "25 October 2006" (long)?
comment:3 by , 13 years ago
For reference, Python Babel with "en-gb" locale gives us "25 Oct 2006" for the standard date formatting (no format argument, i.e. implicit "medium") and uses "25 October 2006" in long format (format argument of "long").
comment:4 by , 13 years ago
The abbreviated form does seem more natural and is clear without being too verbose. Also, many major news and television companies in the UK use the medium form (e.g. telegraph.co.uk, guardian.co.uk, itv.com)
by , 13 years ago
Attachment: | 17017-r17372-abbreviated-month.diff added |
---|
comment:5 by , 13 years ago
Keywords: | localization british dates added |
---|---|
Type: | Uncategorized → Cleanup/optimization |
UI/UX: | set |
Version: | 1.3 → SVN |
Here is an updated patch. Nothing changed really, this is just to show that the issue has not been resolved in trunk as of r17372. If somebody could review this albeit simple patch, so that it could make its way into Django 1.4, everything would be great. Thanks!
I agree with the report, this seems like a legitimate change to make to the current localization. However, most sources I found only specify the long format, i.e. "25 October 2006" instead of "Oct". I am attaching two patches, one for the short format proposed in this ticket, the other for the long format (found for example in the given Wikipedia reference).
The long format with the full month is somewhat unwieldy but is used in other locales too, e.g. "de" (German).