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.3k stars 285 forks source link

📜 Teacher manual does not use {} around all keywords #4899

Closed Felienne closed 1 month ago

Felienne commented 9 months ago

This issue is part of the root cause of #4134. The manual cannot use localized keywords because a lot of the content does not use curlies around keyword.

So @MarleenGilsing (who opened #4134 haha) if you want to move this forward, we need to clean up the yamls. For example:

Here you see an example of a few codes where some do and some don't use curlies:

image (https://github.com/hedyorg/hedy/blob/f10527506b6468131e03e1db89a2f48d6bbee940/content/pages/en.yaml#L465)

So step one is to add them, and ideally also in other languages (I know that wil be a lot of work and not fun...)

And, it will not always be possible to do localize, for example, broken keywords like printt cannot be translated:

image

But I guess a teacher will understand.

Felienne commented 9 months ago

Maybe this would also be a good task for @SabinaChita? I will let the two of you sync on that!

Felienne commented 8 months ago

Hi @SabinaChita!

The relevant content for the teacher manual starts here: https://github.com/hedyorg/hedy/blob/04c9797008a569793fe56abfd76d7fda717943d2/content/pages/en.yaml#L377

So it is a matter of reading all the code lines and adding curlies where needed.

If we want to do it really nicely, we also do it in other languages, but let's start with English for now!

jpelay commented 1 month ago

This was fixed by #5167