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.
This commit is contained in:
parent
4db38cbfe1
commit
514a0013cd
|
@ -463,6 +463,9 @@ Internationalization: in template code
|
||||||
Translations in :doc:`Django templates </topics/templates>` uses two template
|
Translations in :doc:`Django templates </topics/templates>` uses two template
|
||||||
tags and a slightly different syntax than in Python code. To give your 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.
|
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
|
.. templatetag:: trans
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue