Created attachment 125420 [details]
See the attached screenshot please.
My default language is american english, but gtk3 app Gnome Disks is translated to portuguese. Nautilus, Gedit text editor, inkscape and gimp are also affected.
Operating System: Arch Linux
KDE Plasma Version: 5.17.90
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.0
Please include output of "env"
output of env
alias systemctl='systemctl -l'
Even though LANGUAGE is correct :/
I have observed this bug - it seems there is some issue with the definition and / or "correct" usage of language codes in environment variables.
POSIX vars: for example LANG, LC_ALL with long language like de_DE.UTF-8 , de_DE
KDE / Plasma seems to use 2 letter from ISO-3166-1 :
Those are added to the LANGUAGE var that the UI uses and that is configured and manipulated in the "Settings" with a fallback / plasma translations (?) list.
This can be verified by executing
qemu-system-x86_64 # English Menu
LANGUAGE=de:en_GB qemu-system-x86_64 # English
LANGUAGE=de_DE:en_GB qemu-system-x86_64 # German / Deutsch
LANGUAGE=de:en_GB:en:fr:zh_CN qemu-system-x86_64 # Chinese
LANGUAGE=de:en_GB:en:fr:en_US:zh_CN qemu-system-x86_64 # Chinese
LANGUAGE=de:en_GB:en:fr_FR:en_US:zh_CN qemu-system-x86_64 # French
using plasma 5.19.5 Arch Linux here
Any progress on this?
The problem seems to be that many GTK apps don't explicitly name or alias their English locale as "en" or "en_US", but instead make it the default locale, which is "C". For these apps if you have "LANGUAGE=en_US" it will try to find the en_US locale, fail, and fallback to the default locale, C, which just usually happens to be English, so it *seems* to work. But if you have "LANGUAGE=en_US:zh_CN" it tries to find en_US, fails, moves onto zh_CN, finds it, and so displays Chinese. This can be verified by using "LANGUAGE=C:zh_CN", which for most GTK apps should cause them to display English. Or at least *mostly* English: for Evolution it causes some fields/labels to be in Chinese.
1) When generating plasma-localerc, try to guess a good place to insert "C" into LANGUAGE.
2) In the "Configure Plasma translations" GUI, have a "GTK default" language which will be second in the list when plasma-localerc has no [Translations] section. The user can then change its position in the list or delete it.
*** This bug has been marked as a duplicate of bug 192019 ***