mirror of
https://github.com/django/django.git
synced 2024-12-27 03:25:58 +00:00
47ddd6a408
They are simply ignored now. This allows for a more correct behavior when they are placed before translatable constructs on the same line. Previously, the latter were wrongly ignored because the former were preserved when converting template code to the internal Python-syntax form later fed to xgettext but Python has no ``/* ... */``-style comments. Also, special comments directed to translators are now only taken in account when they are located at the end of a line. e.g.:: {# Translators: ignored #}{% trans "Literal A" %}{# Translators: valid, associated with "Literal B" below #} {% trans "Literal B" %} Behavior of ``{% comment %}...{% endcomment %}``tags remains unchanged. Thanks juneih at redpill-linpro dot com for the report and Claude for his work on the issue. |
||
---|---|---|
.. | ||
ignore_dir | ||
locale | ||
templates | ||
__init__.py | ||
code.sample | ||
compilation.py | ||
extraction.py | ||
javascript.js | ||
tests.py |