[Scummvm-git-logs] scummvm master -> 3ead988a295d54439be1cb964cdcd71d868fdde6
bluegr
noreply at scummvm.org
Tue Dec 10 22:32:22 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
3ead988a29 SDL: Fix order of components when detecting the language with SDL_GetPreferredLocales()
Commit: 3ead988a295d54439be1cb964cdcd71d868fdde6
https://github.com/scummvm/scummvm/commit/3ead988a295d54439be1cb964cdcd71d868fdde6
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2024-12-11T00:32:19+02:00
Commit Message:
SDL: Fix order of components when detecting the language with SDL_GetPreferredLocales()
Changed paths:
backends/platform/sdl/sdl.cpp
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp
index 8acdce51f85..3fc1f20b305 100644
--- a/backends/platform/sdl/sdl.cpp
+++ b/backends/platform/sdl/sdl.cpp
@@ -661,7 +661,7 @@ Common::String OSystem_SDL::getSystemLanguage() const {
SDL_Locale *locales = SDL_GetPreferredLocales();
if (locales) {
if (locales[0].language != NULL) {
- Common::String str = Common::String::format("%s_%s", locales[0].country, locales[0].language);
+ Common::String str = Common::String::format("%s_%s", locales[0].language, locales[0].country);
SDL_free(locales);
return str;
}
More information about the Scummvm-git-logs
mailing list