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

Correctly ask for language selection at first start #2434

Merged
merged 3 commits into from
Oct 1, 2024
Merged

Conversation

CoBC
Copy link
Contributor

@CoBC CoBC commented Aug 16, 2024

migrateSettings is call before language selection, if TT has never been started, migrateSettings define a lanauge, so SETTINGS_DISPLAY_LANGUAGE is always set and the language selection isn't trigger.
So, I changed the check to ask for language selection if it is the first startup and not only if SETTINGS_DISPLAY_LANGUAGE isn't present, and I add a check to ensure migrateSettings define a new language only if SETTINGS_DISPLAY_LANGUAGE is previously set.

@CoBC CoBC added this to the TeamTalk v5.17.1 milestone Aug 16, 2024
@CoBC CoBC requested a review from bear101 August 16, 2024 13:43
@CoBC CoBC self-assigned this Aug 16, 2024
@CoBC
Copy link
Contributor Author

CoBC commented Aug 16, 2024

When language is initially set, Qt returns language code as something like "fr_FR" for French, so, 9c6970f add a partial check to correctly select languageBox item which is corresponding (E.G. fr for fr_FR)

Support partial language name in languageBox selection

Also define SETTINGS_GENERAL_FIRSTSTART on macOS
@bear101 bear101 merged commit 09e105e into master Oct 1, 2024
11 checks passed
@bear101 bear101 deleted the fix_language branch October 1, 2024 16:23
@bear101
Copy link
Contributor

bear101 commented Oct 1, 2024

Hm, I'm not having much luck with this change. When I start TeamTalk on macOS then it tells me my system language is English and I choose to continue in English. Then it tell me that it cannot load en_DK. What does that mean?

@bear101
Copy link
Contributor

bear101 commented Oct 1, 2024

Hm mainwindow.cpp:893 is not being executed on macOS

@bear101
Copy link
Contributor

bear101 commented Oct 1, 2024

I guess mainwindow.cpp:893 should be moved to mainwindow.cpp:848

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants