Opened 14 years ago

Closed 14 years ago

#13272 closed (invalid)

MaxLengthValidator message is not being translated in form.errors

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

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 by vorushin, 14 years ago

Cc: roman.vorushin@… added

comment:2 by Russell Keith-Magee, 14 years ago

Resolution: invalid
Status: newclosed

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