Skip to content

Commit

Permalink
chore(apps/frontend-manage): update tooltips for numerical and free t…
Browse files Browse the repository at this point in the history
…ext question options
  • Loading branch information
sjschlapbach committed May 23, 2024
1 parent b485a2a commit 2d787c3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,13 @@ function QuestionEditModal({
root: 'my-auto mr-2 text-lg font-bold',
tooltip: 'text-sm font-normal w-80 md:w-1/2',
}}
tooltip={t('manage.questionForms.FTOptionsTooltip')}
tooltip={
values.type === ElementType.Numerical
? t(
'manage.questionForms.NUMERICALOptionsTooltip'
)
: t('manage.questionForms.FTOptionsTooltip')
}
showTooltipSymbol={true}
/>
</div>
Expand Down
4 changes: 3 additions & 1 deletion packages/i18n/messages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,9 @@ Da die KlickerUZH-App noch nicht im iOS-App-Store verfügbar ist, folgen Sie die
answerOptionsTooltip:
'Erfassen Sie hier die möglichen Antworten, welche von den Studierenden für die Frage ausgewählt werden können.',
FTOptionsTooltip:
'Nehmen Sie hier optionale Einstellungen für die offene Frage vor. Bitte beachten Sie, dass der Antwortbereich von numerischen Fragen auf das Intervall [-1e30,1e30] begrenzt ist. Sollten Sie grössere Zahlen benötigen, verwenden Sie bitte eine Freitext-Frage.',
'Nehmen Sie hier optionale Einstellungen für die Freitext-Frage vor. Bitte beachten Sie, dass die Antwort auf Freitext-Fragen nicht auf Gross- und Kleinschreibung geprüft wird.',
NUMERICALOptionsTooltip:
'Nehmen Sie hier optionale Einstellungen für die numerische Frage vor. Bitte beachten Sie, dass der Antwortbereich von numerischen Fragen auf das Intervall [-1e30,1e30] begrenzt ist. Sollten Sie grössere Zahlen benötigen, verwenden Sie bitte eine Freitext-Frage.',

answerOptionPlaceholder: 'Antwortmöglichkeit hier eingeben…',
LISTDisplay: 'Anzeige als Liste',
Expand Down
4 changes: 3 additions & 1 deletion packages/i18n/messages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,9 @@ Since the KlickerUZH app is not yet available on the iOS App Store, follow these
'Enter the possible answers that students can select for the question here.',
answerOptionPlaceholder: 'Enter your answer option here...',
FTOptionsTooltip:
'Enter optional settings for the open question here. Note that the range of numbers for numerical questions is limited to the interval [-1e30,1e30] for technical reasons. Should you require to use larger numbers, please use a free text question instead.',
'Enter optional settings for the open question here. Note that the answer to open questions is graded without checking for upper and lower case.',
NUMERICALOptionsTooltip:
'Enter optional settings for the numerical question here. Please note that the range of numbers for numerical questions is limited to the interval [-1e30,1e30] for technical reasons. Should you require to use larger numbers, please use a free text question instead.',

LISTDisplay: 'Display as list',
GRIDDisplay: 'Display as grid',
Expand Down

0 comments on commit 2d787c3

Please sign in to comment.