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 Initial Version

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

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

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top