-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
All text is in Chinese after update #3244
Comments
Open the second menu, first option to get to the settings, then there's a language dropdown towards the bottom. Change it and restart. |
I was able to find the config file under AppData after some digging and change it there. I don't know how it got changed in the first place. :/ |
Yeah somebody reported the same on Discord a couple of days ago. No clear pattern yet. |
Wierd.... thanks for looking into it though! |
It's interesting that this is linked to CKAN upgrades. That vaguely suggests a timing or race condition in which the old CKAN has not finished saving its settings somehow when the new CKAN is started. But after auditing the config saving/loading/parsing and language setting code, I do not see any way that it could randomly get set to Is there some way that Maybe |
Another case reported on the r/KSP Discord. Only information I was able to get was
|
Nobody ever seems to get German by accident! 😦 |
Another case reported on Discord, yet again Chinese. No CKAN update, but a hard shutdown by killing ckan.exe with Alt+F4.
|
No, it's a good insight, you might be completely right about that. |
In my previous audit of the i18n code, I looked at how the setting is handled on startup. I've checked that code again a couple of times since, and it still looks rock-solid to me. That leaves the settings window language dropdown. For this to be the cause, each user reporting this must have opened and closed the settings window in the session before the problem started, without having chosen a language before, and just didn't mention it. I don't think that's too much of a stretch, since they'd have no reason to remember having done that. Loading the combobox: CKAN/GUI/Dialogs/SettingsDialog.cs Lines 106 to 114 in 303c47c
Setting CKAN/GUI/Dialogs/SettingsDialog.cs Lines 544 to 547 in 303c47c
That will throw if
But before we even get to that point, there may be some funny business with
CKAN/GUI/Dialogs/SettingsDialog.Designer.cs Lines 556 to 565 in 303c47c
And the default is
That means our combobox isn't using an index of -1 to represent null, but the documentation doesn't say what it represents instead in that case. In Python, |
The JSON file is pretty well protected from corruption: CKAN/Core/Configuration/JsonConfiguration.cs Lines 182 to 203 in 303c47c
|
A user reported this today on Discord. Their output from
That somewhat supports the theory that the settings window changes the setting accidentally sometimes. That same user did some more poking around, and they have identified a possible cause for unintended setting changes: If the user thinks the dialog may be scrollable, they may flick the mouse wheel to try to expose more settings. If the mouse cursor happens to be hovering over the language dropdown, this changes its value, even without clicking it. That's pretty surprising, but it's also default WinForms behavior. We'll have to investigate to see whether it can be suppressed. |
I updated CKAN to the current version and it changed the program language to chinese. I cannot change it back to english and do not know where to fix this.
The text was updated successfully, but these errors were encountered: