-
Notifications
You must be signed in to change notification settings - Fork 284
-
Notifications
You must be signed in to change notification settings - Fork 284
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
[UI idea] Localized keywords in the teacher manual #4134
Comments
By the way, the common mistakes content would also be very useful to all students, especially to self-learners. Moving that section to its own page with visibility to all students may not only help all learners, but also help this keyword translation process. PS: This is a duplicate of my sentence in the other issue I mentioned about this, for this mainly belongs here. |
In this PR I want to tackle the translation of keywords in the teacher manual. First, we need to allow the keywords to be translated using the curly brace system we use already in the adventures, that is simple enough to do and requires only the call to a function; after that we need to test the programs inside the yamls in the teacher manual, because when they do have curly braces, sometimes they're not correctly. And third, what do we do with the mess we already have? For example in Spanish there's a mixture of several methods: * Sometimes the keywords are directly translated ``` bebida = preguntar '¿Qué te gustaría beber?' imprimir bebida bebida = preguntar '¿Qué te gustaría beber?' imprimir bebida bebida = preguntar '¿Qué te gustaría beber?' imprimir bebida ``` * Sometimes they have curly braces: ``` superhéroes = Spiderman, Batman, Iron Man superhéroe = superhéroes {at} {random} {if} superhéroe = Batman {print} '¡SOY BATMAN!' ``` * Sometimes they have intentional errors. * Sometimes they have unintentional errors Fixes #4134 **How to test**
The teacher manual doesn't use localized keywords, only the English ones. It would be nice if the keywords could change to the preferred language setting of the teacher. I mainly mean in the common mistakes section.
I've tried to just use the { } around the keywords, but that didn't do the trick.
The text was updated successfully, but these errors were encountered: