Plural forms of error messages #8089
Unanswered
miedzinski
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some error messages should be using plural forms:
CharField
:min_length
,max_length
DecimalField
:max_digits
,max_decimal_places
,max_whole_places
FileField
:max_length
ListField
:min_length
,max_length
ModelField
:max_length
Right now these translations are broken in languages other than English, e.g.
CharField
'smin_length
given length 3 translates toUpewnij się, że pole ma conajmniej 3 znaków
in Polish instead ofUpewnij się, że pole ma conajmniej 3 znaki
.This can be solved using
ngettext
.Beta Was this translation helpful? Give feedback.
All reactions