Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #8973: [win32] Use user UI language for initial language selection #8974

merged 2 commits into from Apr 9, 2021


Copy link

@WimLeflere WimLeflere commented Apr 8, 2021


Use user UI language instead of date/time locale for initial language selection [win32] (#8973)


  1. Use GetUserDefaultUILanguage() to get the user UI language
  2. Use the returned LANGID instead of LOCALE_USER_DEFAULT to get the language code used for initial language selection
src/os/windows/win32.cpp Outdated Show resolved Hide resolved
…initial language selection (OpenTTD#8973)

Convert language ID to locale ID to have the correct type for GetLocaleInfo
michicc approved these changes Apr 9, 2021
@michicc michicc merged commit 5233fd2 into OpenTTD:master Apr 9, 2021
12 checks passed
@TrueBrain TrueBrain changed the title Change: [win32] Use user UI language for initial language selection (#8973) Fix #8973: [win32] Use user UI language for initial language selection Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants