Skip to content

Commit

Permalink
[Quiz] adds help text in cloze editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Elorfin committed Jan 17, 2023
1 parent 053459c commit 45c1c7e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ const ClozeEditor = props => {
name: 'clozeText',
label: trans('text'),
required: true,
component: ClozeText
component: ClozeText,
help: trans('cloze_add_hole_help', {}, 'quiz')
}
]
}
Expand Down
1 change: 1 addition & 0 deletions src/plugin/exo/Resources/translations/quiz.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"cloze_multiple_answers_required": "Multiple answers required",
"cloze_must_contains_clozes_error": "The text must contains clozes",
"cloze_solutions_requires_positive_answer": "At least one answer must have a positive score",
"cloze_add_hole_help": "Adding a hole is only possible when the rich text editor is closed. Please close the editor with the \"-\" button to be able to add/modify a hole.",
"comment": "Comment",
"statistics_all_attempts": "All attempts (finished and in progress)",
"statistics_finished_attempts": "Only finished attempts",
Expand Down
1 change: 1 addition & 0 deletions src/plugin/exo/Resources/translations/quiz.fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"cloze_multiple_answers_required": "Plusieurs réponses sont requises",
"cloze_must_contains_clozes_error": "Le texte doit contenir des trous",
"cloze_solutions_requires_positive_answer": "Au moins une réponse doit avoir un score positif",
"cloze_add_hole_help": "L'ajout de trou est possible uniquement lorsque l'éditeur de texte riche est fermé. Veuillez fermer l'éditeur avec le bouton \"-\" pour pouvoir ajouter/modifier un trou.",
"comment": "Commentaire",
"statistics_all_attempts": "Toutes les tentatives (terminées et en cours)",
"statistics_finished_attempts": "Uniquement les tentatives terminées",
Expand Down

0 comments on commit 45c1c7e

Please sign in to comment.