You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Django 4.2 does not translate the message "Please correct the error below." when for example saving an object in the admin with required fields not filled in. Everything else is translated correctly.
The issue is that change_form.html uses {% blocktranslate %} for both the signular and plural form.
{% blocktranslate count counter=errors|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktranslate %}
The current translation in Django 4.2 looks like the following:
msgid "Please correct the error below."
msgstr "Corrigeer de fout hieronder."
msgid "Please correct the errors below."
msgstr "Corrigeer de fouten hieronder."
But when using blocktranslation it needs to look like this:
msgid "Please correct the error below."
msgid_plural "Please correct the errors below."
msgstr[0] "Por favor, corrija el siguiente error."
msgstr[1] "Por favor, corrija los siguientes errores."
msgstr[2] "Por favor, corrija los siguientes errores."
For NL this seems to have been added in Django 5.1
it can be fixed by adding the translations manually to django.po inside open_producten
msgid "Please correct the error below."
msgid_plural "Please correct the errors below."
msgstr[0] "Corrigeer de onderstaande fout."
msgstr[1] "Corrigeer de onderstaande fouten."
but they are commented out when running makemessages or removed when using --no-obsolete. Adding a dummy use also does not work because it will generate them the old way.
Stappen om te reproduceren / Steps to reproduce
No response
Verwacht gedrag / Expected behavior
No response
The text was updated successfully, but these errors were encountered:
Product versie / Product version
0.0.1
Omschrijf het probleem / Describe the bug
Django 4.2 does not translate the message "Please correct the error below." when for example saving an object in the admin with required fields not filled in. Everything else is translated correctly.
The issue is that
change_form.html
uses{% blocktranslate %}
for both the signular and plural form.{% blocktranslate count counter=errors|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktranslate %}
The current translation in Django 4.2 looks like the following:
But when using blocktranslation it needs to look like this:
For NL this seems to have been added in Django 5.1
it can be fixed by adding the translations manually to
django.po
inside open_productenbut they are commented out when running makemessages or removed when using --no-obsolete. Adding a dummy use also does not work because it will generate them the old way.
Stappen om te reproduceren / Steps to reproduce
No response
Verwacht gedrag / Expected behavior
No response
The text was updated successfully, but these errors were encountered: