[patch] make date_hierarchy Admin feature fully i18n-able
|Reported by:||Ramiro Morales||Owned by:||Adrian Holovaty|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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 http://www.djangoproject.com/documentation/templates/#now 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").