Opened 4 years ago

Closed 4 years ago

#13272 closed (invalid)

MaxLengthValidator message is not being translated in form.errors

Reported by: vorushin Owned by: nobody
Component: Forms Version: master
Severity: Keywords:
Cc: roman.vorushin@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

class Form(forms.Form):

short_description = forms.CharField(max_length=10, widget=forms.Textarea)

When I leave field short_description empty, I get message in Russian: "Обязательное поле". When I enter more than 10 chars in this field, I get message in English: "Ensure this value has at most 10 characters (it has 12)."

Full test project to reproduce this bug is here -

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by vorushin

  • Cc roman.vorushin@… added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 4 years ago by russellm

  • Resolution set to invalid
  • Status changed from new to closed

This is a case of the translation file being out of date. We need someone to update the translation; policy here is not to open tickets to report a broken translation, but to open a ticket once you have an updated translation file.

If you want to help out with translation, please see the docs on how to contribute translations.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.