﻿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
25295	override context manager does not return to deactivated state	David Nelson Adamec	nobody	"From a shell, I'm able to do the following:

{{{#!python
In [1]: from django.utils import translation

In [2]: translation.get_language()

In [3]: with translation.override('fr'):
   ...:     pass
   ...:

In [4]: translation.get_language()
Out[4]: 'fr'
}}}

override usually reverts to the previous language upon leaving the context manager, so this behavior seems unexpected. 

This is new in Django 1.8: before, get_language() returned the default language, so the default language would be activated after override finished. Now get_language() returns None when there is no active catalog, so override attempts to activate None, which has no effect."	Uncategorized	new	Internationalization	1.8	Normal				Unreviewed	0	0	0	0	0	0
