﻿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
15280	Django validation error messages are always shown in English when running unit tests	Denilson Figueiredo de Sá	nobody	"How to reproduce:

* Start a new project and set LANGUAGE_CODE to something other than 'en-us'. For instance, let's put 'pt-br'.
* Create a view that renders a bounded form.
* Pass invalid data to that form, so that the form will output some (django built-in) validation error messages.
* Look at the error message at the browser. Notice it is in Portuguese (or whatever language you have set).
* Now write a unit test that checks if your view actually shows that error message.
* BOO! The test fails! When running unit tests, the django error messages are shown in English, ignoring the LANGUAGE_CODE setting.

I'm attaching a tarball with a minimalistic project showing this bug.

In my opinion, django should behave the same whenever running as server or running the unit tests. Thus, I believe this behavior is a bug.

Tested against Django 1.2.4"		closed	Uncategorized	1.2		wontfix			Unreviewed	0	0	0	0	0	0
