Ticket #13961: 13961-addon.diff

File 13961-addon.diff, 705 bytes (added by Horst Gutmann, 14 years ago)

Minor addons to Richard's patch

  • docs/topics/i18n/internationalization.txt

    diff --git a/docs/topics/i18n/internationalization.txt b/docs/topics/i18n/internationalization.txt
    index 7ae8d18..35dad75 100644
    a b construct is internally converted to an ``ungettext`` call. This means the  
    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