After installing and deinstallig a language, it is left behind in the LANGUAGE system variable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
accountsservice (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
After removing an installed language that was previously selected, it's still defined in the system. This leads to many UI elements and software applications picking the previously installed language if there is no translation available for the currently selected language.
Steps to reproduce:
1. Open GNOME Settings
2. Install the Deutsch language pack
3. Select it as your system language & locale
4. Apply settings
5. Pick a different language and uninstall the Deutsch language pack
6. Reboot
This is the result with `gd` as my usual language/locale:
$ locale
LANG=gd_GB.UTF-8
LANGUAGE=
LC_CTYPE=
LC_NUMERIC=
LC_TIME=gd_GB.UTF-8
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=gd_GB.UTF-8
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
Notice the `LANGUAGE=
I also noticed that after switching the language back to `gd` while keeping the `de` locale, part of the UI was still in `de`, including the "Manage Installed Languages" button, while other parts were in `gd`. That's probably the same bug and a symptom of the incomplete translation coverage for `gd`.
I managed to manually sort of fix it by running sudo update-locale LANGUAGE=
Originally reported at https:/
Ubuntu version: 18.04
The following 2 files need to be fixed when a language is uninstalled:
/etc/default/locale user>/. pam_environment
/home/<