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
merged 2 commits into from Apr 9, 2021

Conversation

WimLeflere
Copy link
Contributor

Description

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

Details

  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 michicc merged commit 5233fd2 into OpenTTD:master Apr 9, 2021
@TrueBrain TrueBrain added the backport requested This PR should be backport to current release (RC / stable) label Apr 9, 2021
@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
@LordAro LordAro added backported This PR is backported to a current release (RC / stable) and removed backport requested This PR should be backport to current release (RC / stable) labels Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported This PR is backported to a current release (RC / stable)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants