#26136: JavaScript translation catalog docs contain deprecated code
--------------------------------------+--------------------
Reporter: sephii | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.9
Severity: Normal | Keywords: i18n
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+--------------------
From the 1.9 docs
(https://docs.djangoproject.com/en/1.9/topics/i18n/translation/#using-the-
javascript-translation-catalog):
{{{#!jinja
<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.
--
Ticket URL: <https://code.djangoproject.com/ticket/26136>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/049.4958ac2d7e21eb844ef94d0f5e943521%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.