Summary: | Cover all English variants with warning about English above other languages | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | wazhai <wazhai> |
Component: | kcm_regionandlang | Assignee: | Nate Graham <nate> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hanyoung, nate |
Priority: | NOR | Keywords: | usability |
Version: | 5.26.5 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Other | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=192019 | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/commit/aaf42575e497a4aa6a856d518fdbafaf77ae7537 | Version Fixed In: | 6.0 |
Sentry Crash Report: |
Description
wazhai
2023-02-07 22:29:14 UTC
Ultimately this may prove to be insufficient and we'll need to try again to do https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1087. But for now let's fix this and see if it helps. A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2593 Git commit aaf42575e497a4aa6a856d518fdbafaf77ae7537 by Nate Graham. Committed on 10/02/2023 at 14:06. Pushed by ngraham into branch 'master'. kcms/region/language: Warn for more invalid language combinations We currently warn the user when they configure American English (en_US) as their first language with any other languages underneath it--because it causes a mix of languages to be shown in the UI and confuses the heck out of people. But we only check if the top language is en_US! There are other Englishes too that technically count as full languages--such as en_GB. If the user makes en_GB their top language and then puts any other non-English language under it, the same thing happens as the system will fall back to the second non-English language for any string that isn't found in the British English translation catalogue, which turns out to be a lot. What a person using en_GB actually wants is to fall back to en_US, which is the implicit default and happens when there are no other languages configured beneath en_GB. To fix this, let's change the check to encompass all en_* languages, not just en_US. Hopefully making the warning text appear for these use cases will be good enough and we won't have to do something drastic like secretly insert en_US after the last non-en_US English language, and C after the last en_* language of any kind when there are other non-en_* languages underneath it in the language list. FIXED-IN: 6.0 M +1 -1 kcms/region_language/languagelistmodel.cpp M +1 -1 kcms/region_language/package/contents/ui/AdvancedLanguageSelectPage.qml https://invent.kde.org/plasma/plasma-workspace/commit/aaf42575e497a4aa6a856d518fdbafaf77ae7537 |