Ticket #7239: patch_django_7239_documentation.20080617.diff

File patch_django_7239_documentation.20080617.diff, 892 bytes (added by David Larlet, 16 years ago)

Documentation of the patch

  • docs/i18n.txt

     
    260260    There are {{ counter }} {{ name }} objects.
    261261    {% endblocktrans %}
    262262
     263**New in development version:** If you need to use `url template tag`_, you
     264can specify it within ``{% blocktrans %}``, as ``count`` above. Example::
     265
     266    {% blocktrans url path.to.some_view arg1,arg2,name1=value1 as myurl %}
     267    This is a <a href="{{ myurl }}" title="">link</a>.
     268    {% endblocktrans %}
     269
    263270Internally, all block and inline translations use the appropriate
    264271``ugettext`` / ``ungettext`` call.
    265272
     
    301308    (keeping the comma intact).
    302309
    303310.. _Django templates: ../templates_python/
     311.. _url template tag: ../templates/#url
    304312
    305313Working with lazy translation objects
    306314-------------------------------------
Back to Top