PDA

View Full Version : [gnome] Foreign Language Removal



knight69
June 30th, 2018, 09:23 AM
I had Russian language support installed previously but was unsuccessful in removing all traces of it with the language support gui. I then edited /etc/default/locale file so that it reads

# File generated by update-locale
LANG="en_US"
LANGUAGE="en_US:en"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

I then removed all generated locale data and ran locale-gen to generate new locale data. After rebooting, locale file still reads the same, but when I enter the command locale, I get the following:

LANG=ru_RU.UTF-8
LANGUAGE=ru:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

So how do I get rid of
LANG=ru_RU.UTF-8 and
LANGUAGE=ru.en?

knight69
June 30th, 2018, 06:52 PM
Problem Solved.

While it was necessary to edit /etc/default/locale, that was not sufficient. It is also necessary to edit the file .pam_environment in the users home directory. After making .pam_environment consistent with /etc/default/locale, the problem went away