diff options
| author | Nadja Deininger <nadja@ef.gy> | 2014-10-13 15:57:01 +0100 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2014-10-13 16:52:09 +0100 |
| commit | 905a9a263bea16ce3332870ec7b3e525ff09e978 (patch) | |
| tree | 6c28811e535c082c19382ddf415524757fec04c9 | |
| parent | 59d487e7fc02980e76dad053dd989c8b4899444f (diff) | |
Fixed #23534 -- Added documentation on blocktrans tags
Mentioned that other block tags are not allowed inside
a blocktrans template tag.
Thanks to edu2004eu for reporting the issue.
| -rw-r--r-- | docs/topics/i18n/translation.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt index b59ad1e696..05ff747401 100644 --- a/docs/topics/i18n/translation.txt +++ b/docs/topics/i18n/translation.txt @@ -628,6 +628,9 @@ You can use multiple expressions inside a single ``blocktrans`` tag:: .. note:: The previous more verbose format is still supported: ``{% blocktrans with book|title as book_t and author|title as author_t %}`` +Other block tags (for example ``{% for %}`` or ``{% if %}``) are not allowed +inside a ``blocktrans`` tag. + If resolving one of the block arguments fails, blocktrans will fall back to the default language by deactivating the currently active language temporarily with the :func:`~django.utils.translation.deactivate_all` |
