[opensuse-support] Re: [opensuse-factory] Two Questions 2 - 1: XFCE locale
On 28/02/2019 15.10, Marco Calistri wrote: Moved reply to opensuse-support.
Sorry to ask here but since Tumbleweed is a bit more specific than for example Ubuntu, I've not found any answers on the Web.
If you think my post is too "off-topic", I invite you to reply to my personal email and not on the list.
1 - How to set locale so that XFCE Desktop and system environment is correctly configured to a specific language.
After my attempts to configure an user to use Portuguese at his login (attempt failed because it remained in English) once I logged back to my user login which was set in Italian, I found it was in English and despite many different approaches, including Yast Language, I haven't be able to roll-back to my previous locale.
In order to be able to do it, I had to add the following statement to my .bashrc:
export LC_CTYPE=it_IT.UTF-8
The correct method is to edit or create file /home/{username}/.i18n, like this: cer@Telcontar:~> cat .i18n # used by /etc/profile.d/lang.sh #CER - if it doesn't work edit /etc/profile.d/lang.sh, see Bugzilla 567324 LC_TIME=en_DK.UTF-8 LC_MONETARY=es_ES@euro LC_NUMERIC=es_ES@euro LC_PAPER=es_ES@euro LC_TELEPHONE=es_ES@euro LC_MEASUREMENT=es_ES@euro LC_NAME=es_ES@euro cer@Telcontar:~> Of course you do not need to change all variables, just only those you want. Each user has this way full customization, separate from other users. It affects the command line and at least XFCE.
When I executed "locale" *before* adding such line in .bashrc, it was reporting two times that variable and giving an error:
LANG=it_IT.UTF-8 LC_CTYPE=it_IT.UTF-8, it_IT.UTF-8 LC_NUMERIC="it_IT.UTF-8" LC_TIME="it_IT.UTF-8" LC_COLLATE="it_IT.UTF-8" LC_MONETARY="it_IT.UTF-8" LC_MESSAGES="it_IT.UTF-8" LC_PAPER="it_IT.UTF-8" LC_NAME="it_IT.UTF-8" LC_ADDRESS="it_IT.UTF-8" LC_TELEPHONE="it_IT.UTF-8" LC_MEASUREMENT="it_IT.UTF-8" LC_IDENTIFICATION="it_IT.UTF-8" LC_ALL=
I don't see the error listed there. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
participants (1)
-
Carlos E. R.