Opened 12 years ago
Closed 12 years ago
#19158 closed Bug (invalid)
FileField's error message about too long filename should use plural translation function
Reported by: | Alexey Boriskin | Owned by: | nobody |
---|---|---|---|
Component: | File uploads/storage | Version: | dev |
Severity: | Normal | Keywords: | i18n |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
FileField
's error message is currently defined as _('Filename is %(extra)d characters too long.')
. It contains a number, but _
in that context is ugettext_lazy
, so translators cannot provide different translations for different pluralization forms.
Change History (6)
comment:1 by , 12 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 12 years ago
comment:3 by , 12 years ago
Pull request: https://github.com/django/django/pull/462 (also includes patch for #19034)
comment:4 by , 12 years ago
Has patch: | set |
---|
comment:5 by , 12 years ago
Commit db278c3bf9177043c42a9ed8b529a5c117938460 reverted corresponding changes, so this ticket is probably no longer makes any sense
comment:6 by , 12 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Agreed.
ungettext_lazy
should be used instead.