1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

[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
This commit is contained in:
Gary Wilson Jr 2010-03-27 00:14:44 +00:00
parent 87e40f8daa
commit 5fab617f50

View File

@ -486,7 +486,7 @@ Using the JavaScript translation catalog
To use the catalog, just pull in the dynamically generated script like this:: 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. 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 When the catalog is loaded, your JavaScript code can use the standard