#26883: makemessages doesn't find blocktrans if it comes after a comment in
templates
-------------------------------------+-------------------------------------
     Reporter:  dAnjou               |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:                       |                  Version:
  Internationalization               |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by dAnjou):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Old description:

> 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

New description:

 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 (which I know is
 EOL by now) 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#comment:1>
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/064.56b958b455ec64e2d6c4e3b94550acbd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to