diff options
| author | Tim Graham <timograham@gmail.com> | 2012-08-19 18:46:46 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2012-08-19 18:46:46 -0400 |
| commit | 514a0013cd38fc586e3b4d8582da2f65c1cdd50c (patch) | |
| tree | e2cd11864de5babca3631c8b409a7fb5735ee81b /docs | |
| parent | 4db38cbfe1087a51cd5d3d4fed9c7fcb952424d7 (diff) | |
Fixed #17180 - Emphasized the need to load the i18n template tag in each template that uses translations. Thanks stefan.freyr for the suggestion and buddylindsey for the draft patch.
Diffstat (limited to 'docs')
| -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 79bd1a6a6a..9bd53da2b9 100644 --- a/docs/topics/i18n/translation.txt +++ b/docs/topics/i18n/translation.txt @@ -463,6 +463,9 @@ Internationalization: in template code Translations in :doc:`Django templates </topics/templates>` uses two template tags and a slightly different syntax than in Python code. To give your template access to these tags, put ``{% load i18n %}`` toward the top of your template. +As with all template tags, this tag needs to be loaded in all templates which +use translations, even those templates that extend from other templates which +have already loaded the ``i18n`` tag. .. templatetag:: trans |
