#8702: words not i18n-ized in admin interface when use '--noreload' option.
--------------------------------------+-------------------------------------
          Reporter:  hank             |         Owner:  nobody    
            Status:  reopened         |     Milestone:            
         Component:  Admin interface  |       Version:  SVN       
        Resolution:                   |      Keywords:  admin i18n
             Stage:  Unreviewed       |     Has_patch:  0         
        Needs_docs:  0                |   Needs_tests:  0         
Needs_better_patch:  0                |  
--------------------------------------+-------------------------------------
Comment (by kmtracey):

 It's because of the `translation.activate('en-us')` done in
 django/core/management/base.py's execute().  A way to fix it is to put:

 {{{
             from django.conf import settings
             from django.utils import translation
             translation.activate(settings.LANGUAGE_CODE)
 }}}

 before the call to `inner_run()` on the else leg of `if use_reloader` in
 django/core/management/commands/runserver.py's handle() method.  Sort of
 an edge case, but it does explain to me why setting LANGUAGE_CODE in
 settings.py never worked when running under a debugger that needed
 --noreload.

 (A better way might be to only do the English activation when really
 necessary, but I don't know what set of things to check for to determine
 'really necessary'.)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8702#comment:5>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to