summaryrefslogtreecommitdiff
path: root/addons/website_event_track_quiz
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2020-10-29 15:51:43 +0000
committerMartin Trigaux <mat@odoo.com>2020-10-29 18:07:49 +0000
commit62a18bdb372e234107fd2099a2df5f9e3a442c96 (patch)
tree2ba5e12c2f347e6de12407a804f1439edd90ed97 /addons/website_event_track_quiz
parent8b67d263ab04bbb2e6ccd6c4095029eadcc36138 (diff)
[FIX] *: correct typos and bad English
Courtesy of translators Reexport .pot of modified modules closes odoo/odoo#61002 Related: odoo/enterprise#14485 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/website_event_track_quiz')
-rw-r--r--addons/website_event_track_quiz/models/event_quiz.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website_event_track_quiz/models/event_quiz.py b/addons/website_event_track_quiz/models/event_quiz.py
index c9eafa5b7d5..8ba65f703e7 100644
--- a/addons/website_event_track_quiz/models/event_quiz.py
+++ b/addons/website_event_track_quiz/models/event_quiz.py
@@ -45,9 +45,9 @@ class QuizQuestion(models.Model):
def _check_answers_integrity(self):
for question in self:
if len(question.answer_ids.filtered(lambda answer: answer.awarded_points)) != 1:
- raise ValidationError(_('Question "%s" must have 1 correct answer') % question.name)
+ raise ValidationError(_('Question "%s" must have 1 correct answer', question.name))
if len(question.answer_ids) < 2:
- raise ValidationError(_('Question "%s" must have 1 correct answer and at least 1 invalid answer') % question.name)
+ raise ValidationError(_('Question "%s" must have 1 correct answer and at least 1 incorrect answer', question.name))
class QuizAnswer(models.Model):