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.
* 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>
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>