a1studmuffin / Cataclysm-DDA-Android

An unofficial Android port of Cataclysm: Dark Days Ahead.
https://play.google.com/store/apps/details?id=com.MichaelDavies.CataclysmDDA
Other
60 stars 12 forks source link

Auto-detect Android system locale on first run #16

Closed a1studmuffin closed 6 years ago

a1studmuffin commented 7 years ago

It would be nice if the game auto-detected the current system locale of the Android device on first run, and if a compatible translation was found it would use that instead of English. It should be possible with a JNI Java function in CataclysmDDA.java called from the C++ side, that returns the ISO language using Android's Locale.getDefault().toString().

Dyrewulfe commented 7 years ago

I'd take this on, but my hatred for Java is reaching critical mass lately. So, if I do, it's gonna be awhile.