[Django] #34218: Password mismatch on UserCreationForm not translated to the Slovenian language

41 views
Skip to first unread message

Django

unread,
Dec 20, 2022, 6:04:12 AM12/20/22
to django-...@googlegroups.com
#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.

Django

unread,
Dec 20, 2022, 6:40:00 AM12/20/22
to django-...@googlegroups.com
#34218: Password mismatch on UserCreationForm not translated to the Slovenian
language
-------------------------------------+-------------------------------------
Reporter: Nejc Ilenic | Owner: nobody
Type: Bug | Status: closed
Component: | Version: 4.1
Internationalization |
Severity: Normal | Resolution: invalid
Keywords: translations | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => invalid


Comment:

Thanks for the report, however, translations are handled at
[https://docs.djangoproject.com/en/dev/internals/contributing/localizing/#translations.
Transifex] and not in this tracker.

--
Ticket URL: <https://code.djangoproject.com/ticket/34218#comment:1>

Django

unread,
Dec 20, 2022, 7:15:11 AM12/20/22
to django-...@googlegroups.com
#34218: Password mismatch on UserCreationForm not translated to the Slovenian
language
-------------------------------------+-------------------------------------
Reporter: Nejc Ilenic | Owner: nobody
Type: Bug | Status: closed
Component: | Version: 4.1
Internationalization |
Severity: Normal | Resolution: invalid
Keywords: translations | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Nejc Ilenic):

Replying to [comment:1 Mariusz Felisiak]:


> Thanks for the report, however, translations are handled at
[https://docs.djangoproject.com/en/dev/internals/contributing/localizing/#translations.
Transifex] and not in this tracker.

Ah, thanks! I will report it there

--
Ticket URL: <https://code.djangoproject.com/ticket/34218#comment:2>

Reply all
Reply to author
Forward
0 new messages