Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-25-2013, 03:36 PM   #1
Registered: Jan 2011
Posts: 55

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/ right now
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.
Old 03-25-2013, 03:53 PM   #2
Didier Spaier
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,253

Rep: Reputation: 3039Reputation: 3039Reputation: 3039Reputation: 3039Reputation: 3039Reputation: 3039Reputation: 3039Reputation: 3039Reputation: 3039Reputation: 3039Reputation: 3039
"export" in /etc/profile.d/ 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 04:11 PM. Reason: Last sentence added
Old 03-25-2013, 05:46 PM   #3
Registered: Jan 2011
Posts: 55

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, 03:47 AM   #4
Senior Member
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,722

Rep: Reputation: 176Reputation: 176
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.


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

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.


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

All times are GMT -5. The time now is 03:00 PM.

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