Ticket #13961: 13961.diff

File 13961.diff, 647 bytes (added by richardb, 5 years ago)

Patch for i18n documentation.

  • docs/topics/i18n/internationalization.txt

     
    421421same :ref:`notes regarding ungettext variables <pluralization-var-notes>`
    422422apply.
    423423
     424Reverse url lookups cannot be carried out within the ``blocktrans`` and should
     425be retrieved (and stored) beforehand::
     426
     427    {% url path.to.view arg arg2 as the_url %}
     428    {% blocktrans %}
     429    This is a url: {{ the_url }}
     430    {% endblocktrans %}
     431       
    424432.. _template-translation-vars:
    425433
    426434Other tags
Back to Top