﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25297	makemessages doesn't detect the context of {% trans %} strings with a filter	Alexandre Pocquet	nobody	"The following:
{{{#!html+django
{% trans 'inactive'|upper context 'plural' %}
}}}

Is (incorrectly) extracted as:
{{{#!po
msgid ""inactive""
msgstr """"
}}}

Whereas the following:
{{{#!html+django
{% trans 'inactive' context 'plural' %}
}}}

Is (correctly) extracted as:
{{{#!po
msgctxt ""plural""
msgid ""inactive""
msgstr """"
}}}

Translating the former has no effect on the template rendering, as it lacks the context.
Translating the latter makes the translation to be correctly rendered, both without the filter, and with the filter if added '''after''' {{{makemessages}}} was called.

I think this is a bug with the {{{makemessages}}} command.

Environnement:
Linux Mint Debian Edition
CPython 3.4.2
Django 1.8.3
GNU gettext 0.19.3

Command used:
{{{./manage.py makemessages -v 1 -l fr}}}
{{{./manage.py compilemessages}}}

"	Bug	closed	Internationalization	1.8	Normal	fixed			Ready for checkin	1	0	0	1	0	0
