django1/django
Ramiro Morales 47ddd6a408 Fixed #19552 -- Enhanced makemessages handling of ``{# #}``-style template comments.
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.
2013-01-29 19:13:23 -03:00
..
bin Advanced pending deprecation warnings. 2012-12-29 21:59:07 +01:00
conf Fixed #19099 -- Split broken link emails out of common middleware. 2013-01-15 17:41:45 +01:00
contrib Implemented some SpatiaLiteOperations as cached properties 2013-01-29 19:39:11 +01:00
core Fixed #19676 -- Supported 'self' foreign keys in inspectdb. 2013-01-28 10:21:07 +01:00
db Fixed typos in docs and comments 2013-01-29 10:55:55 -07:00
dispatch Fixed #16679 -- Use caching to speed up signal sending 2012-12-16 21:46:02 +02:00
forms Added HTML5 url input type 2013-01-28 22:11:00 +01:00
http Kill mx.TextTools with fire 2013-01-15 10:15:40 -08:00
middleware Fixed typos in docs and comments 2013-01-29 10:55:55 -07:00
shortcuts Fixed #19432 -- Provided better error message for get_object_or_404 2012-12-12 22:05:00 +01:00
template Merge pull request #595 from bmispelon/patch-1 2012-12-29 13:39:52 -08:00
templatetags Fixed #19088 -- Always escape % inside blocktrans tag 2012-10-23 18:49:22 +02:00
test Fixed #19546 - ensure that deprecation warnings are shown during tests 2013-01-09 08:19:22 -08:00
utils Fixed #19552 -- Enhanced makemessages handling of ``{# #}``-style template comments. 2013-01-29 19:13:23 -03:00
views Fixed #16123 -- Ensured strptime receive proper string type 2013-01-26 20:53:09 +01:00
__init__.py Advanced version identifiers for 1.6 cycle. 2012-10-26 22:01:34 -03:00