https://bugs.kde.org/show_bug.cgi?id=509902
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit| |https://invent.kde.org/fram | |eworks/kxmlgui/-/commit/15f | |457f5a4d83614d49e7a01ec4092 | |f0f8d07c84 Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #18 from [email protected] --- Git commit 15f457f5a4d83614d49e7a01ec4092f0f8d07c84 by Han Young. Committed on 26/09/2025 at 13:57. Pushed by hanyoung into branch 'master'. switchlanguage: push country stripped language code to the back of the list If the $LANGUAGE is pt_BR.UTF-8, the QLocale().uiLanguages() returns QList("pt_Latn_BR", "pt_BR", "pt_Latn", "pt"). We check the translation support of each language code one by one. If the language is unsupported, we strip the country from the code, then check the new language code again. In the pt_BR.UTF-8 case, the first language code "pt_Latn_BR" is unsupported, after stripping, the code became "pt", which is supported. This behavior is incorrect, because the result language list is [pt, pt_BR] instead of [pt_BR, pt]. Push the country stripped language code to the back of the list ensure the proper precedence. M +1 -5 src/kswitchlanguagedialog_p.cpp https://invent.kde.org/frameworks/kxmlgui/-/commit/15f457f5a4d83614d49e7a01ec4092f0f8d07c84 -- You are receiving this mail because: You are watching all bug changes.
