LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-20-2022, 04:57 AM   #1
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Lubuntu
Posts: 352
Blog Entries: 16

Rep: Reputation: 51
multiple $LANGUAGE locale set in terminal


Hi,

My default desktop has some languages set. In turn, in the environment variable LANGUAGE has been defined as
Code:
 LANGUAGE=en_GB:en_US:hi:fr
When I run some programs such as su, the prompt then becomes
Code:
su

शब्दकूट:
or
Code:
 su 
 Mot de passe :
but never defaults to English
unless
Code:
LANGUAGE=en_GB
Is there a another way other than remove the other languages, to default to English ?
 
Old 05-20-2022, 05:24 AM   #2
slac
Member
 
Registered: May 2019
Posts: 265

Rep: Reputation: Disabled
You can try to set LANG and LC_ALL. Be sure to export the values of such environment variables, how to do so will depend in which shell you use, but if you use bash which is default in slackware, you can modify /etc/profile and set them there:

Code:
# /etc/profile
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
Once you have that file modified you could re-login or just source the file:

Code:
source /etc/profile
You can set those variables at your personal ~/.profile or ~/.bash_profile or even ~/.bashrc if you want, just be sure to source the corresponding file.
 
1 members found this post helpful.
Old 05-20-2022, 06:26 AM   #3
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 589

Rep: Reputation: Disabled
What do you want to accomplish by setting LANGUAGE="en_GB:en_US:hi:fr" ? I guess for many applications the behaviour will be undefined when they attempt to parse that variable.
 
Old 05-25-2022, 04:23 AM   #4
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Lubuntu
Posts: 352

Original Poster
Blog Entries: 16

Rep: Reputation: 51
When I set multiple languages in kde, this variable is set in THE shells by default.


So it was annoying to see the language in the shell to change.
 
Old 05-25-2022, 04:32 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,852

Rep: Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310
Quote:
Originally Posted by jheengut View Post
When I set multiple languages in kde, this variable is set in THE shells by default.
And what is it good for? How is it interpreted?

Quote:
Originally Posted by jheengut View Post
So it was annoying to see the language in the shell to change.
What is changed? I guess what you made is or what you think you made is not a valid configuration therefore the outcome is just unpredictable. But probably I'm wrong.
 
Old 05-26-2022, 10:25 AM   #6
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Lubuntu
Posts: 352

Original Poster
Blog Entries: 16

Rep: Reputation: 51
Well sometimes I want to write in different languages. I just add the support in kde, this was the first time that I obtained this result.


I supposed that enabling languages support in KDE5 was not supposed to enable different functionality in other independent programs.

The order of language is not reflected in other programs other than KDE5.

IN previous version of Slackware, I didn't observe this behavior.
 
Old 05-26-2022, 11:03 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,852

Rep: Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310
kde does not require this settings LANGUAGE=en_GB:en_US:hi:fr. And also I think kde cannot use it.
 
Old 05-27-2022, 05:29 AM   #8
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Lubuntu
Posts: 352

Original Poster
Blog Entries: 16

Rep: Reputation: 51
But it a setting made by KDE5 and I found that it set the language environment variable.


Do I need to consider this as a bug ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
locale: Cannot Set LC_ALL to default locale: No such file or directory. asym Linux - General 11 10-24-2018 05:54 PM
cannot lock locale archive "/usr/lib64/locale/locale-archive": Permission denied when building Multilib Cross Linux from Scratch Gunnersky2002 Linux - Software 2 06-13-2018 09:28 AM
Locale: how to make terminal commands output in my locale? dedec0 Linux - Software 19 10-17-2017 06:25 AM
"locale not supported by Xlib, locale set to C" Irad Linux - Software 3 06-25-2006 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration