mirror of
https://github.com/django/django.git
synced 2025-07-19 09:09:13 +00:00
[1.0.X] Fixed #10503 -- Clarified docs on the operation of the noop option to {% trans %}. Thanks to liangent for the report.
Merge of r10151 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10159 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
2363f60879
commit
17401448b2
@ -251,9 +251,9 @@ The ``{% trans %}`` template tag translates either a constant string
|
|||||||
<title>{% trans "This is the title." %}</title>
|
<title>{% trans "This is the title." %}</title>
|
||||||
<title>{% trans myvar %}</title>
|
<title>{% trans myvar %}</title>
|
||||||
|
|
||||||
If the ``noop`` option is present, variable lookup still takes place but the
|
If the ``noop`` option is present, variable lookup still takes place, but the
|
||||||
translation is skipped. This is useful when "stubbing out" content that will
|
original text will be returned unchanged. This is useful when "stubbing out"
|
||||||
require translation in the future::
|
content that will require translation in the future::
|
||||||
|
|
||||||
<title>{% trans "myvar" noop %}</title>
|
<title>{% trans "myvar" noop %}</title>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user