Created attachment 130536 [details] screenshot STEPS TO REPRODUCE 1. open system settings > regional settings > language 1. add american english and another language (I added american english and portuguese) 2. set default language to american english 3. restart Plasma session 4. open Discover OBSERVED RESULT language of eventual error messages shown on opening is the non-default one in Languages kcm. My screenshot shows Discover in american english and an error message in portuguese. EXPECTED RESULT error messages in american english SOFTWARE/OS VERSIONS Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.19.80 KDE Frameworks Version: 5.73.0 Qt Version: 5.14.2
These messages come straight from PackageKit or whatever the backend is. Perhaps the problem is our KCM not setting whatever environment variables needed to make it notice? Does the same thing happen if you run `pkcon` by hand in the terminal, or other language-aware CLI apps like git?
both git and pkcon print their outputs in american english.
Interesting. Maybe it is Discover's fault then.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/22
Please test.
Tested your patch on neon unstable. The issue persists. Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.19.90 KDE Frameworks Version: 5.75.0 Qt Version: 5.15.0
Git commit 06cccdf45b8b82d31b413aa42e464eb6414e8d9a by Aleix Pol. Committed on 13/11/2020 at 15:28. Pushed by apol into branch 'master'. pk: Set the Daemon locale at start Just in case we have a different locale than the system's M +2 -0 libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp https://invent.kde.org/plasma/discover/commit/06cccdf45b8b82d31b413aa42e464eb6414e8d9a
Git commit 88cd73a57d7b068970eee885bd3ea6a9b907b0c6 by Aleix Pol Gonzalez, on behalf of Aleix Pol. Committed on 13/11/2020 at 15:53. Pushed by apol into branch 'cherry-pick-06cccdf4'. pk: Set the Daemon locale at start Just in case we have a different locale than the system's (cherry picked from commit 06cccdf45b8b82d31b413aa42e464eb6414e8d9a) M +2 -0 libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp https://invent.kde.org/plasma/discover/commit/88cd73a57d7b068970eee885bd3ea6a9b907b0c6
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/47
Assuming it's fixed.