mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-29 20:25:19 +01:00
Auto-detect locale on Android (#13561)
This commit is contained in:
@@ -203,7 +203,10 @@ void init_gettext(const char *path, const std::string &configured_language,
|
||||
#endif // ifndef _WIN32
|
||||
}
|
||||
else {
|
||||
/* set current system default locale */
|
||||
#ifdef __ANDROID__
|
||||
setenv("LANG", porting::getLanguageAndroid().c_str(), 1);
|
||||
#endif
|
||||
/* set current system default locale */
|
||||
setlocale(LC_ALL, "");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user