LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-25-2013, 04:36 PM   #1
m1m
Member
 
Registered: Jan 2011
Posts: 52

Rep: Reputation: 1
Change XFCE interface language without changing bash


I use Slackware 14 with XFCE 4.10. How can I change interface language to polish and leave bash langage set to english?
This is my /etc/profile.d/lang.sh right now
Code:
export LANG=pl_PL.utf8
export LC_CTYPE="pl_PL.utf8"
export LC_NUMERIC="pl_PL.utf8"
export LC_TIME="pl_PL.utf8"
export LC_MONETARY="pl_PL.utf8"
export LC_MESSAGES="en_US.utf8"
export LC_PAPER="pl_PL.utf8"
export LC_NAME="pl_PL.utf8"
export LC_ADDRESS="pl_PL.utf8"
export LC_TELEPHONE="pl_PL.utf8"
export LC_MEASUREMENT="pl_PL.utf8"
export LC_IDENTIFICATION="pl_PL.utf8"
export LC_ALL=
I have english bash (program messages, man etc) and english XFCE. When I change LC_MESSAGES to pl_PL, both bash and XFCE are set to polish language.
Thanks
 
Old 03-25-2013, 04:53 PM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad W520
Posts: 4,681

Rep: Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240
"export" in /etc/profile.d/lang.sh make the settings valid system wide.

If you you want another setting for some command, just launch it like this "LANG=<other locale> <command>".

Of course this can be used as well for other shell variables.

Last edited by Didier Spaier; 03-25-2013 at 05:11 PM. Reason: Last sentence added
 
Old 03-25-2013, 06:46 PM   #3
m1m
Member
 
Registered: Jan 2011
Posts: 52

Original Poster
Rep: Reputation: 1
Yes, I know that, but how it can be done in my particular situation?
I want to have polish interface in XFCE but in bash I want to use en_US, I don't want to prefix every command with LANG= ...
 
Old 03-26-2013, 04:47 AM   #4
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,629

Rep: Reputation: 142Reputation: 142
My knowledge may be incomplete, but as far as I know:

1. As a workaround you could try to define an alias for your console program (xterm, xfce-terminal or whatever) setting LANG to US English whenever the program is invoked. Put this alias definition into, eg, ~/.profile, and see if it does the job. I haven't tried it myself, though.

2. The only desktop environment I know that does exactly right what you want is KDE (I can't comment on Gnome --- maybe equally good here). Which is one major reason for me to stick with it as my preferred desktop environment, although I like Xfce and e17 a lot, too.

gargamel

Last edited by gargamel; 03-26-2013 at 04:49 AM.
 
Old 03-26-2013, 04:41 PM   #5
m1m
Member
 
Registered: Jan 2011
Posts: 52

Original Poster
Rep: Reputation: 1
Thanks for answer gargamel!
I thought it could be done globally, but for now I set default shell command in Tilda preferences to "env LANG=en_US bash" and I get what I wanted.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Changing interface language Chough39 Linux - Newbie 1 10-13-2011 08:04 PM
[SOLVED] Change the user interface language in Ubuntu mr.liang Linux - Newbie 1 07-04-2010 09:35 AM
change default language in xfce to Dutch (Belgium) janhe Slackware 10 09-23-2009 08:38 PM
changing xfce language ra2000 Linux - Newbie 0 10-27-2007 06:34 AM
Changing KDE interface language dotancohen Linux - Newbie 6 02-10-2006 11:34 AM


All times are GMT -5. The time now is 12:24 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration