translate poll options for assignments

This commit is contained in:
Oskar Hahn 2012-06-24 22:21:15 +02:00
parent 3e7e894d62
commit 3c04f6af82

View File

@ -203,9 +203,9 @@ class AssignmentPoll(BasePoll, CountInvalid, CountVotesCast, PublishPollMixin):
self.yesnoababstain = False
self.save()
if self.yesnoababstain:
return ['yes', 'no', 'abstain']
return [_('Yes', fixstr=True), _('No', fixstr=True), _('Abstain', fixstr=True)]
else:
return ['votes']
return [_('Votes', fixstr=True)]
def append_pollform_fields(self, fields):
CountInvalid.append_pollform_fields(self, fields)