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

Auto-detect language from filename #10

Merged
merged 3 commits into from
Aug 22, 2022

Conversation

richirisu
Copy link
Contributor

As requested, the implementation for the auto-detection of the translation patch from the filename. It is using regular expressions to get the job done. #9 (comment)

First of all, the label of the language combo box was changed to "translation patch" in order to make it more clear that not the UI language is being selected but the translation of the ROM. Also, the list of translations was updated to show more details.

For the UI, one may select the newly added "auto" option from the language combo box. Selecting any of the other options forces to manually select that language. This is useful in cases where the auto-detection fails.

The docs have also been updated which explain the order in which the language is being detected in more detail.

Tests have been added for the most common filenames.

Lastly, the save button is being disabled now in case loading a save file fails.

@rrooij rrooij merged commit 24e781c into rrooij:main Aug 22, 2022
@rrooij
Copy link
Owner

rrooij commented Aug 22, 2022

Awesome! Great work again. Thanks so much for your contributions.

This is exactly how I envisioned the auto-detection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants