Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write answer as a fraction input hint #1113

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions locales/en-GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@
"part.numberentry.answer invalid": "You did not enter a valid number.",
"part.numberentry.answer not reduced": "Your answer is not reduced to lowest terms.",
"part.numberentry.give your answer as a reduced fraction": "Reduce your answer to lowest terms.",
"part.numberentry.write your answer as a fraction": "Write your answer as a fraction.",
"part.numberentry.answer not integer": "Your answer is invalid. You must enter a whole number, not a decimal.",
"part.numberentry.answer not integer or decimal": "Your answer is invalid. You must enter an integer or a decimal.",
"part.numberentry.answer not integer or decimal or fraction": "Your answer is invalid. You must enter an integer, a decimal or a fraction.",
Expand Down
2 changes: 1 addition & 1 deletion themes/default/files/scripts/parts/numberentry-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Numbas.queueScript('display/parts/numberentry',['display-base','part-display','u
if(this.part.settings.mustBeReduced) {
return R('part.numberentry.give your answer as a reduced fraction');
} else {
return '';
return R('part.numberentry.write your answer as a fraction');
}
} else {
var precision = this.part.settings.precision;
Expand Down