From 04637cce8a2cc190bc2ea29d56c28494e269e046 Mon Sep 17 00:00:00 2001 From: Rtune11 <76692511+Rtune11@users.noreply.github.com> Date: Tue, 21 May 2024 15:15:54 +0200 Subject: [PATCH 01/19] Draft Errors FKEFFIEENFIENFFI --- translations/en/LC_MESSAGES/messages.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index f345973f35d..d42381e1e1d 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -34,7 +34,7 @@ msgid "Has Blanks" msgstr "Your code is incomplete. It contains blanks that you have to replace with code." msgid "Incomplete" -msgstr "Oops! You forgot a bit of code! On line {line_number}, you need to enter text behind `{incomplete_command}`." +msgstr "You forgot a bit of code! On line {line_number}, you need to enter text behind `{incomplete_command}`." msgid "Incomplete Repeat" msgstr "It looks like you forgot to use a `{command}` with the `{repeat}` command you used on line {line_number}." From 33ba95541b0be3b74abd94a537b9d31bf211ead1 Mon Sep 17 00:00:00 2001 From: Rtune11 <76692511+Rtune11@users.noreply.github.com> Date: Tue, 28 May 2024 06:36:39 +0200 Subject: [PATCH 02/19] Shortened the error messsages 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. --- translations/en/LC_MESSAGES/messages.po | 74 ++++++++++++------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index d42381e1e1d..0226ba4781f 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -19,130 +19,130 @@ msgstr "" "Generated-By: Babel 2.14.0\n" msgid "Access Before Assign" -msgstr "You tried to use the variable {name} on line {access_line_number}, but you set it on line {definition_line_number}. Set a variable before using it." +msgstr "Variable {name} used on line {access_line_number} before being set. Try setting the variable before use." msgid "Cyclic Var Definition" -msgstr "The name `{variable}` needs to be set before you can use it on the right-hand side of the `{is}` command." +msgstr "Set `{variable}` before using it on the right-hand side of the `{is}` command." msgid "Else Without If Error" -msgstr "On line {line_number} you used an `{else}` but there is no `{if}` on the line before it." +msgstr "Set an `{if}` before using an `{else}` on line {line_number}." msgid "Function Undefined" -msgstr "You tried to use the function {name}, but you didn't define it." +msgstr "Function {name} used without being defined." msgid "Has Blanks" -msgstr "Your code is incomplete. It contains blanks that you have to replace with code." +msgstr "Code is incomplete, fill in blanks with code." msgid "Incomplete" -msgstr "You forgot a bit of code! On line {line_number}, you need to enter text behind `{incomplete_command}`." +msgstr "On line {line_number}, you need to enter text behind `{incomplete_command}`." msgid "Incomplete Repeat" -msgstr "It looks like you forgot to use a `{command}` with the `{repeat}` command you used on line {line_number}." +msgstr "Missing `{command}` with `{repeat}` on line {line_number}." msgid "Invalid" msgstr "`{invalid_command}` is not a Hedy level {level} command. Did you mean `{guessed_command}`?" msgid "Invalid Argument" -msgstr "You cannot use the command `{command}` with `{invalid_argument}`. Try changing `{invalid_argument}` to {allowed_types}." +msgstr "You can't use command `{command}` with `{invalid_argument}`. Change `{invalid_argument}` to {allowed_types}." msgid "Invalid Argument Type" -msgstr "You cannot use `{command}` with `{invalid_argument}` because it is {invalid_type}. Try changing `{invalid_argument}` to {allowed_types}." +msgstr "`{command}` doesn't work with `{invalid_argument}` because it is {invalid_type}. Change `{invalid_argument}` to {allowed_types}." msgid "Invalid At Command" -msgstr "The `{command}` command may not be used from level 16 onward. You can use square brackets to use an element from a list, for example `friends[i]`, `lucky_numbers[{random}]`." +msgstr "The `{command}` command may not be used from level 16 onward. Use square brackets for lists" msgid "Invalid Space" -msgstr "Oops! You started a line with a space on line {line_number}. Spaces confuse computers, can you remove it?" +msgstr "Line {line_number} started with a space. Try removing the space" msgid "Invalid Type Combination" -msgstr "You cannot use `{invalid_argument}` and `{invalid_argument_2}` with `{command}` because one is {invalid_type} and the other is {invalid_type_2}. Try changing `{invalid_argument}` to {invalid_type_2} or `{invalid_argument_2}` to {invalid_type}." +msgstr "`{invalid_argument}` and `{invalid_argument_2}` cannot be used with `{command}` because one is {invalid_type} and the other is {invalid_type_2}. Try changing `{invalid_argument}` to {invalid_type_2} or `{invalid_argument_2}` to {invalid_type}." msgid "Lonely Echo" -msgstr "You used an `{echo}` before an `{ask}`, or an `{echo}` without an `{ask}`. Place an `{ask}` before the `{echo}`." +msgstr "Place an `{ask}` before the `{echo}` or check if there is an `{echo}` without an `{ask}`." msgid "Lonely Text" msgstr "It looks like you forgot to use a command with the text you used in line {line_number}" msgid "Missing Additional Command" -msgstr "It looks like you forgot to complete writing `{command}` on line {line_number}. Try adding `{missing_command}` to your code." +msgstr "Complete writing the `{command}` on line {line_number}. Try adding `{missing_command}` to your code." msgid "Missing Command" -msgstr "It looks like you forgot to use a command on line {line_number}." +msgstr "You missed a command on line {line_number}." msgid "Missing Inner Command" -msgstr "It looks like you forgot to use a command with the `{command}` statement you used on line {line_number}." +msgstr "It seems you missed a command for the `{command}` statement on line {line_number}." msgid "Missing Square Brackets" msgstr "It looks like you forgot to use square brackets `[]` around the list you were creating on line {line_number}." msgid "Missing Variable" -msgstr "It looks like your `{command}` is missing a variable at the start of the line." +msgstr "`{command}` is missing a variable at the start of the line." msgid "Misspelled At Command" -msgstr "It looks like you might have misspelled the `{command}` command, instead you wrote `{invalid_argument}` in line {line_number}." +msgstr "Check `{command}` spelling on line {line_number}, you wrote `{invalid_argument}` instead." msgid "No Indentation" -msgstr "You used too few spaces in line {line_number}. You used {leading_spaces} spaces, which is not enough. Start every new block with {indent_size} spaces more than the line before." +msgstr "On line {line_number}, insufficent {leading_spaces} spaces used. Increase by {indent_size} for each new block." msgid "Non Decimal Variable" -msgstr "At line {line_number}, you might have tried using a number which Hedy does not like very much! Try changing it to a decimal number like 2." +msgstr "At line {line_number}, you used a number Hedy does not support! Try a decimal number, like 2." msgid "Parse" -msgstr "The code you entered is not valid Hedy code. There is a mistake on line {location[0]}, at position {location[1]}. You typed `{character_found}`, but that is not allowed." +msgstr "The code is not valid Hedy code. There is a mistake on line {location[0]}. You typed `{character_found}`, which is not allowed." msgid "Pressit Missing Else" -msgstr "You forgot to add what happens when you press a different key, add an `{else}` to your code" +msgstr "Add an `{else}` to your code to handle other key presses" msgid "Runtime Index Error" -msgstr "You tried to access the list {name} but it is either empty or the index is not there." +msgstr "List {name} is empty or index is missing." msgid "Runtime Value Error" -msgstr "While running your program the command `{command}` received the value `{value}` which is not allowed. {tip}." +msgstr "`{command}` received disallowed value `{value}`. {tip}." msgid "Runtime Values Error" -msgstr "While running your program the command `{command}` received the values `{value}` and `{value}` which are not allowed. {tip}." +msgstr "`{command}` received disallowed values `{value}` and `{value}`. {tip}." msgid "Save Microbit code " msgstr "Save Microbit code" msgid "Too Big" -msgstr "Wow! Your program has an impressive {lines_of_code} lines of code! But we can only process {max_lines} lines in this level. Make your program smaller and try again." +msgstr "Your program has {lines_of_code} lines, but we can only process {max_lines} lines. Please shorten your program and try again." msgid "Too Few Indents" -msgstr "You used too few leading spaces in line {line_number}. You used {leading_spaces} spaces, which is too few." +msgstr "Line {line_number} has too few ({leading_spaces}) spaces." msgid "Too Many Indents" -msgstr "You used too many leading spaces in line {line_number}. You used {leading_spaces} spaces, which is too many." +msgstr "Line {line_number} has too many ({leading_spaces}) spaces." msgid "Unexpected Indentation" -msgstr "You used too many spaces in line {line_number}. You used {leading_spaces} spaces, which is too much. Start every new block with {indent_size} spaces more than the line before." +msgstr "Line {line_number} has too many ({leading_spaces}) spaces. Use {indent_size} more spaces per new block." msgid "Unquoted Assignment" -msgstr "From this level, you need to place texts to the right of the `{is}` between quotes. You forgot that for the text {text}." +msgstr "From this level, place texts to the right of the `{is}` in quotes. Try doing that for the text {text}." msgid "Unquoted Equality Check" -msgstr "If you want to check if a variable is equal to multiple words, the words should be surrounded by quotation marks!" +msgstr ""To check if a variable equals multiple words, use quotation marks for those words!"" msgid "Unquoted Text" -msgstr "Be careful. If you `{ask}` or `{print}` something, the text should start and finish with a quotation mark. You forgot that for the text {unquotedtext}." +msgstr "Text for `{ask}` or `{print}` must be in a quotation mark. Missing quotes for {unquotedtext}." msgid "Unsupported Float" -msgstr "Non-integer numbers are not supported yet but they will be in a few levels. For now change `{value}` to an integer." +msgstr "Non-integer numbers are not supported yet. Change `{value}` to an integer." msgid "Unsupported String Value" msgstr "Text values cannot contain `{invalid_value}`." msgid "Unused Variable" -msgstr "You defined the variable {variable_name} on line {line_number}, but you did not use it." +msgstr "{variable_name} defined on line {line_number}, but not used." msgid "Var Undefined" -msgstr "You tried to use the variable `{name}`, but you didn't set it. It is also possible that you were trying to use the word `{name}` but forgot quotation marks." +msgstr "Variable `{name}` used without setting it. Also consider using quotation marks for `{name}`." msgid "Wrong Level" -msgstr "That was correct Hedy code, but not at the right level. You wrote `{offending_keyword}` for level {working_level}. Tip: {tip}" +msgstr "Correct Hedy code, but not on the wrong level. `{offending_keyword}` is used on level {working_level}. Tip: {tip}" msgid "Wrong Number of Arguments" -msgstr "Your function used the wrong number of arguments. You provided {used_number} but the function {name} needs {defined_number}" +msgstr "Wrong number of arguments for function {name}. Provided {used_number}, needs {defined_number}" msgid "account_overview" msgstr "Account overview" From 22e010454798cdb3631892f458af543f6637f78d Mon Sep 17 00:00:00 2001 From: ArtV11 Date: Tue, 28 May 2024 04:38:51 +0000 Subject: [PATCH 03/19] =?UTF-8?q?=F0=9F=A4=96=20Automatically=20update=20g?= =?UTF-8?q?enerated=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- translations/en/LC_MESSAGES/messages.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index 0226ba4781f..ef1bea006c0 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -121,7 +121,7 @@ msgid "Unquoted Assignment" msgstr "From this level, place texts to the right of the `{is}` in quotes. Try doing that for the text {text}." msgid "Unquoted Equality Check" -msgstr ""To check if a variable equals multiple words, use quotation marks for those words!"" +msgstr "\"To check if a variable equals multiple words, use quotation marks for those words!\"" msgid "Unquoted Text" msgstr "Text for `{ask}` or `{print}` must be in a quotation mark. Missing quotes for {unquotedtext}." From 4e4750db38c1cd5cade1dd668881ced1e1b4e3b7 Mon Sep 17 00:00:00 2001 From: Rtune11 <76692511+Rtune11@users.noreply.github.com> Date: Sun, 16 Jun 2024 20:26:10 +0200 Subject: [PATCH 04/19] Structure and consistency --- translations/en/LC_MESSAGES/messages.po | 72 ++++++++++++------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index 75caf3e6758..da02984e48e 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -22,130 +22,130 @@ msgid "Access Before Assign" msgstr "Variable {name} used on line {access_line_number} before being set. Try setting the variable before use." msgid "Cyclic Var Definition" -msgstr "Set `{variable}` before using it on the right-hand side of the `{is}` command." +msgstr "Variable `{variable}` used on the right-hand side of the `{is}` command before being set. Try setting the variable before use." msgid "Else Without If Error" -msgstr "Set an `{if}` before using an `{else}` on line {line_number}." +msgstr "Command `{else}` used before using an `{if}` on line {line_number}. Try writing `{if}` before writing `{else}`." msgid "Function Undefined" -msgstr "Function {name} used without being defined." +msgstr "Function {name} used without being defined. Try to define the function before use." msgid "Has Blanks" -msgstr "Code is incomplete, fill in blanks with code." +msgstr "Code is incomplete. Try filling in blanks with code." msgid "Incomplete" -msgstr "On line {line_number}, you need to enter text behind `{incomplete_command}`." +msgstr "Command `{incomplete_command}`, on line {line_number} is not yet fully completed. Try to enter text behind `{incomplete_command}`." msgid "Incomplete Repeat" -msgstr "Missing `{command}` with `{repeat}` on line {line_number}." +msgstr "I am either missing `{command}` with `{repeat}` or I need an amount for the `{command}` command on line {line_number}. Try writing `{command}` with `{repeat}` or try writing a number before `{command}`." msgid "Invalid" -msgstr "`{invalid_command}` is not a Hedy level {level} command. Did you mean `{guessed_command}`?" +msgstr "Command `{invalid_command}` is not a Hedy level {level} command. Try using `{guessed_command}`?" msgid "Invalid Argument" -msgstr "You can't use command `{command}` with `{invalid_argument}`. Change `{invalid_argument}` to {allowed_types}." +msgstr "Command `{command}` is not suitable to use with `{invalid_argument}`. Try changing `{invalid_argument}` to {allowed_types}." msgid "Invalid Argument Type" -msgstr "`{command}` doesn't work with `{invalid_argument}` because it is {invalid_type}. Change `{invalid_argument}` to {allowed_types}." +msgstr "Command `{command}` doesn't work with `{invalid_argument}` because it is {invalid_type}. Try changing `{invalid_argument}` to {allowed_types}." msgid "Invalid At Command" -msgstr "The `{command}` command may not be used from level 16 onward. Use square brackets for lists" +msgstr "Command `{command}` may not be used from level 16 onward. Try using square brackets `[]` for lists." msgid "Invalid Space" -msgstr "Line {line_number} started with a space. Try removing the space" +msgstr "Line {line_number} started with a space. Try removing the space." msgid "Invalid Type Combination" msgstr "`{invalid_argument}` and `{invalid_argument_2}` cannot be used with `{command}` because one is {invalid_type} and the other is {invalid_type_2}. Try changing `{invalid_argument}` to {invalid_type_2} or `{invalid_argument_2}` to {invalid_type}." msgid "Lonely Echo" -msgstr "Place an `{ask}` before the `{echo}` or check if there is an `{echo}` without an `{ask}`." +msgstr "Command `{echo}` used before or without using an `{ask}`. Try writing `{ask}` before the `{echo}`." msgid "Lonely Text" -msgstr "It looks like you forgot to use a command with the text you used in line {line_number}" +msgstr "It looks like I am missing a command with the text that was used in line {line_number}. Try writing the appropiate command with the text." msgid "Missing Additional Command" msgstr "Complete writing the `{command}` on line {line_number}. Try adding `{missing_command}` to your code." msgid "Missing Colon Error" -msgstr "Starting at level 17, `{command}` needs a `:`. It looks like you forgot to use one at the end of line {line_number}." +msgstr "Starting at level 17, `{command}` needs a `:`. Try using one at the end of line {line_number}." msgid "Missing Command" -msgstr "You missed a command on line {line_number}." +msgstr "I need a command on line {line_number}. Try looking for the exercise section to find which command to use." msgid "Missing Inner Command" -msgstr "It seems you missed a command for the `{command}` statement on line {line_number}." +msgstr "I need a command for the `{command}` statement on line {line_number}. Try looking for the exercise section to find which command to use." msgid "Missing Square Brackets" -msgstr "It looks like you forgot to use square brackets `[]` around the list you were creating on line {line_number}." +msgstr "List you created on line {line_number} is missing square brackets `[]`. Try using square brackets `[]` for lists." msgid "Missing Variable" -msgstr "`{command}` is missing a variable at the start of the line." +msgstr "Command `{command}` is missing a variable at the start of the line. Try writing the variable before the `{command}`" msgid "Misspelled At Command" -msgstr "Check `{command}` spelling on line {line_number}, you wrote `{invalid_argument}` instead." +msgstr "`{invalid_argument}` seems to have a spelling mistake on line {line_number}. Try writing `{command}` instead." msgid "No Indentation" -msgstr "On line {line_number}, insufficent {leading_spaces} spaces used. Increase by {indent_size} for each new block." +msgstr "Insufficent {leading_spaces} spaces used on line {line_number}. Try increasing by {indent_size} for each new block." msgid "Non Decimal Variable" msgstr "At line {line_number}, you used a number Hedy does not support! Try a decimal number, like 2." msgid "Parse" -msgstr "The code is not valid Hedy code. There is a mistake on line {location[0]}. You typed `{character_found}`, which is not allowed." +msgstr "You typed `{character_found}` on line {location[0]} which is not allowed. Try looking for missing or extra characters on your code." msgid "Pressit Missing Else" -msgstr "Add an `{else}` to your code to handle other key presses" +msgstr "The code needs an `{else}`. Try writing an `{else}` to your code to handle other key presses." msgid "Runtime Index Error" -msgstr "List {name} is empty or index is missing." +msgstr "List {name} is empty or index is missing. Try to make sure List is not empty or writing a number inside the `[]` for the index" msgid "Runtime Value Error" -msgstr "`{command}` received disallowed value `{value}`. {tip}." +msgstr "Command `{command}` received disallowed value `{value}`. {tip}." msgid "Runtime Values Error" -msgstr "`{command}` received disallowed values `{value}` and `{value}`. {tip}." +msgstr "Command `{command}` received disallowed values `{value}` and `{value}`. {tip}." msgid "Save Microbit code " msgstr "Save Microbit code" msgid "Too Big" -msgstr "Your program has {lines_of_code} lines, but we can only process {max_lines} lines. Please shorten your program and try again." +msgstr "Your program has {lines_of_code} lines, but we can only process {max_lines} lines. Try to shorten your program." msgid "Too Few Indents" -msgstr "Line {line_number} has too few ({leading_spaces}) spaces." +msgstr "Line {line_number} has too few ({leading_spaces}) spaces. Try adding an extra space." msgid "Too Many Indents" -msgstr "Line {line_number} has too many ({leading_spaces}) spaces." +msgstr "Line {line_number} has too many ({leading_spaces}) spaces. Try removing the extra space." msgid "Unexpected Indentation" -msgstr "Line {line_number} has too many ({leading_spaces}) spaces. Use {indent_size} more spaces per new block." +msgstr "Line {line_number} has too many ({leading_spaces}) spaces. Try using {indent_size} more spaces per new block." msgid "Unquoted Assignment" msgstr "From this level, place texts to the right of the `{is}` in quotes. Try doing that for the text {text}." msgid "Unquoted Equality Check" -msgstr "\"To check if a variable equals multiple words, use quotation marks for those words!\"" +msgstr "To check if a variable equals multiple words we need to use quotation marks. Try using quotation marks for the words you want to check!" msgid "Unquoted Text" -msgstr "Text for `{ask}` or `{print}` must be in a quotation mark. Missing quotes for {unquotedtext}." +msgstr "Text for `{ask}` or `{print}` must be in a quotation mark. Try adding quotes for {unquotedtext}." msgid "Unsupported Float" -msgstr "Non-integer numbers are not supported yet. Change `{value}` to an integer." +msgstr "Non-integer numbers are not supported yet. Try changing `{value}` to an integer." msgid "Unsupported String Value" -msgstr "Text values cannot contain `{invalid_value}`." +msgstr "Text values cannot contain `{invalid_value}`. Try removing the written value or change its type." msgid "Unused Variable" -msgstr "{variable_name} defined on line {line_number}, but not used." +msgstr "{variable_name} defined on line {line_number}, but not used. Try using the defined variable or remove it." msgid "Var Undefined" -msgstr "Variable `{name}` used without setting it. Also consider using quotation marks for `{name}`." +msgstr "Variable `{name}` used without setting it. Try setting the variable before use or use quotation marks for `{name}`." msgid "Wrong Level" msgstr "Correct Hedy code, but not on the wrong level. `{offending_keyword}` is used on level {working_level}. Tip: {tip}" msgid "Wrong Number of Arguments" -msgstr "Wrong number of arguments for function {name}. Provided {used_number}, needs {defined_number}" +msgstr "function {name} has wrong number of arguments which is {used_number}. Try writing {defined_number} instead." msgid "account_overview" msgstr "Account overview" From b5aec3f6b6816383d71903506e0edf8d873b5947 Mon Sep 17 00:00:00 2001 From: Rtune11 <76692511+Rtune11@users.noreply.github.com> Date: Tue, 18 Jun 2024 18:51:11 +0200 Subject: [PATCH 05/19] Alternative messages Some suggestions on the first 7 error messages according to the given feedback --- translations/en/LC_MESSAGES/messages.po | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index da02984e48e..3315219d4a3 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -19,25 +19,25 @@ msgstr "" "Generated-By: Babel 2.14.0\n" msgid "Access Before Assign" -msgstr "Variable {name} used on line {access_line_number} before being set. Try setting the variable before use." +msgstr "We detected that a variable {name} is being used on line {access_line_number} before being set. Can you set the variable before its used?" msgid "Cyclic Var Definition" -msgstr "Variable `{variable}` used on the right-hand side of the `{is}` command before being set. Try setting the variable before use." +msgstr "We detected that a variable `{variable}` is being used on the right-hand side of the `{is}` command before being set. Can you set the variable before its used?" msgid "Else Without If Error" -msgstr "Command `{else}` used before using an `{if}` on line {line_number}. Try writing `{if}` before writing `{else}`." +msgstr "We noticed that there is an `{else}` being used before an `{if}` on line {line_number}. Can you try writing an `{if}` before the `{else}`?" msgid "Function Undefined" -msgstr "Function {name} used without being defined. Try to define the function before use." +msgstr "We noted a function {name} is being used without being defined. Can you define the function before use?" msgid "Has Blanks" -msgstr "Code is incomplete. Try filling in blanks with code." +msgstr "Oh no! The code seems to be incomplete. Can you fill in blanks with code?" msgid "Incomplete" -msgstr "Command `{incomplete_command}`, on line {line_number} is not yet fully completed. Try to enter text behind `{incomplete_command}`." +msgstr "Oh no! We need something written before `{incomplete_command}`, on line {line_number}. Can you try to enter text behind `{incomplete_command}`." msgid "Incomplete Repeat" -msgstr "I am either missing `{command}` with `{repeat}` or I need an amount for the `{command}` command on line {line_number}. Try writing `{command}` with `{repeat}` or try writing a number before `{command}`." +msgstr "Missing `{command}` with `{repeat}` on line {line_number}." msgid "Invalid" msgstr "Command `{invalid_command}` is not a Hedy level {level} command. Try using `{guessed_command}`?" @@ -1682,7 +1682,7 @@ msgid "suggestion_color" msgstr "Try using another color" msgid "suggestion_note" -msgstr "Use a note between C0 and B9 or a number between 1 and 70" +msgstr "Try using a note between C0 and B9 or a number between 1 and 70" msgid "suggestion_number" msgstr "Try changing the value to a number" From a0c08c70bb063fb8b61ef4924d5941a2593ab143 Mon Sep 17 00:00:00 2001 From: ArtV11 Date: Tue, 18 Jun 2024 16:54:02 +0000 Subject: [PATCH 06/19] =?UTF-8?q?=F0=9F=A4=96=20Automatically=20update=20g?= =?UTF-8?q?enerated=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- translations/en/LC_MESSAGES/messages.po | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index 3315219d4a3..38573c08121 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -213,6 +213,9 @@ msgstr "Make sure you always surround keywords with { } when you write them outs msgid "adventure_exp_classes" msgstr "Your adventure is used within the following classes" +msgid "adventure_flagged" +msgstr "" + msgid "adventure_id_invalid" msgstr "This adventure id is invalid." @@ -396,6 +399,9 @@ msgstr "Congratulations, {username}, you have reached the following results with msgid "connect_guest_teacher" msgstr "I would like to be connected with a guest teacher who can give a few lessons" +msgid "constant_variable_role" +msgstr "" + msgid "content_invalid" msgstr "This adventure is invalid." @@ -672,6 +678,9 @@ msgstr "Please send us a message with a category. We appreciate your help to imp msgid "female" msgstr "Female" +msgid "flag_adventure_prompt" +msgstr "" + msgid "float" msgstr "a number" @@ -816,6 +825,9 @@ msgstr "Incorrect Indentation" msgid "input" msgstr "input from `{ask}`" +msgid "input_variable_role" +msgstr "" + msgid "integer" msgstr "a number" @@ -939,6 +951,9 @@ msgstr "Link" msgid "list" msgstr "a list" +msgid "list_variable_role" +msgstr "" + msgid "live_dashboard" msgstr "Live Dashboard" @@ -1447,6 +1462,9 @@ msgstr "Are you sure you want to report this program?" msgid "report_success" msgstr "This program has been reported" +msgid "request_invalid" +msgstr "" + msgid "request_teacher" msgstr "Would you like to apply for a teacher's account?" @@ -1621,6 +1639,9 @@ msgstr "Start teaching" msgid "step_title" msgstr "Assignment" +msgid "stepper_variable_role" +msgstr "" + msgid "stop_code_button" msgstr "Stop program" @@ -1869,6 +1890,9 @@ msgstr "Your program is unfavourited." msgid "unique_usernames" msgstr "All usernames need to be unique." +msgid "unknown_variable_role" +msgstr "" + msgid "unlock_thresholds" msgstr "Unlock level thresholds" @@ -1944,6 +1968,9 @@ msgstr "View program" msgid "view_slides" msgstr "View slides" +msgid "walker_variable_role" +msgstr "" + msgid "welcome" msgstr "Welcome" From a41835e5d1602fcb46a1722a8fb7df6408b46804 Mon Sep 17 00:00:00 2001 From: Rtune11 <76692511+Rtune11@users.noreply.github.com> Date: Sat, 22 Jun 2024 15:21:15 +0200 Subject: [PATCH 07/19] Alternative message structure applied to each error message --- translations/en/LC_MESSAGES/messages.po | 90 ++++++++++++------------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index 4e630d3dc54..61adff9aac4 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -19,133 +19,133 @@ msgstr "" "Generated-By: Babel 2.14.0\n" msgid "Access Before Assign" -msgstr "We detected that a variable {name} is being used on line {access_line_number} before being set. Can you set the variable before its used?" +msgstr "We detected that a variable {name} is being used on line {access_line_number} before being set. Can you set the variable before it is used?" msgid "Cyclic Var Definition" -msgstr "We detected that a variable `{variable}` is being used on the right-hand side of the `{is}` command before being set. Can you set the variable before its used?" +msgstr "We detected that a variable `{variable}` is being used on the right-hand side of the `{is}` command before being set. Can you set the variable before it is used?" msgid "Else Without If Error" -msgstr "We noticed that there is an `{else}` being used before an `{if}` on line {line_number}. Can you try writing an `{if}` before the `{else}`?" +msgstr "We detected that there is an `{else}` being used before an `{if}` on line {line_number}. Can you try writing an `{if}` before the `{else}`?" msgid "Function Undefined" -msgstr "We noted a function {name} is being used without being defined. Can you define the function before use?" +msgstr "We detected that a function {name} is being used without being defined. Can you define the function before it is used?" msgid "Has Blanks" -msgstr "Oh no! The code seems to be incomplete. Can you fill in blanks with code?" +msgstr "We detected that the code seems to be incomplete. Can you fill in the blanks with code?" msgid "Incomplete" -msgstr "Oh no! We need something written before `{incomplete_command}`, on line {line_number}. Can you try to enter text behind `{incomplete_command}`." +msgstr "We detected that a part of code seems to be missing before `{incomplete_command}`, on line {line_number}. Can you try to enter text behind `{incomplete_command}`?" msgid "Incomplete Repeat" -msgstr "Missing `{command}` with `{repeat}` on line {line_number}." +msgstr "We detected that the code seems to be missing `{command}` with `{repeat}` on line {line_number}. Can you try using `{command}` with `{repeat}`?" msgid "Invalid" -msgstr "Command `{invalid_command}` is not a Hedy level {level} command. Try using `{guessed_command}`?" +msgstr "We detected that `{invalid_command}` is not a Hedy level {level} command. Can you try using `{guessed_command}`?" msgid "Invalid Argument" -msgstr "Command `{command}` is not suitable to use with `{invalid_argument}`. Try changing `{invalid_argument}` to {allowed_types}." +msgstr "We detected that `{command}` is not suitable to use with `{invalid_argument}`. Can you try changing `{invalid_argument}` to {allowed_types}?" msgid "Invalid Argument Type" -msgstr "Command `{command}` doesn't work with `{invalid_argument}` because it is {invalid_type}. Try changing `{invalid_argument}` to {allowed_types}." +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}?" msgid "Invalid At Command" -msgstr "Command `{command}` may not be used from level 16 onward. Try using square brackets `[]` for lists." +msgstr "We detected that `{command}` may not be used from level 16 onward. Can you try using square brackets `[]` for lists?" msgid "Invalid Space" -msgstr "Line {line_number} started with a space. Try removing the space." +msgstr "We detected that line {line_number} started with a space. Can you try removing the space?" msgid "Invalid Type Combination" -msgstr "`{invalid_argument}` and `{invalid_argument_2}` cannot be used with `{command}` because one is {invalid_type} and the other is {invalid_type_2}. 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}` 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}?" msgid "Lonely Echo" -msgstr "Command `{echo}` used before or without using an `{ask}`. Try writing `{ask}` before the `{echo}`." +msgstr "We detected that an `{echo}` is being used before or without using an `{ask}`. Can you try writing an `{ask}` before the `{echo}`?" msgid "Lonely Text" -msgstr "It looks like I am missing a command with the text that was used in line {line_number}. Try writing the appropiate command with the text." +msgstr "We detected that the code seems to be missing a command with the text that was used in line {line_number}. Can you try writing the appropiate command with the text" msgid "Missing Additional Command" -msgstr "Complete writing the `{command}` on line {line_number}. Try adding `{missing_command}` to your code." +msgstr "We detected that the code seems to be missing a `{command}` on line {line_number}. Can you try using `{missing_command}` in your code." msgid "Missing Colon Error" -msgstr "Starting at level 17, `{command}` needs a `:`. Try using one at the end of line {line_number}." +msgstr "We detected that `{command}` needs a `:` at the end of line {line_number}. Starting from level 17, can you start adding a `:` at the end of line with commands?" msgid "Missing Command" -msgstr "I need a command on line {line_number}. Try looking for the exercise section to find which command to use." +msgstr "We detected that the code seems to be missing a command on line {line_number}. Can you try looking at the exercise section to find which command to use?" msgid "Missing Inner Command" -msgstr "I need a command for the `{command}` statement on line {line_number}. Try looking for the exercise section to find which command to use." +msgstr "We detected that the code seems to be missing a command for the `{command}` statement on line {line_number}. Can you try looking at the exercise section to find which command to use?" msgid "Missing Square Brackets" -msgstr "List you created on line {line_number} is missing square brackets `[]`. Try using square brackets `[]` for lists." +msgstr "We detected that the list you created on line {line_number} is missing square brackets `[]`. Can you try using square brackets `[]` for lists?" msgid "Missing Variable" -msgstr "Command `{command}` is missing a variable at the start of the line. Try writing the variable before the `{command}`" +msgstr "We detected that `{command}` is missing a variable at the start of the line. Can you try writing the variable before the `{command}?`" msgid "Misspelled At Command" -msgstr "`{invalid_argument}` seems to have a spelling mistake on line {line_number}. Try writing `{command}` instead." +msgstr "We detected that `{invalid_argument}` seems to have a spelling mistake on line {line_number}. Can you try writing `{command}` instead." msgid "No Indentation" -msgstr "Insufficent {leading_spaces} spaces used on line {line_number}. Try increasing by {indent_size} for each new block." +msgstr "We detected that there seems to be an insufficent amount of {leading_spaces} spaces used on line {line_number}. Can you try increasing by {indent_size} for each new block." msgid "Non Decimal Variable" -msgstr "At line {line_number}, you used a number Hedy does not support! Try a decimal number, like 2." +msgstr "We detected that At line {line_number} you used a number Hedy does not support! Can you try a decimal number, like 2?" msgid "Parse" -msgstr "You typed `{character_found}` on line {location[0]} which is not allowed. Try looking for missing or extra characters on your code." +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?" msgid "Pressit Missing Else" -msgstr "The code needs an `{else}`. Try writing an `{else}` to your code to handle other key presses." +msgstr "We detected that the code is missing an `{else}` to handle other key presses. Can you try adding an `{else}` to your code?" msgid "Runtime Index Error" -msgstr "List {name} is empty or index is missing. Try to make sure List is not empty or writing a number inside the `[]` for the index" +msgstr "We detected that the list {name} is empty or its index is missing. Can you make sure that the list is not empty or try writing a number inside the `[]` for the missing index?" msgid "Runtime Value Error" -msgstr "Command `{command}` received disallowed value `{value}`. {tip}." +msgstr "We detected that `{command}` received disallowed value `{value}`. {tip}." msgid "Runtime Values Error" -msgstr "Command `{command}` received disallowed values `{value}` and `{value}`. {tip}." - -msgid "Save Microbit code " -msgstr "Save Microbit code" +msgstr "We detected that `{command}` received disallowed values `{value}` and `{value}`. {tip}." msgid "Too Big" -msgstr "Your program has {lines_of_code} lines, but we can only process {max_lines} lines. Try to shorten your program." +msgstr "We detected that the program has {lines_of_code} lines, but we can only process {max_lines} lines. Can you try to shorten your program?" msgid "Too Few Indents" -msgstr "Line {line_number} has too few ({leading_spaces}) spaces. Try adding an extra space." +msgstr "We detected that line {line_number} has too few ({leading_spaces}) spaces. Can you try to add an extra space?" msgid "Too Many Indents" -msgstr "Line {line_number} has too many ({leading_spaces}) spaces. Try removing the extra space." +msgstr "We detected that line {line_number} has too many ({leading_spaces}) spaces. Can you try to remove the extra space?" msgid "Unexpected Indentation" -msgstr "Line {line_number} has too many ({leading_spaces}) spaces. Try using {indent_size} more spaces per new block." +msgstr "We detected that line {line_number} has too many ({leading_spaces}) spaces. Can you try adding {indent_size} more spaces per new block?" msgid "Unquoted Assignment" -msgstr "From this level, place texts to the right of the `{is}` in quotes. Try doing that for the text {text}." +msgstr "We detected that texts to the right of the `{is}` is not written between quotes. Starting from this level, Can you start writing the texts to the right of the `{is}` between quotes (Try doing that for the text {text})?" msgid "Unquoted Equality Check" -msgstr "To check if a variable equals multiple words we need to use quotation marks. Try using quotation marks for the words you want to check!" +msgstr "We detected that the code is trying to check if a variable equals multiple words. Can you try using quotation marks for the words you want to check?" msgid "Unquoted Text" -msgstr "Text for `{ask}` or `{print}` must be in a quotation mark. Try adding quotes for {unquotedtext}." +msgstr "We detected that text for `{ask}` or `{print}` seems to be missing their quotation marks. Can you try adding quotes for {unquotedtext}?" msgid "Unsupported Float" -msgstr "Non-integer numbers are not supported yet. Try changing `{value}` to an integer." +msgstr "We detected that the code uses non-integer numbers which are not supported yet. Can you try changing `{value}` to an integer?" msgid "Unsupported String Value" -msgstr "Text values cannot contain `{invalid_value}`. Try removing the written value or change its type." +msgstr "We detected that text uses values it cannot contain `{invalid_value}`. Can you try removing the written value or change its type?" msgid "Unused Variable" -msgstr "{variable_name} defined on line {line_number}, but not used. Try using the defined variable or remove it." +msgstr "We detected that variable {variable_name} defined on line {line_number}, but not used. Can you try using the defined variable or remove it?" msgid "Var Undefined" -msgstr "Variable `{name}` used without setting it. Try setting the variable before use or use quotation marks for `{name}`." +msgstr "We detected that variable `{name}` is being used before being set. Can you set the variable before it is used or use quotation marks for `{name}`?" msgid "Wrong Level" -msgstr "Correct Hedy code, but not on the wrong level. `{offending_keyword}` is used on level {working_level}. Tip: {tip}" +msgstr "We detected that the written code is correct Hedy code, but `{offending_keyword}` is used on level {working_level}. {tip}" msgid "Wrong Number of Arguments" -msgstr "function {name} has wrong number of arguments which is {used_number}. Try writing {defined_number} instead." +msgstr "We detected that function {name} has wrong number of arguments which is {used_number}. Can you try writing {defined_number} instead?" + +msgid "Save Microbit code " +msgstr "Save Microbit code" msgid "account_overview" msgstr "Account overview" From b08ab5e0a4acb7508e426ccd27aadc5fc8ce70ec Mon Sep 17 00:00:00 2001 From: ArtV11 Date: Sat, 22 Jun 2024 13:23:24 +0000 Subject: [PATCH 08/19] =?UTF-8?q?=F0=9F=A4=96=20Automatically=20update=20g?= =?UTF-8?q?enerated=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- translations/en/LC_MESSAGES/messages.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index 61adff9aac4..276206cb117 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -105,6 +105,9 @@ msgstr "We detected that `{command}` received disallowed value `{value}`. {tip}. msgid "Runtime Values Error" msgstr "We detected that `{command}` received disallowed values `{value}` and `{value}`. {tip}." +msgid "Save Microbit code " +msgstr "Save Microbit code" + msgid "Too Big" msgstr "We detected that the program has {lines_of_code} lines, but we can only process {max_lines} lines. Can you try to shorten your program?" @@ -144,9 +147,6 @@ msgstr "We detected that the written code is correct Hedy code, but `{offending_ msgid "Wrong Number of Arguments" msgstr "We detected that function {name} has wrong number of arguments which is {used_number}. Can you try writing {defined_number} instead?" -msgid "Save Microbit code " -msgstr "Save Microbit code" - msgid "account_overview" msgstr "Account overview" From 5c9d0c7297a59830a05fca65f26b029406f15018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Pelay?= Date: Tue, 25 Jun 2024 12:22:38 -0400 Subject: [PATCH 09/19] fix empty msgstr --- translations/en/LC_MESSAGES/messages.po | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index 276206cb117..1d6304f7921 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -211,7 +211,7 @@ msgid "adventure_exp_classes" msgstr "Your adventure is used within the following classes" msgid "adventure_flagged" -msgstr "" +msgstr "The adventure was flagged successfully." msgid "adventure_id_invalid" msgstr "This adventure id is invalid." @@ -403,7 +403,7 @@ msgid "connect_guest_teacher" msgstr "I would like to be connected with a guest teacher who can give a few lessons" msgid "constant_variable_role" -msgstr "" +msgstr "constant" msgid "content_invalid" msgstr "This adventure is invalid." @@ -688,7 +688,7 @@ msgid "female" msgstr "Female" msgid "flag_adventure_prompt" -msgstr "" +msgstr "Do you want to flag this adventure so that we check its appropriateness?" msgid "float" msgstr "a number" @@ -838,7 +838,7 @@ msgid "input" msgstr "input from `{ask}`" msgid "input_variable_role" -msgstr "" +msgstr "input" msgid "integer" msgstr "a number" @@ -961,7 +961,7 @@ msgid "list" msgstr "a list" msgid "list_variable_role" -msgstr "" +msgstr "list" msgid "live_dashboard" msgstr "Live Dashboard" @@ -1475,7 +1475,7 @@ msgid "report_success" msgstr "This program has been reported" msgid "request_invalid" -msgstr "" +msgstr "Request invalid" msgid "request_teacher" msgstr "Would you like to apply for a teacher's account?" @@ -1652,7 +1652,7 @@ msgid "step_title" msgstr "Assignment" msgid "stepper_variable_role" -msgstr "" +msgstr "stepper" msgid "stop_code_button" msgstr "Stop program" @@ -1897,7 +1897,7 @@ msgid "unique_usernames" msgstr "All usernames need to be unique." msgid "unknown_variable_role" -msgstr "" +msgstr "unknown" msgid "unlock_thresholds" msgstr "Unlock level thresholds" @@ -1978,7 +1978,7 @@ msgid "waiting_for_submit" msgstr "Waiting for submit" msgid "walker_variable_role" -msgstr "" +msgstr "walker" msgid "welcome" msgstr "Welcome" From 655b9b845f506956a96c3df5684bfa30dd4fbee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Pelay?= Date: Tue, 25 Jun 2024 12:38:20 -0400 Subject: [PATCH 10/19] fix cypress tests --- tests/cypress/e2e/hedy_page/invalid_program.cy.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/cypress/e2e/hedy_page/invalid_program.cy.js b/tests/cypress/e2e/hedy_page/invalid_program.cy.js index 66fd52d8f83..2c1ca8686b8 100644 --- a/tests/cypress/e2e/hedy_page/invalid_program.cy.js +++ b/tests/cypress/e2e/hedy_page/invalid_program.cy.js @@ -4,7 +4,7 @@ describe('Error code gives correct error', () => { describe('Misspelled Keyword', () => { it('tests the print keyword', () => { const error_code = "prnt Hello world!" - const error_message = `prnt is not a Hedy level 1 command. Did you mean print?`; + const error_message = `We detected that prnt is not a Hedy level 1 command. Can you try using print?`; goToHedyPage(); cy.get('#editor > .cm-editor > .cm-scroller > .cm-content').click(); @@ -18,7 +18,7 @@ describe('Error code gives correct error', () => { it('tests the ask keyword', () => { const error_code = "print Hello world!\nak Hello world?" - const error_message = `ak is not a Hedy level 1 command. Did you mean ask?`; + const error_message = `We detected that ak is not a Hedy level 1 command. Can you try using ask?`; goToHedyPage(); cy.get('#editor > .cm-editor > .cm-scroller > .cm-content').click(); @@ -33,7 +33,7 @@ describe('Error code gives correct error', () => { it('Missing Command', () => { const error_code = "hello world" - const error_message = `You missed a command on line 1`; + const error_message = `We detected that the code seems to be missing a command on line 1. Can you try looking at the exercise section to find which command to use?`; goToHedyPage(); cy.get('#editor > .cm-editor > .cm-scroller > .cm-content').click(); @@ -47,7 +47,7 @@ describe('Error code gives correct error', () => { it('Invalid Argument Type', () => { const error_code = "forward lalala" - const error_message = `forward doesn't work with lalala because it is text. Change lalala to a number or input from ask.`; + const error_message = `We detected that forward doesn't work with lalala because it is text. Can you try changing lalala to a number or input from ask?`; goToHedyPage(); cy.get('#editor > .cm-editor > .cm-scroller > .cm-content').click(); @@ -61,7 +61,7 @@ describe('Error code gives correct error', () => { it('Invalid Argument', () => { const error_code = "turn test" - const error_message = `You can't use command turn with test. Change test to right or left.`; + const error_message = `We detected that turn is not suitable to use with test. Can you try changing test to right or left?`; goToHedyPage(); cy.get('#editor > .cm-editor > .cm-scroller > .cm-content').click(); From bd17dd10f72a009adafdba27ee8fd90c51e2cd0a Mon Sep 17 00:00:00 2001 From: Rtune11 <76692511+Rtune11@users.noreply.github.com> Date: Wed, 26 Jun 2024 13:52:01 +0200 Subject: [PATCH 11/19] Removed complex words --- translations/en/LC_MESSAGES/messages.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index 1d6304f7921..42a838020eb 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -43,7 +43,7 @@ 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 suitable to use with `{invalid_argument}`. Can you try changing `{invalid_argument}` to {allowed_types}?" +msgstr "We detected that `{command}` is not usable with `{invalid_argument}`. Can you try changing `{invalid_argument}` to {allowed_types}?" 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}?" @@ -61,7 +61,7 @@ msgid "Lonely Echo" msgstr "We detected that an `{echo}` is being used before or without using an `{ask}`. Can you try writing an `{ask}` before the `{echo}`?" msgid "Lonely Text" -msgstr "We detected that the code seems to be missing a command with the text that was used in line {line_number}. Can you try writing the appropiate command with the text" +msgstr "We detected that the code seems to be missing a command with the text that was used in line {line_number}. Can you try writing the needed command with the text" msgid "Missing Additional Command" msgstr "We detected that the code seems to be missing a `{command}` on line {line_number}. Can you try using `{missing_command}` in your code." @@ -85,10 +85,10 @@ 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." msgid "No Indentation" -msgstr "We detected that there seems to be an insufficent amount of {leading_spaces} spaces used on line {line_number}. Can you try increasing by {indent_size} for each new block." +msgstr "We detected that there seems to be too few {leading_spaces} spaces used on line {line_number}. Can you try increasing indentation by {indent_size} for each new block." msgid "Non Decimal Variable" -msgstr "We detected that At line {line_number} you used a number Hedy does not support! Can you try a decimal number, like 2?" +msgstr "We detected that at line {line_number} you used a number Hedy does not support! Can you try a decimal number, like 2?" 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?" From c9b33d77ffcc048a51a4c99b0280675761f2837e Mon Sep 17 00:00:00 2001 From: Rtune11 <76692511+Rtune11@users.noreply.github.com> Date: Wed, 26 Jun 2024 14:51:01 +0200 Subject: [PATCH 12/19] Update messages.po --- translations/en/LC_MESSAGES/messages.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index 42a838020eb..751c9b6b2b2 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -43,7 +43,7 @@ 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}` is not suitable with `{invalid_argument}`. Can you try changing `{invalid_argument}` to {allowed_types}?" 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}?" From 7f0cb83b79b181fd7f48e9e6bb8c90f9c1cf5fd5 Mon Sep 17 00:00:00 2001 From: Rtune11 <76692511+Rtune11@users.noreply.github.com> Date: Wed, 26 Jun 2024 15:31:54 +0200 Subject: [PATCH 13/19] Updated messages and the test --- tests/cypress/e2e/hedy_page/invalid_program.cy.js | 2 +- translations/en/LC_MESSAGES/messages.po | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cypress/e2e/hedy_page/invalid_program.cy.js b/tests/cypress/e2e/hedy_page/invalid_program.cy.js index 2c1ca8686b8..fd7580c3b14 100644 --- a/tests/cypress/e2e/hedy_page/invalid_program.cy.js +++ b/tests/cypress/e2e/hedy_page/invalid_program.cy.js @@ -61,7 +61,7 @@ describe('Error code gives correct error', () => { it('Invalid Argument', () => { const error_code = "turn test" - const error_message = `We detected that turn is not suitable to use with test. Can you try changing test to right or left?`; + const error_message = `We detected that turn is not usable with test. Can you try changing test to right or left?`; goToHedyPage(); cy.get('#editor > .cm-editor > .cm-scroller > .cm-content').click(); diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index 751c9b6b2b2..42a838020eb 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -43,7 +43,7 @@ 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 suitable with `{invalid_argument}`. Can you try changing `{invalid_argument}` to {allowed_types}?" +msgstr "We detected that `{command}` is not usable with `{invalid_argument}`. Can you try changing `{invalid_argument}` to {allowed_types}?" 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}?" From d74ea071a850e8b8b2026d96a154584f3fa4de7f Mon Sep 17 00:00:00 2001 From: Rtune11 <76692511+Rtune11@users.noreply.github.com> Date: Wed, 26 Jun 2024 16:05:12 +0200 Subject: [PATCH 14/19] Update invalid_program.cy.js --- tests/cypress/e2e/hedy_page/invalid_program.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cypress/e2e/hedy_page/invalid_program.cy.js b/tests/cypress/e2e/hedy_page/invalid_program.cy.js index fd7580c3b14..4a2f6eb3eea 100644 --- a/tests/cypress/e2e/hedy_page/invalid_program.cy.js +++ b/tests/cypress/e2e/hedy_page/invalid_program.cy.js @@ -61,7 +61,7 @@ describe('Error code gives correct error', () => { it('Invalid Argument', () => { const error_code = "turn test" - const error_message = `We detected that turn is not usable with test. Can you try changing test to right or left?`; + const error_message = `We detected that turn is not usable with test. Can you try changing test to right or left?`; goToHedyPage(); cy.get('#editor > .cm-editor > .cm-scroller > .cm-content').click(); From be80e05644b9fc7f55caa8e407ebd3f3a963ef54 Mon Sep 17 00:00:00 2001 From: Felienne Hermans Date: Thu, 27 Jun 2024 14:11:57 +0200 Subject: [PATCH 15/19] Update translations/en/LC_MESSAGES/messages.po MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jesús Pelay <45865185+jpelay@users.noreply.github.com> --- translations/en/LC_MESSAGES/messages.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index 42a838020eb..f24ce29372a 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -34,7 +34,7 @@ msgid "Has Blanks" msgstr "We detected that the code seems to be incomplete. Can you fill in the blanks with code?" msgid "Incomplete" -msgstr "We detected that a part of code seems to be missing before `{incomplete_command}`, on line {line_number}. Can you try to enter text behind `{incomplete_command}`?" +msgstr "We detected that part of the code seems to be missing from the `{incomplete_command}` on line {line_number}. Can you try adding the what's missing?" msgid "Incomplete Repeat" msgstr "We detected that the code seems to be missing `{command}` with `{repeat}` on line {line_number}. Can you try using `{command}` with `{repeat}`?" From 855fb57101f2353528a975e47952ed8c69972beb Mon Sep 17 00:00:00 2001 From: Felienne Hermans Date: Thu, 27 Jun 2024 14:12:03 +0200 Subject: [PATCH 16/19] Update translations/en/LC_MESSAGES/messages.po MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jesús Pelay <45865185+jpelay@users.noreply.github.com> --- translations/en/LC_MESSAGES/messages.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index f24ce29372a..979696b4b43 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -19,7 +19,7 @@ msgstr "" "Generated-By: Babel 2.14.0\n" msgid "Access Before Assign" -msgstr "We detected that a variable {name} is being used on line {access_line_number} before being set. Can you set the variable before it is used?" +msgstr "We detected that a variable `{name}` is being used on line {access_line_number} before being set. Can you set the variable before it is used?" msgid "Cyclic Var Definition" msgstr "We detected that a variable `{variable}` is being used on the right-hand side of the `{is}` command before being set. Can you set the variable before it is used?" From c7b4fa8303dc5e827623acbd289f63cb3dcd63ec Mon Sep 17 00:00:00 2001 From: Felienne Hermans Date: Thu, 27 Jun 2024 14:12:13 +0200 Subject: [PATCH 17/19] Update translations/en/LC_MESSAGES/messages.po MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jesús Pelay <45865185+jpelay@users.noreply.github.com> --- translations/en/LC_MESSAGES/messages.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index 979696b4b43..8039103e30e 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -76,7 +76,7 @@ msgid "Missing Inner Command" msgstr "We detected that the code seems to be missing a command for the `{command}` statement on line {line_number}. Can you try looking at the exercise section to find which command to use?" msgid "Missing Square Brackets" -msgstr "We detected that the list you created on line {line_number} is missing square brackets `[]`. Can you try using square brackets `[]` for lists?" +msgstr "We detected that the list you created on line {line_number} is missing square brackets `[]`. Can you try adding square brackets around `[]` the list?" msgid "Missing Variable" msgstr "We detected that `{command}` is missing a variable at the start of the line. Can you try writing the variable before the `{command}?`" From 48c747d35ad5e55eafd7ae34c5527ec018eaa05e Mon Sep 17 00:00:00 2001 From: Felienne Hermans Date: Thu, 27 Jun 2024 14:12:24 +0200 Subject: [PATCH 18/19] Update translations/en/LC_MESSAGES/messages.po MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jesús Pelay <45865185+jpelay@users.noreply.github.com> --- translations/en/LC_MESSAGES/messages.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index 8039103e30e..2f931f4e652 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -37,7 +37,7 @@ msgid "Incomplete" msgstr "We detected that part of the code seems to be missing from the `{incomplete_command}` on line {line_number}. Can you try adding the what's missing?" msgid "Incomplete Repeat" -msgstr "We detected that the code seems to be missing `{command}` with `{repeat}` on line {line_number}. Can you try using `{command}` with `{repeat}`?" +msgstr "We detected that the `{repeat}` on line {line_number} is missing a `{command}` command. Can you try adding it?" msgid "Invalid" msgstr "We detected that `{invalid_command}` is not a Hedy level {level} command. Can you try using `{guessed_command}`?" From 790a9e9684c167ecdbc15cd1cd524cf190987633 Mon Sep 17 00:00:00 2001 From: Felienne Hermans Date: Thu, 27 Jun 2024 14:12:33 +0200 Subject: [PATCH 19/19] Update translations/en/LC_MESSAGES/messages.po MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jesús Pelay <45865185+jpelay@users.noreply.github.com> --- translations/en/LC_MESSAGES/messages.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index 2f931f4e652..9f788a7e0bb 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -121,7 +121,7 @@ msgid "Unexpected Indentation" msgstr "We detected that line {line_number} has too many ({leading_spaces}) spaces. Can you try adding {indent_size} more spaces per new block?" msgid "Unquoted Assignment" -msgstr "We detected that texts to the right of the `{is}` is not written between quotes. Starting from this level, Can you start writing the texts to the right of the `{is}` between quotes (Try doing that for the text {text})?" +msgstr "We detected that the text to the right of the `{is}` is not written between quotes. This level requires you to start writing the text between quotes. Try doing that for the text {text}" msgid "Unquoted Equality Check" msgstr "We detected that the code is trying to check if a variable equals multiple words. Can you try using quotation marks for the words you want to check?"