﻿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
13859	respect LANGUAGE_CODE in management command instead of overriding it with 'en-us'	Artem Skoretskiy		"For now settings.LANGUAGE_CODE is not used at all for all tasks except `runserver` and `runfcgi`

That makes a real issue when we use some custom commands that uses i18n - for example, `celery`.

Investigating that I found that code in `django/core/management/base.py`:202 (ommited useless details):
{{{
        # Switch to English, because django-admin.py creates database content
        # like permissions, and those shouldn't contain any translations.
                from django.utils import translation
                translation.activate('en-us')
}}}

First of all - this assumption is invalid - '''nothing broken''' when I created tables (including permissions) after disabling this code.

Then - even DB creation must respect selected locale. If I have a project in Russian and generate database having Russian locale - it should really use it.

'''After I disabled it - everything works fine'''

I can provide patch if needed."		closed	Core (Management commands)	dev		duplicate		tonn81@…	Design decision needed	0	0	0	0	0	0
