﻿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
11118	BaseCommand doesn't restore translation	rvdrijst	nobody	"The implementation of !BaseCommand.execute() sets the translation to 'en-us' for the duration of the command execution, but doesn't restore the original translation. This is not a problem when execution stops when the command is done (command line use)

However in tests, the syncdb command is called programmatically, running the tests with the 'en-us' translation activated even when this is not the same as settings.LANGUAGE_CODE.

The attached patch fixes this by restoring the language that was activated when the command started.

Note: this ticket is related to #10078, but whereas that ticket is about documentation, this ticket fixes a bug."	Bug	closed	Core (Management commands)	dev	Normal	fixed	basecommand execute syncdb translation testing	rvdrijst@…	Ready for checkin	1	0	0	0	0	0
