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 locale on Android #13561
Conversation
- Remove unused putMessageBoxResult function - Rename unused javaStringToUTF8 function to readJavaString and use it where possible - Improve the error messages
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.
Please add a mapping for language code changes (as described in the comments).
android/app/src/main/java/net/minetest/minetest/GameActivity.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Gregor Parzefall <gregor.parzefall@posteo.de>
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 have tested it and it works. The code clean up looks good, too.
I tested it on Android 6.0.1 (Samsung Galaxy J7) and 13 (Samsung Galaxy A72) with Indonesian (id
) as the system language.
android/app/src/main/java/net/minetest/minetest/GameActivity.java
Outdated
Show resolved
Hide resolved
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.
LGTM
Minetest formspec can cutoff many translations, but this may help people who dont know English |
This PR makes Minetest for Android use the system language if the user hasn't set a custom language in the Minetest settings. I also did some code cleanup.
Related PR: #11435
To do
This PR is a Ready for Review.
How to test
Open Minetest for Android on your phone, verify that it uses your system language if you haven't set a custom language in the Minetest settings.