-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add Simplified Chinese Support #772
Conversation
Something's going wrong with the code analysis here... |
Hi @smallg0at, and thanks for your contribution! I kicked off the CI pipelines, since PR by non-owners by default do not trigger them. Codacy checks are failing because your changes trigger some tests that were anyway failing: https://app.codacy.com/gh/EduMIPS64/edumips64/pullRequest?prid=12573761. We'll see if I can just bypass it. Let's see if the other build and test pipelines succeed. I'll be happy to assist you in getting this PR merged and releasing a new version with Simplified Chinese translation, thanks a lot for your work! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to fix one constant to make it compile. I provided suggestions, please accept them if they are correct. Thanks!
They are indeed correct. Just fixed them. |
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #772 +/- ##
============================================
+ Coverage 51.14% 52.06% +0.91%
+ Complexity 1447 1444 -3
============================================
Files 249 249
Lines 9879 10138 +259
Branches 1092 1092
============================================
+ Hits 5053 5278 +225
- Misses 4507 4541 +34
Partials 319 319
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Ok, I found the problem. We are explicitly setting the Verdana font in This is only a work-around though. We need to manage fonts more consistently in the app. I'll see if I can think about how to do it tomorrow, so I can unblock your PR, @smallg0at |
Hi @smallg0at, I just merged #776, which should fix the errors that caused you problems. Could you please rebase your changes on top of the new Then your PR should be good to go. Once your change is merged, I'll release a new EduMIPS64 version, so you can get the Simplified Chinese version from official packages. |
I'm currently working on translating the docs, so it might take some extra days to complete |
Thank you very much, @smallg0at! Appreciate your initiative and effort. Will wait for your work to be finished! |
The translation work is complete, though it still has the following problems:
|
It seems to be building correctly in Github Actions. |
Checked the GitHub Actions docs, EDIT: I was wrong. The source of this bug is due to the More info can be seen here: https://github.com/christian-draeger/read-properties |
Good news: it has been confirmed fixed. |
Seems to need a token for Webapp distribution to work https://github.com/smallg0at/edumips64/actions/runs/6237968146/job/16932897585#step:9:23 |
Thanks for the |
Found this issue, but in GBK this time. According to my findings this is probably what happened:
|
This project use |
This reverts commit 09d19af, due to docs being accidentally broken
@lupino3 Let's give it one last try to at least allow the release MSI has normal working Chinese docs. Please set your system variable |
Ok, I verified that it doesn't seem to matter how it's built, but that option needs to be set as an environment variable when the JAR is executed. Let's see if we can work around it. |
I'm pretty sure the MSI works because we already pass What we can do is to add this option to the Ubuntu package as well and add a warning at the top of the Chinese docs saying (in English) to load the JAR with According to https://stackoverflow.com/questions/361975/setting-the-default-java-character-encoding, there is no way of setting this option within the source code, as it's something used during initialization. |
Thanks for testing. I'll do the following things and then it will be ready to merge:
|
This pull request is ready for merging, as long as Codacy don't do anything funny. |
Thanks for your contribution here @smallg0at! I'll see if I can take a look at the issues you filed in the next days, and then I'll create a new release with Simplified Chinese support! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, thanks.
This pull request add Simplified Chinese as a language option.
The docs haven't been (and will not be) translated, and will redirect to the English version.Support is work in progress.Translated, but only in-app doc will be available.This pull request also introduces the following changes: