From d6ebbdc54120b6eb61e4f7a02e9242011d97132d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Thu, 25 Oct 2012 21:57:02 +0200 Subject: [PATCH] Fix plural-error on ballot paper, ticket #393 --- openslides/assignment/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openslides/assignment/views.py b/openslides/assignment/views.py index 0c1e1f969..1db7fa849 100644 --- a/openslides/assignment/views.py +++ b/openslides/assignment/views.py @@ -542,7 +542,8 @@ class AssignmentPollPDF(PDFView): ballot_string = _("%d. ballot") % self.poll.get_ballot() candidate_string = ungettext("%d candidate", "%d candidates", 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, available_posts_string), stylesheet['Ballot_description'])) cell.append(Spacer(0, 0.4 * cm))