#35306: Localisation of dates very confusing - why can't it be turned off
anymore?
-------------------------------------+-------------------------------------
Reporter: Richard | Owner: nobody
Type: Bug | Status: new
Component: | Version: 5.0
Internationalization |
Severity: Normal | Resolution:
Keywords: LANGUAGE_CODE, | Triage Stage:
DATE_FORMAT | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):
* cc: Claude Paroz (added)
Comment:
(Adding Claude as cc.) Claude, do you have any pointers on how to make use
of the `DATE_FORMAT` and related settings? Specifically, how to have them
honored in templates.
As an example, I tried using the `date` template tag, and the settings
seem ignored, having the format from LANGUAGE_CODE taking precedence. I
know this is mentioned in the docs:
> Note that the corresponding locale-dictated format has higher precedence
and will be applied instead.
But since LANGUAGE_CODE can not be unset (afaik), it seems unclear when
the `DATE_FORMAT` and related settings are used (outside of the
`formats.py` approach). Just for clarity's sake, I don't think there is a
bug in Django, I think we could add some clarifications to the docs to be
more explicit about this particular usage.
(Another data point: even using `{% localize off %}` does not honor the
settings values. This feels unexpected to me...)
--
Ticket URL: <https://code.djangoproject.com/ticket/35306#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018e5212598a-9766ba8c-39d5-4da1-a451-82a96f39b9ce-000000%40eu-central-1.amazonses.com.