Opened 5 years ago

Closed 5 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:

Description

settings.py:
LANGUAGE_CODE = 'ru-ru'

forms.py
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 - http://github.com/vorushin/validators_test

Change History (2)

comment:1 Changed 5 years ago by vorushin

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

comment:2 Changed 5 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.

Note: See TracTickets for help on using tickets.
Back to Top