#24842: Resets settings if before defining DATABASES use ugettext or 
ugettext_lazy
-------------------------------------+-------------------------------------
     Reporter:  Lagovas              |      Owner:  nobody
         Type:  Bug                  |     Status:  new
    Component:                       |    Version:  1.6
  Internationalization               |   Keywords:  settings translations
     Severity:  Normal               |  ugettext
 Triage Stage:  Unreviewed           |  Has patch:  0
Easy pickings:  0                    |      UI/UX:  0
-------------------------------------+-------------------------------------
 Code like:
 {{{#!python
 from django.utils.translation import ugettext_lazy as _
 class SOME_SETTINGS_CONSTANT:
     A=1_(u'a')
     B=2
     CHOICES = (
         A,  _(u'a')
         B,  _(u'b')
     )
     TEXT_CHOICES = {k:v for k, v in CHOICES}
 }}}
 After that expression TEXT_CHOICES ... fetch translated value and resets
 settings like if u used ugettext in settings.py. But if place this
 expression at the end of settings then all is ok.

--
Ticket URL: <https://code.djangoproject.com/ticket/24842>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.de8645fdbaec44d387e7cf712fb35d7c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to