#26883: makemessages doesn't find blocktrans if it comes after a comment in
templates
--------------------------------------+--------------------
     Reporter:  dAnjou                |      Owner:  nobody
         Type:  Bug                   |     Status:  new
    Component:  Internationalization  |    Version:
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 I had a template containing a line like the following:

 {{{
 {# some comment with the word blocktrans #}{% blocktrans with foo=bar
 %}text text text
 }}}

 The blocktrans gets closed some lines below. When running makemessages now
 it didn't find this blocktrans, only after I've removed the comment it
 found it and created a msgid for it.

 Even though I experienced this in a Django 1.4.22 project I got told in
 #django on FreeNode that such a comment needs to be on a separate line
 which the docs don't say a word about:
 https://docs.djangoproject.com/ja/1.9/topics/templates/#comments

--
Ticket URL: <https://code.djangoproject.com/ticket/26883>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.d19fcaa0a1363c3108234f39c8c1b098%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to