﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36691	Spanish translation missing for some error messages in Django 5.2.7	Carlos Sánchez López		"==== 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
}}}"	Bug	closed	Internationalization	5.2	Normal	worksforme	translation, spanish, validation, obsolete	Carlos Sánchez López	Unreviewed	0	0	0	0	0	0
