Skip to content
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

[LANGUAGE] Check translations #4867

Closed
wants to merge 49 commits into from
Closed

[LANGUAGE] Check translations #4867

wants to merge 49 commits into from

Conversation

Felienne
Copy link
Member

@Felienne Felienne commented Dec 7, 2023

More extensive testing of the translation part (which is now a lot more exposed since #4828)

Felienne and others added 30 commits December 1, 2023 16:27
@Felienne
Copy link
Member Author

Felienne commented Dec 7, 2023

(this branches of of the isvalid one, I will rebase when it is merged!)

@ghost
Copy link

ghost commented Dec 7, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@Felienne
Copy link
Member Author

Felienne commented Dec 8, 2023

Superseded by #4875

@Felienne Felienne closed this Dec 8, 2023
@Felienne Felienne deleted the check-translations branch December 9, 2023 10:50
mergify bot pushed a commit that referenced this pull request Dec 12, 2023
(This is a redo of #4867 which contained some commits now already on main)

Since #4828 translation features are more prominently visible, so I figured we need to do a bit better. This actually changes some conceptual assumptions, so let's document here:

* Programs that have a ParseError or contain Placeholders, or have indentation issues, still cannot be translated (since they can't be parsed and then we don't have a tree to work wtih)
* All other errors however create a parsetree with error nodes, and thus... can just be translated keeping the error nodes, so that is what we now do!

**How to test**

Try a program with an error production, f.e. in German, level 7:
`repeat 3 times 'Hedy macht Spaß!'`

Main shows an error:
<img width="724" alt="image" src="https://github.com/hedyorg/hedy/assets/1003685/2ec4d071-9c1e-4e10-9a9b-606024e42e37">

This PR translates the code:
<img width="693" alt="image" src="https://github.com/hedyorg/hedy/assets/1003685/4d3c4410-900c-4b98-99f2-502672e42420">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

1 participant