From 0f93962ef4bc43827f878d31a2c0ae3b868276f6 Mon Sep 17 00:00:00 2001 From: Frank Richter Date: Fri, 9 Jun 2017 17:03:50 +0200 Subject: Windows: Use GetUserDefaultUILanguage() instead of GetThreadLocale(). The thread locale concerns display options (e.g. date formatting) not the display language. There are typically, but not necessarily the same, as Windows allows them to be configured separately. --- backends/platform/sdl/sdl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/platform') diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 9a5db7f110..bbd5c89f80 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -432,7 +432,7 @@ Common::String OSystem_SDL::getSystemLanguage() const { char langName[9]; char ctryName[9]; - const LCID languageIdentifier = GetThreadLocale(); + const LCID languageIdentifier = GetUserDefaultUILanguage(); if (GetLocaleInfo(languageIdentifier, LOCALE_SISO639LANGNAME, langName, sizeof(langName)) != 0 && GetLocaleInfo(languageIdentifier, LOCALE_SISO3166CTRYNAME, ctryName, sizeof(ctryName)) != 0) { -- cgit v1.2.3