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

[CONTENT] Language switcher dropdown issues #3937

Open Felienne opened 1 year ago

Felienne commented 1 year ago

"to" appears twice in the Hedy language. Once in "add to" and once in combination with range. Both can have different translations and the wrong one is shown in Dutch for the "to" in level 9 (it should be "toe" not "tot")

image

So we need to find the right one and not (as I suspect happens here) the first one.

TiBiBa commented 1 year ago

This is a quite complex bug as we use a dictionairy look-up to get the translation. I think the most straight-forward solution would be to implement a dictionairy of tuples for english, with both the english and grammatical name of the keyword.

Felienne commented 6 months ago

Maybe @Annelein could pick this up also?