Setting locale for individual programs

Lea Gris lea.gris at noiraude.net
Tue Jul 11 16:08:43 UTC 2006


Dotan Cohen a écrit :
> On 11/07/06, Lea Gris <lea.gris at noiraude.net> wrote:
>> Dotan Cohen a écrit :
>> > I send this message to both the Ubuntu and Kubuntu lists as I'm not
>> > sure which is more appropriate. I've Ubuntu installed, and added KDE,
>> > which I use instead of Gnome.
>> >
>> > My locale is Hebrew, and I need all my GUI apps to be in Hebrew,
>> > naturally. However, my command-line and development apps I need to be
>> > in English, as the Hebrew support is very poor. The specific apps that
>> > I want in English would be:
>>
>> Language is determined by the environment variable LANG.
>> So set LANG=isocode before launching a program.
> 
> That would leave the language as set fro every program launched afterwards.

bashrc only applies to bash environment unlike profile.
> 
>> For shell environment you should have a bashrc with
>> export LANG=C
>> or
>> export LANG=en
>>
>> > Kdevelop
>> > Eclipse
>>
>> Either go to properties in the specific menu entry or icons for this
>> program and export LANG=whaterver
>> or
>> Create run scripts for these applications.
> 
> Can I create a ~/bin/kate that would call kate with the English LANG
> value? Ow would such a script look? I know no bash.

#!/bin/bash
export LANG=en
/usr/bin/kate

-- 
Léa Gris




More information about the ubuntu-users mailing list