-
Notifications
You must be signed in to change notification settings - Fork 289
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
Improve error message language and polishing #5635
base: main
Are you sure you want to change the base?
Conversation
FKEFFIEENFIENFFI
I tried to shorten them by using the requirements of Clarity and brevity requirements which are (aesthetic and minimalist design, recognition rather than recall). Meaning the errors should be shortened because students tend to not read the whole error so it should give out the critical info at the first part, that way a student can understand what it is going to say by not fully reading the whole sentence.
Some suggestions on the first 7 error messages according to the given feedback
Co-authored-by: Jesús Pelay <[email protected]>
Co-authored-by: Jesús Pelay <[email protected]>
Co-authored-by: Jesús Pelay <[email protected]>
Co-authored-by: Jesús Pelay <[email protected]>
Co-authored-by: Jesús Pelay <[email protected]>
…nto Artun-test-branch
|
||
msgid "Incomplete Repeat" | ||
msgstr "We detected that the `{repeat}` on line {line_number} is missing a `{command}` command. Can you try adding it?" | ||
msgstr "We detected that the `{repeat}` seems to be missing a `{command}` command, on line {line_number}. Can you try adding `{repeat}` with `{command}`?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'seems to be' part is a bit long and doen not add something perse. We could make it shorter without losing info?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made a suggestion, also moving the line number into the sentence, which I find reads nicer? If you want to move it back, feel free to do so!
|
||
msgid "Incomplete Repeat" | ||
msgstr "We detected that the `{repeat}` on line {line_number} is missing a `{command}` command. Can you try adding it?" | ||
msgstr "We detected that the `{repeat}` seems to be missing a `{command}` command, on line {line_number}. Can you try adding `{repeat}` with `{command}`?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msgstr "We detected that the `{repeat}` seems to be missing a `{command}` command, on line {line_number}. Can you try adding `{repeat}` with `{command}`?" | |
msgstr "We detected that the `{repeat}` on line {line_number} is missing a `{command}` command. Can you try adding `{repeat}` with `{command}`?" |
|
||
msgid "Invalid" | ||
msgstr "We detected that `{invalid_command}` is not a Hedy level {level} command. Can you try using `{guessed_command}`?" | ||
|
||
msgid "Invalid Argument" | ||
msgstr "We detected that `{command}` is not usable with `{invalid_argument}`. Can you try changing `{invalid_argument}` to {allowed_types}?" | ||
msgstr "We detected that `{command}` may not be used with `{invalid_argument}`. Can you try changing `{invalid_argument}` to {allowed_types}?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msgstr "We detected that `{command}` may not be used with `{invalid_argument}`. Can you try changing `{invalid_argument}` to {allowed_types}?" | |
msgstr "We detected a `{command}` that can't be used with `{invalid_argument}`. Can you try changing `{invalid_argument}` to {allowed_types}?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ArtV11!
This is surely going the right way. I made a number of suggestions
|
||
msgid "Invalid Argument Type" | ||
msgstr "We detected that `{command}` doesn't work with `{invalid_argument}` because it is {invalid_type}. Can you try changing `{invalid_argument}` to {allowed_types}?" | ||
msgstr "We detected that `{command}` may not be used with `{invalid_argument}` because it is {invalid_type}. Can you try changing `{invalid_argument}` to {allowed_types}?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The may phrasing is a bit weird. I think we should rephrase (see above)
|
||
msgid "Invalid At Command" | ||
msgstr "We detected that `{command}` may not be used from level 16 onward. Can you try using square brackets `[]` for lists?" | ||
msgstr "We detected that `{command}` may not be used from level 16 onward. Can you try adding square brackets around `[]` the list?\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the " needed?
|
||
msgid "Invalid Space" | ||
msgstr "We detected that line {line_number} started with a space. Can you try removing the space?" | ||
msgstr "We detected that line {line_number} started with a space. Can you remove the space?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we are removing try, which is think is good, but it still is there in other places.
|
||
msgid "Invalid Type Combination" | ||
msgstr "We detected that `{invalid_argument}` and `{invalid_argument_2}` cannot be used with `{command}` because one is {invalid_type} and the other is {invalid_type_2}. Can you try changing `{invalid_argument}` to {invalid_type_2} or `{invalid_argument_2}` to {invalid_type}?" | ||
msgstr "We detected that `{invalid_argument}` and `{invalid_argument_2}` may not be used with `{command}` because one is {invalid_type} and the other is {invalid_type_2}. Can you try changing `{invalid_argument}` to {invalid_type_2} or `{invalid_argument_2}` to {invalid_type}?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may does not mean what you think is means. Can't is fine as it is!
|
||
msgid "Misspelled At Command" | ||
msgstr "We detected that `{invalid_argument}` seems to have a spelling mistake on line {line_number}. Can you try writing `{command}` instead." | ||
msgstr "We detected that `{invalid_argument}` seems to have a spelling error on line {line_number}. Can you try writing `{command}` instead." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is error better than mistake? Why?
|
||
msgid "Pressit Missing Else" | ||
msgstr "We detected that the code is missing an `{else}` to handle other key presses. Can you try adding an `{else}` to your code?" | ||
msgstr "We detected that the code seems to be missing an `{else}` to handle other key presses. Can you try adding an `{else}` to your code?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is is more concise then seems to?
|
||
msgid "Parse" | ||
msgstr "We detected that `{character_found}` is being used on line {location[0]} which is not allowed. Can you try looking for a missing or an extra character on your code?" | ||
msgstr "We detected that `{character_found}` is being used on line {location[0]} which is not possible. Can you try looking for a missing or an extra character on your code?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well it is possible, because the kid did it :)
Maybe we can say: which hedy can't process or something like that?
I also like the way we are working on the error messages! |
This pull request is part of a larger project in which we are redesigning our error messages according to these guidelines.
In this PR, I have worked on the redesigning topic (v) Langauge. I removed words like cannot, illegal, invalid etc. to not blame the user and make the sentence more positive. Also worked on polishing some of the error messages according to the given feedback and tried to find anything inconsistent that got missed.
Addresses #5012