Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#2063 closed enhancement (fixed)

[patch] make date_hierarchy Admin feature fully i18n-able

Reported by: ramiro Owned by: adrian
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


This patch modifies the code that generates the date hierarchy of the automatic Django admin interface by fully using Django i18n services instead of datetime.stftime().

This patch depends on the patch attached to #2062 and provides an alternate implementation to the
one proposed in #1749. The difference is that this one provides for full internationalization by using format specifiers documented by and so not hard-coding the order of the fields (e.g. in Spanish a month+day date spec like "January 1" reads "1 Enero").


Attachments (1)

date_hierarchy_i18n.diff (2.6 KB) - added by ramiro 10 years ago.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by ramiro

comment:1 Changed 10 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [3056]) Fixed #2063 -- Made admin date_hierarchy i18n-friendly by using the new YEAR_MONTH_FORMAT and MONTH_DAY_FORMAT technical message IDs. Thanks, ramiro

comment:2 Changed 9 years ago by torokilopz

  • Cc london added
  • Keywords MESSAGE added


thanks for really good website!


comment:3 Changed 9 years ago by Simon G. <dev@…>

  • Cc london removed
  • Keywords MESSAGE removed

Reverted twiddling. Go play elsewhere.

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