Discussion:
Kde ignores LANG settings
Olaf Mueller
2007-12-17 00:34:40 UTC
Permalink
Hello,

when running a program by typing the command under 'Run Command' then
the program starts with english language settings. Also the kde menu
entry 'openoffice.org2.3 -writer' starts openoffice.org writer with
page format letter but it should be a4. Kde ignores my settings
under /etc/sysconfig/i18n and ~/.i18n:
LANG="de_DE.UTF-8"
SYSFONT="latarcyrheb-sun16"

'echo $LANG' under konsole gives the output de_DE.UTF-8. But 'echo
$LANG > ~/getLang' in kde 'Run Command' gives the output en_US.utf8.

How do I instruct kde to use ~/.i18n?
I am using kde 3.5.8 under CentOS 5.1.
Thank you!


regards
Olaf


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Rex Dieter
2007-12-17 00:40:51 UTC
Permalink
Post by Olaf Mueller
Hello,
when running a program by typing the command under 'Run Command' then
the program starts with english language settings. Also the kde menu
entry 'openoffice.org2.3 -writer' starts openoffice.org writer with
page format letter but it should be a4. Kde ignores my settings
LANG="de_DE.UTF-8"
SYSFONT="latarcyrheb-sun16"
'echo $LANG' under konsole gives the output de_DE.UTF-8. But 'echo
$LANG > ~/getLang' in kde 'Run Command' gives the output en_US.utf8.
How do I instruct kde to use ~/.i18n?
I am using kde 3.5.8 under CentOS 5.1.
Thank you!
Afaik, kde doesn't use $LANG (but we patch that in fedora, I believe).
KDE uses KDE_LANG, as set in KControl's Regional settings.

-- Rex


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Olaf Mueller
2007-12-17 01:04:42 UTC
Permalink
Post by Rex Dieter
Post by Olaf Mueller
How do I instruct kde to use ~/.i18n?
Afaik, kde doesn't use $LANG (but we patch that in fedora, I
believe). KDE uses KDE_LANG, as set in KControl's Regional settings.
Ok, sorry, my first description was too imprecisely. I'm using a german
locale for KDE and everything is in german, every KDE application. But
if I start a non-kde program from kmenu or from 'Run Command' it's in
english, the LANG variable is set to en_US.utf8. Also KDE_LANG could
not solve this problem.

The only way to get a german environement from kde menu for programs
like openoffice.org or nerolinux is to set 'LANG=de_DE.UTF-8; ' at the
beginning of the command of every non-kde application.

What is the correct way to set the LANG variable for non-kde programs
under kde?
Thank you!


regards
Olaf


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Rex Dieter
2007-12-17 14:53:36 UTC
Permalink
Post by Olaf Mueller
'echo $LANG' under konsole gives the output de_DE.UTF-8. But 'echo
$LANG > ~/getLang' in kde 'Run Command' gives the output en_US.utf8.
That's creepy. Anyone else see this? (I'm currently using only en_US, so I
can't confirm).

-- Rex


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Continue reading on narkive:
Search results for 'Kde ignores LANG settings' (Questions and Answers)
8
replies
What are the benefits of linux?
started 2011-10-19 15:34:05 UTC
computer networking
Loading...