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 several language selection issues #994

Merged
merged 5 commits into from Oct 16, 2023
Merged

Fix several language selection issues #994

merged 5 commits into from Oct 16, 2023

Conversation

Fs00
Copy link
Contributor

@Fs00 Fs00 commented Oct 14, 2023

This PR simplifies the logic for loading UI translations, which should fix several issues people have encountered.
First, we now translate UI strings using the wxTranslations class directly: this makes language selection work with languages that aren't installed/supported on the operating system (this mostly applies to Linux: before this PR, choosing a language not installed on the machine didn't do anything).
Furthermore, the logic used to apply the UI localization has been fixed so that when the "Default" language is selected, the UI uses the system default language (and not English as it did before). The "English" language option now also works as intended: it stays selected upon closing and reopening the settings window and when it's selected, no localization is applied.

While I was at it, I also took the opportunity to format the "last played" date in the game list using the currently selected locale.

Some testing on macOS would be appreciated.

Fixes #717
Fixes #616
Should fix #580

@Fs00 Fs00 marked this pull request as draft October 14, 2023 17:16
@Fs00
Copy link
Contributor Author

Fs00 commented Oct 15, 2023

I have added a commit to prevent initializing the locale if Cemu has no UI translation for the default language, which should fix #580.

@Fs00 Fs00 marked this pull request as ready for review October 15, 2023 11:47
@Fs00 Fs00 mentioned this pull request Oct 15, 2023
src/gui/CemuApp.cpp Outdated Show resolved Hide resolved
@Exzap Exzap merged commit 13a50a9 into cemu-project:main Oct 16, 2023
5 checks passed
@hauntek
Copy link

hauntek commented Oct 18, 2023

image

Thank you very much. The actual testing did indeed fix the issue of using the default local language for macOS, and both the switching were effective

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