Ticket #11364: 11364-r11092.diff

File 11364-r11092.diff, 606 bytes (added by Joost Cassee, 9 years ago)
  • docs/topics/i18n.txt

    891891To use the catalog, just pull in the dynamically generated script like this::
    893     <script type="text/javascript" src="/path/to/jsi18n/"></script>
     893    <script type="text/javascript" src="{% url django.views.i18n.javascript_catalog %}"></script>
    895895This is how the admin fetches the translation catalog from the server. When the
    896896catalog is loaded, your JavaScript code can use the standard ``gettext``
Back to Top