Opened 12 years ago

Closed 12 years ago

#17017 closed Cleanup/optimization (fixed)

Localization for en_GB is incorrect

Reported by: mcginness.s@… 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)

17017-r16941-abbreviated-month.diff (1016 bytes ) - added by Sebastian Goll 12 years ago.
17017-r16941-long-month.diff (1.0 KB ) - added by Sebastian Goll 12 years ago.
17017-r17372-abbreviated-month.diff (1018 bytes ) - added by Sebastian Goll 12 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 by Sebastian Goll, 12 years ago

Easy pickings: set
Triage Stage: UnreviewedAccepted

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).

by Sebastian Goll, 12 years ago

by Sebastian Goll, 12 years ago

comment:2 by Sebastian Goll, 12 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 Sebastian Goll, 12 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 anonymous, 12 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 Sebastian Goll, 12 years ago

comment:5 by Sebastian Goll, 12 years ago

Keywords: localization british dates added
Type: UncategorizedCleanup/optimization
UI/UX: set
Version: 1.3SVN

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!

comment:6 by Jannis Leidel, 12 years ago

Resolution: fixed
Status: newclosed

In [17444]:

Fixed #17017 -- Updated British English date formats to follow common standards. Thanks, sebastian.

Note: See TracTickets for help on using tickets.
Back to Top