[Django] #36691: Spanish translation missing for some error messages in Django 5.2.7

4 views
Skip to first unread message

Django

unread,
Oct 27, 2025, 4:22:18 PM10/27/25
to django-...@googlegroups.com
#36691: Spanish translation missing for some error messages in Django 5.2.7
-------------------------------------+-------------------------------------
Reporter: Carlos Sánchez | Type: Bug
López | Component:
Status: new | Internationalization
Version: 5.2 | Severity: Normal
Keywords: translation, | Triage Stage:
spanish, validation, obsolete | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
==== Expected behavior ====
Email validation error should display in Spanish: "Introduzca una
dirección de correo electrónico válida."

==== Actual behavior ====
Error displays in English: "Enter a valid email address."

Note: All other Django admin messages (form errors, labels, etc.)
correctly display in Spanish.
Only this specific email validation message appears in English.

==== Configuration ====
- Django Version: 5.2.7
- Python Version: 3.13
- settings.py:
{{{#!python
...
MIDDLEWARE = [
...
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
...
]
...
LANGUAGE_CODE = 'es'
USE_I18N = True
LANGUAGES = [('es', 'Spanish')]
...
}}}

==== Investigation ====
Confirmed the English string is still used in Django's validator:
{{{
$ grep -i "email" env/lib/python3.13/site-
packages/django/core/validators.py | grep -i "message"
message = _("Enter a valid email address.")
}}}

Checked Spanish locale file - translation exists but is marked as obsolete
(`#~`):
{{{
$ grep -i "correo" env/lib/python3.13/site-
packages/django/conf/locale/es/LC_MESSAGES/django.po
#~ msgstr "Introduzca una dirección de correo electrónico válida."
#~ msgstr "Correo electrónico"
#~ msgstr "Introduzca una dirección de correo electrónico válida."
#~ msgstr "Correo electrónico"
}}}

Confirmed no active (non-obsolete) translation exists:
{{{
$ grep -i "valid.*email" env/lib/python3.13/site-
packages/django/conf/locale/es/LC_MESSAGES/django.po | grep -v "^#"
# no results returned
}}}

Verified the compiled .mo file doesn't contain the translation:
{{{
$ msgunfmt env/lib/python3.13/site-
packages/django/conf/locale/es/LC_MESSAGES/django.mo | grep -i "email"
# no results returned
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36691>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Oct 27, 2025, 4:22:59 PM10/27/25
to django-...@googlegroups.com
#36691: Spanish translation missing for some error messages in Django 5.2.7
-------------------------------------+-------------------------------------
Reporter: Carlos Sánchez | Owner: (none)
López |
Type: Bug | Status: new
Component: | Version: 5.2
Internationalization |
Severity: Normal | Resolution:
Keywords: translation, | Triage Stage:
spanish, validation, obsolete | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlos Sánchez López):

* Attachment "Screenshot From 2025-10-27 14-22-31.png" added.

Django

unread,
Oct 27, 2025, 4:23:59 PM10/27/25
to django-...@googlegroups.com
#36691: Spanish translation missing for some error messages in Django 5.2.7
-------------------------------------+-------------------------------------
Reporter: Carlos Sánchez | Owner: (none)
López |
Type: Bug | Status: new
Component: | Version: 5.2
Internationalization |
Severity: Normal | Resolution:
Keywords: translation, | Triage Stage:
spanish, validation, obsolete | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlos Sánchez López):

* Attachment "Screenshot From 2025-10-27 14-22-31.2.png" added.

Screenshot of the email validation error at the bottom. Notice everything
else from the admin site is correctly showing up in Spanish.

Django

unread,
Oct 27, 2025, 4:24:37 PM10/27/25
to django-...@googlegroups.com
#36691: Spanish translation missing for some error messages in Django 5.2.7
-------------------------------------+-------------------------------------
Reporter: Carlos Sánchez | Owner: (none)
López |
Type: Bug | Status: new
Component: | Version: 5.2
Internationalization |
Severity: Normal | Resolution:
Keywords: translation, | Triage Stage:
spanish, validation, obsolete | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlos Sánchez López):

* Attachment "Screenshot From 2025-10-27 14-22-31.png" removed.

Django

unread,
Oct 27, 2025, 9:18:33 PM10/27/25
to django-...@googlegroups.com
#36691: Spanish translation missing for some error messages in Django 5.2.7
-------------------------------------+-------------------------------------
Reporter: Carlos Sánchez | Owner: (none)
López |
Type: Bug | Status: new
Component: | Version: 5.2
Internationalization |
Severity: Normal | Resolution:
Keywords: translation, | Triage Stage:
spanish, validation, obsolete | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

* Attachment "image-20251027-221825.png" added.

Django

unread,
Oct 27, 2025, 9:19:53 PM10/27/25
to django-...@googlegroups.com
#36691: Spanish translation missing for some error messages in Django 5.2.7
-------------------------------------+-------------------------------------
Reporter: Carlos Sánchez | Owner: (none)
López |
Type: Bug | Status: new
Component: | Version: 5.2
Internationalization |
Severity: Normal | Resolution:
Keywords: translation, | Triage Stage:
spanish, validation, obsolete | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Natalia Bidart):

Hola Carlos, thank you for your ticket. I have double checked using a
clean Django 5.2.7 project, and also using Django from the `main` branch.
In both cases, the error string is shown as translated. See the screenshot
attached.

I'll close as `worksforme`, this seems to be an issue with your
environment. Before reopening, please make sure that you can provide
reproducible steps. You can also seek further help using any of the user
support channels from [https://docs.djangoproject.com/en/dev/faq/help
/#how-do-i-do-x-why-doesn-t-y-work-where-can-i-go-to-get-help this link].

[[Image(ticket:36691:image-20251027-221825.png)]]
--
Ticket URL: <https://code.djangoproject.com/ticket/36691#comment:1>

Django

unread,
Oct 27, 2025, 9:20:14 PM10/27/25
to django-...@googlegroups.com
#36691: Spanish translation missing for some error messages in Django 5.2.7
-------------------------------------+-------------------------------------
Reporter: Carlos Sánchez | Owner: (none)
López |
Type: Bug | Status: closed
Component: | Version: 5.2
Internationalization | Resolution:
Severity: Normal | worksforme
Keywords: translation, | Triage Stage:
spanish, validation, obsolete | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

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

--
Ticket URL: <https://code.djangoproject.com/ticket/36691#comment:2>
Reply all
Reply to author
Forward
0 new messages