Fixed #20515 - Clarified note regarding translator comments.

Thanks wim@ for the suggestion.
This commit is contained in:
Tim Graham 2013-05-31 07:43:05 -04:00
parent 7882c3a673
commit f513764e72
1 changed files with 3 additions and 4 deletions

View File

@ -452,10 +452,9 @@ they are located after a ``{#`` / ``#}``-type comment on the same line. E.g.:
Location of translator comments
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Validation of the placement of :ref:`translator-comments-in-templates`
specified using ``{#`` / ``#}`` is now stricter. All translator comments not
located at the end of their respective lines in a template are ignored and a
warning is generated by :djadmin:`makemessages` when it finds them. E.g.:
:ref:`translator-comments-in-templates` specified using ``{#`` / ``#}`` need to
be at the end of a line. If they are not, the comments are ignored and
:djadmin:`makemessages` will generate a warning. For example:
.. code-block:: html+django