Commit 5fab617f authored by Gary Wilson Jr's avatar Gary Wilson Jr
Browse files

[1.1.X] Fixed #13189 -- Fixed typo in code example, thanks to gabrielhurley for patch.

Backport of r12862 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12863 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 87e40f8d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -486,7 +486,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