hedyorg / hedy

Hedy is a gradual programming language to teach children programming. Gradual languages use different language levels, where each level adds new concepts and syntactic complexity. At the end of the Hedy level sequence, kids master a subset of syntactically valid Python.
https://www.hedy.org
European Union Public License 1.2
1.26k stars 282 forks source link

🪲 levels->3->1->mp_choice_options->[3]->option chinese version not work #5566

Open ZoomQuiet opened 1 month ago

ZoomQuiet commented 1 month ago

Describe the bug can not pass quiz

Paste the Hedy code & level base translation: levels->3->1->mp_choice_options->[3]->option

Add a screenshot (optional) 50831716798521_ pic

What machine and browser you were using (optional) If the issue concerns things in the website, let us know:

hasan-sh commented 1 month ago

@ZoomQuiet could you do a hard refresh and retry? Because i couldn't reproduce the error! Or make a screencast to follow the exact steps you took when you encountered this error?

ZoomQuiet commented 1 month ago

@ZoomQuiet could you do a hard refresh and retry? Because i couldn't reproduce the error! Or make a screencast to follow the exact steps you took when you encountered this error?

such as this video:

https://github.com/hedyorg/hedy/assets/22494/993cc1b3-5197-4423-93c4-e7bc04b8bff7

there 3 class:

and after i switch back english interface, same error;

so, i can not know, what happened:

hasan-sh commented 1 month ago

@ZoomQuiet thanks for making this screencast:)) this is a different error than the one you described in this issue. If you have any more info about the original issue (i.e., the quiz!) please feel free to share so that I can find out what the problem is!

such as this video:

For this video, I'll ask @jpelay to take a look as well and hopefully we will find out what the problem is!

jpelay commented 1 month ago

@ZoomQuiet could you do a hard refresh and retry? Because i couldn't reproduce the error! Or make a screencast to follow the exact steps you took when you encountered this error?

such as this video:

240529hedy-class-bug.mp4 there 3 class:

and after i switch back english interface, same error;

so, i can not know, what happened:

  • why the default functions can not usage now?

Hi, @ZoomQuiet! Thanks for reporting the error! Right now we are focusing on phasing out that page, to offer a more useful view of statistics to teachers, we are expecting it to be ready within the next few days.

boryanagoncharenko commented 5 days ago

About the quiz error, I noticed that something is off with the quotes. When the translated string contains two consecutive backticks, they seem to be displayed, which is incorrect. For example, if I set levels->3->1->mp_choice_options->[3]->option to `{at}``{random}` (without having the space between the keywords), the quiz displays at``random instead of at random.

In the case of Chinese, this should produce the output 在``随机. However, the screenshot shows 在''随机. So why are there single quotes instead of backticks? @ZoomQuiet do you have a clue?

ZoomQuiet commented 5 days ago

About the quiz error, I noticed that something is off with the quotes. When the translated string contains two consecutive backticks, they seem to be displayed, which is incorrect. For example, if I set levels->3->1->mp_choice_options->[3]->option to `{at}{random}`` (without having the space between the keywords), the quiz displays `` at``random `` instead ofat random`.

In the case of Chinese, this should produce the output 随机 `. However, the screenshot shows在''随机`. So why are there single quotes instead of backticks? @ZoomQuiet do you have a clue?

i need check https://hosted.weblate.org/projects/hedy/-/zh_Hans/ some item, i guess is error in translation words....

boryanagoncharenko commented 5 days ago

About the quiz error, I noticed that something is off with the quotes. When the translated string contains two consecutive backticks, they seem to be displayed, which is incorrect. For example, if I set levels->3->1->mp_choice_options->[3]->option to `{at}{random}`` (without having the space between the keywords), the quiz displays atrandom instead of at random`. In the case of Chinese, this should produce the output ` 在`随机. However, the screenshot shows 在''随机. So why are there single quotes instead of backticks? @ZoomQuiet do you have a clue?

i need check https://hosted.weblate.org/projects/hedy/-/zh_Hans/ some item, i guess is error in translation words....

I replaced all occurrences of double backticks including the one for simplified Chinese. It should solve the appearance of the quiz question. However, I doubt that it will address the Bad request No such question error.

Are you still able to replicate the bad request error on main or on hedy.org? If so, are you logged in and do you have a preferred keyword language set? Thanks in advance for your input!

boryanagoncharenko commented 5 days ago

Reopening the issue until we have a conclusion about the Bad request error