Merge pull request #52113 from twangboy/fix_lgpo

Fix issue with default language in LGPO
This commit is contained in:
Daniel Wozniak 2019-03-27 15:53:29 -07:00 committed by GitHub
commit a743fff416
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,7 +133,7 @@ try:
# Default to `en-US` (1033)
windll = ctypes.windll.kernel32
INSTALL_LANGUAGE = locale.windows_locale.get(
windll.GetSystemDefaultUILanguage(), 1033).replace('_', '-')
windll.GetSystemDefaultUILanguage(), 'en_US').replace('_', '-')
except ImportError:
HAS_WINDOWS_MODULES = False