summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2013-01-20 15:07:10 -0300
committerRamiro Morales <cramm0@gmail.com>2013-01-29 19:13:23 -0300
commit47ddd6a4082d55d8856b7e6beac553485dd627f7 (patch)
treec2c8e33dcab4ce8028a6e8a273ffe318057cab82 /scripts
parenteb9430fc4be16f2256f8ff4d8ee90577fb0a8f5a (diff)
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.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions