Commit 539bebab authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #10503 -- Clarified docs on the operation of the noop option to {% trans...

Fixed #10503 -- Clarified docs on the operation of the noop option to {% trans %}. Thanks to liangent for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10151 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 2aa88901
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -251,9 +251,9 @@ The ``{% trans %}`` template tag translates either a constant string
    <title>{% trans "This is the title." %}</title>
    <title>{% trans myvar %}</title>

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
require translation in the future::
If the ``noop`` option is present, variable lookup still takes place, but the
original text will be returned unchanged. This is useful when "stubbing out"
content that will require translation in the future::

    <title>{% trans "myvar" noop %}</title>