Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #11364 -- Modified the jsi18n example to use the {% url %} tag …

…rather than a placeholder. Thanks to jcassee for the suggestion.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 3c6036a5b4a5c8ef921b71c1752abcda9728afb5 1 parent 75514ab
Russell Keith-Magee authored July 15, 2009

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  docs/topics/i18n.txt
8  docs/topics/i18n.txt
@@ -959,11 +959,11 @@ Using the JavaScript translation catalog
959 959
 
960 960
 To use the catalog, just pull in the dynamically generated script like this::
961 961
 
962  
-    <script type="text/javascript" src="/path/to/jsi18n/"></script>
  962
+    <script type="text/javascript" src="{% url django.views.i18n.javascript_catalog %}"></script>
963 963
 
964  
-This is how the admin fetches the translation catalog from the server. When the
965  
-catalog is loaded, your JavaScript code can use the standard ``gettext``
966  
-interface to access it::
  964
+This uses reverse URL lookup to find the URL of the JavaScript catalog view.
  965
+When the catalog is loaded, your JavaScript code can use the standard
  966
+``gettext`` interface to access it::
967 967
 
968 968
     document.write(gettext('this is to be translated'));
969 969
 

0 notes on commit 3c6036a

Please sign in to comment.
Something went wrong with that request. Please try again.