#34218: Password mismatch on UserCreationForm not translated to the Slovenian
language
-------------------------------------+-------------------------------------
               Reporter:  Nejc       |          Owner:  nobody
  Ilenic                             |
                   Type:  Bug        |         Status:  new
              Component:             |        Version:  4.1
  Internationalization               |
               Severity:  Normal     |       Keywords:  translations
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 When using the `UserCreationForm` together with `LANGUAGE_CODE = 'sl'` the
 `password_mismatch` error is not translated.

 Reproducer:
 {{{
 #!div style="font-size: 80%"
 Code highlighting:
   {{{#!python
 from django.contrib.auth.forms import UserCreationForm
 from django.utils import translation

 form = UserCreationForm()
 form.is_valid()

 with translation.override('fr'):
     translation.gettext(form.error_messages['password_mismatch'])
 # prints 'Les deux mots de passe ne correspondent pas.'

 with translation.override('sl'):
     translation.gettext(form.error_messages['password_mismatch'])
 # prints 'The two password fields didn’t match.'
   }}}
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34218>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701852f3481c8-be5c6f13-155c-4708-a372-1a0178c9c0a3-000000%40eu-central-1.amazonses.com.

Reply via email to