Opened 8 years ago

Last modified 8 years ago

#26883 closed Bug

makemessages doesn't find blocktrans if it comes after a comment in templates — at Version 1

Reported by: Max Ludwig Owned by: nobody
Component: Internationalization Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Max Ludwig)

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

Change History (1)

comment:1 by Max Ludwig, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top