You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, January 9th 2007, 10:12pm

KDE ignores $LANG? / How to change localization temporarily?

Hi,

My system is running KDE3.5.5 on Debian SID.

The desktop is german, but in order to give proper hints in web forums I'd like to start applications with english localization.

And I am pretty sure that it was once possible to open konsole, set the LANG variable to e.g. en_GB and henceforth every application started from that shell were in english. (It's also in the FAQ!)

But when I try it now on my system, LANG and LC_MESSAGES variables are apparently just ignored, no matter what I set them to...

I don't know much about KDE internals but my guess is that they attach to some already running KDE service (dcopserver, kded, ksmserver,... ?) and inherit its shell environment.

What can I do?

I created another account and su'ed to him (which works), and I guess restarting KDE with changed language settings should also work, but I'd really prefer to just use LANG as it is possible with any other program.

Thanks

fabian

( PS: I asked that at linuxquestions, but nobody cared :'-( )

2

Tuesday, January 9th 2007, 11:31pm

As an example to start kwrite in the Dutch language, type the following in konsole:


KDE_LANG="nl" kwrite


if you want to start particular applications always in a different language, you can add this option to it's rc-file in ~/.kde/share/config.

If you want to use en_GB, please ensure that the en_GB localisation package is installed.

Dunno how to use this variable to get the default English language, afaik 'KDELANG="en"' does not work.



Regards, Rinse
Help mee om KDE 3.5.5 in het Nederlands te vertalen

3

Wednesday, January 10th 2007, 12:25am

Wow, thank you very much! That worked!

So KDE really doesn't care about LANG...

However, en_GB was just an example. I intended to set it to C and just assumed my KDE installation would be using english as its standard language. Well, I was apparently wrong, C didn't work. I installed the appropriate package as you suggested and now it works.

cheers

4

Wednesday, January 10th 2007, 1:11am

Quoted


So KDE really doesn't care about LANG...

I wouldn't say that, since KDE also does not listen to KDE_LANG="C" kwrite
So it's not like kde does not use the variable, it just does not use the variable when set to the default language.
Help mee om KDE 3.5.5 in het Nederlands te vertalen

5

Wednesday, February 28th 2007, 9:30am

how to set a language is default ???
thanks

6

Wednesday, February 28th 2007, 11:28am

in kcontrol at [region and accessibility]

or with kcmshell language
Help mee om KDE 3.5.5 in het Nederlands te vertalen