Fix plural-error on ballot paper, ticket #393
This commit is contained in:
parent
1849e14dbf
commit
d6ebbdc541
@ -542,7 +542,8 @@ class AssignmentPollPDF(PDFView):
|
|||||||
ballot_string = _("%d. ballot") % self.poll.get_ballot()
|
ballot_string = _("%d. ballot") % self.poll.get_ballot()
|
||||||
candidate_string = ungettext("%d candidate", "%d candidates",
|
candidate_string = ungettext("%d candidate", "%d candidates",
|
||||||
len(options)) % len(options)
|
len(options)) % len(options)
|
||||||
available_posts_string = _("%d available posts") % self.poll.assignment.posts
|
available_posts_string = ungettext("%d available post", "%d available posts",
|
||||||
|
self.poll.assignment.posts) % self.poll.assignment.posts
|
||||||
cell.append(Paragraph("%s, %s, %s" % (ballot_string, candidate_string,
|
cell.append(Paragraph("%s, %s, %s" % (ballot_string, candidate_string,
|
||||||
available_posts_string), stylesheet['Ballot_description']))
|
available_posts_string), stylesheet['Ballot_description']))
|
||||||
cell.append(Spacer(0, 0.4 * cm))
|
cell.append(Spacer(0, 0.4 * cm))
|
||||||
|
Loading…
Reference in New Issue
Block a user