#26136 closed Cleanup/optimization (fixed)
JavaScript translation catalog docs contain deprecated code
Reported by: | Sylvain Fankhauser | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.9 |
Severity: | Normal | Keywords: | i18n |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
From the 1.9 docs (https://docs.djangoproject.com/en/1.9/topics/i18n/translation/#using-the-javascript-translation-catalog):
<script type="text/javascript" src="{% url 'django.views.i18n.javascript_catalog' %}"></script>
However the ability to reverse using a Python path has been deprecated in Django 1.8. Also this doesn't make sense since in the previous example multiple catalogs are defined, so this wouldn't work anyway for multiple catalogs.
I guess the example could simply be updated to use a named route.
Change History (4)
comment:1 by , 9 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In 31817dd: