Opened 9 years ago

Closed 9 years ago

#24401 closed Uncategorized (duplicate)

ungettext_lazy only accepts int as number param

Reported by: Matt Owned by: nobody
Component: Internationalization Version: 1.6
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The behavior of ungettext_lazy was changed in 1.6 to allow passing in the name of a format variable instead of the value to be used for determining if the singular or plural string should be used. In 1.5 this function accepted a long as the number parameter but in 1.6 it errors out with the confusing error message "Your dictionary lacks key '12'. Please provide it, because it is required to determine whether string is singular or plural."

Change History (2)

comment:1 by Matt, 9 years ago

Has patch: set

Pull request here with test: https://github.com/django/django/pull/4200

comment:2 by Simon Charette, 9 years ago

Resolution: duplicate
Status: newclosed

Hi pegler,

This is duplicate of #22820 which has been fixed in the upcoming 1.8 release.

Per our backport policy the 1.6.x series will only receive security fixes and bug fixes for data loss issues.

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