https://bugs.kde.org/show_bug.cgi?id=454991
Bug ID: 454991 Summary: Language KCM sets wrong language variable for European Portuguese (pt_PT) Product: systemsettings Version: 5.24.90 Platform: Kubuntu Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: kcm_language Assignee: h...@kde.org Reporter: eduardosare...@gmail.com CC: plasma-b...@kde.org Target Milestone: --- SUMMARY When we add "European Portuguese" language to KDE language settings, it correctly adds it but sets it wrong in the LANGUAGE varibles. After running "locale" in the terminal, the "LANGUAGE" variable is set to "pt" instead of the correct "pt_PT". Having just "pt" makes all apps that follow the system language to ignore that setting and fall back to the next configured language, or Brazilian Portuguese (it's VERY different from European Portuguese in many places and words, so please don't mix these two). This is because some apps read "pt" as being equal to "pt_BR". But all apps use European Portuguese correctly when "pt_PT" is used instead. STEPS TO REPRODUCE 1. Open System Settings, go to Language, add "European Portuguese" as the main language, apply. 2. Apps that follow the system's language, like any Chromium-based browser, are displayed in Brazilian Portuguese instead. 3. As an example, do "sudo nano ~/.config/plasma-localerc" and you can confirm LANGUAGE under "Translations" is set to "pt" instead of "pt_PT". 4. Change this file manually to "pt_PT", save it, reload plasma (logout and log back in) 5. All apps are correctly shown in European Portuguese. 6. Bonus, small related bug: After setting up "pt_PT" manually in this file, Language KCM complaints about having an invalid language configured and completely replaces our custom configuration if we click "Apply". It rewrites that config file with "pt" again. OBSERVED RESULT Apps are shown in Brazilian Portuguese (pt OR pt_BR) EXPECTED RESULT Apps should be shown in European Portuguese (pt_PT) SOFTWARE/OS VERSIONS Linux/KDE Plasma: Kubuntu 22.04 (available in About System) KDE Plasma Version: 5.24.5 KDE Frameworks Version: 5.94.0 Qt Version: 5.15.3 ADDITIONAL INFORMATION This bug was present for many years now, but I never really understood why (never cared too much about it), until now. Happens on any distro, but only with KDE. -- You are receiving this mail because: You are watching all bug changes.