#17858: ugettext_lazy problem in models and modelsforms
-------------------------------------+-------------------------------------
     Reporter:  javier@…             |                    Owner:  Javier
         Type:  Bug                  |                   Status:  closed
    Component:  Translations         |                  Version:  1.3
     Severity:  Normal               |               Resolution:
     Keywords:  ugettext modelform   |  worksforme
  forms                              |             Triage Stage:
    Has patch:  0                    |  Unreviewed
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by ramiro):

 * status:  new => closed
 * needs_better_patch:   => 0
 * resolution:   => worksforme
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Thsi works for me.

 You need to  make sure the Python process that is rendering your form has
 the language you expect the form labels displayed in activated. This can
 be achieved in different ways:

  * https://docs.djangoproject.com/en/dev/topics/i18n/translation/#how-
 django-discovers-language-preference
  * Calling django.utils.translation.activate() as described in
 https://docs.djangoproject.com/en/dev/topics/i18n/translation/#using-
 translations-outside-views-and-templates

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17858#comment:1>
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 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