Fixed #20515 - Clarified note regarding translator comments.
Thanks wim@ for the suggestion.
This commit is contained in:
parent
7882c3a673
commit
f513764e72
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue