Commit 5256a805 authored by Gary Wilson Jr's avatar Gary Wilson Jr
Browse files

Fixed #13189 -- Fixed typo in code example, thanks to gabrielhurley for patch.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@12862 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 2881da94
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -488,7 +488,7 @@ Using the JavaScript translation catalog

To use the catalog, just pull in the dynamically generated script like this::

    <script type="text/javascript" src={% url django.views.i18n.javascript_catalog %}"></script>
    <script type="text/javascript" src="{% url django.views.i18n.javascript_catalog %}"></script>

This uses reverse URL lookup to find the URL of the JavaScript catalog view.
When the catalog is loaded, your JavaScript code can use the standard