﻿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
15157	Literals marked up with _() in templates are translated at compilation time, don't change when locale is switched	Ramiro Morales	nobody	"This issue had been reported in the -dev mailing list a while back: https://groups.google.com/d/topic/django-developers/rxjxtwEMAEY/discussion 

{{{
>>> from django.utils.translation import activate, deactivate
>>> from django.template import Template, Context
>>>
>>> activate('de')
>>> t = Template(""{{ _('No') }}"")
>>> activate('nl')
>>> t.render(Context({}))
>>> 'Nein' # Should be 'Nee'
}}}

Proposed fix changes a call from `ugettext()` to `ugettext_lazy()` in handling of the `'_('`, `')'` literals during template variables resolution. Tests included also verify `trans` and `blocktrans` tags work, just in case."		closed	Internationalization	dev		fixed	activate deactivate template		Ready for checkin	1	0	0	0	0	0
