#13859: Always respect LANGUAGE_CODE
-----------------------------+----------------------------------------------
 Reporter:  tonnzor          |       Owner:  nobody    
   Status:  new              |   Milestone:  1.3       
Component:  django-admin.py  |     Version:  SVN       
 Keywords:                   |       Stage:  Unreviewed
Has_patch:  0                |  
-----------------------------+----------------------------------------------
 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.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13859>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to