You are not logged in.

#1 2007-05-29 10:21:02

LemonBoy
Member
Registered: 2007-05-29
Posts: 7

Varying locale settings among different applications?

Hi, I'm using the Hebrew locale on my Arch system, which is right to left.
While this setting works pretty well on the Gnome desktop, some applications get messy from it (Like Nicotine-Plus the soulseek client, and some others)
How can I make the Hebrew locale the default for all the applications, and set the US locale for others? Or, make the US the default and apply the Hebrew one to the applications I want?

Offline

#2 2007-05-29 10:45:39

samlt
Member
Registered: 2007-05-20
Posts: 18

Re: Varying locale settings among different applications?

I know the following to work with man pages:

LANG=fr_FR man shadow

so may be you could try something similar with your apps

Offline

#3 2007-05-29 11:59:34

LemonBoy
Member
Registered: 2007-05-29
Posts: 7

Re: Varying locale settings among different applications?

samlt wrote:

LANG=fr_FR man shadow

where am I supposed to write that? in /etc/rc.conf there is LOCALE="<locale>"... did you mean LOCAL or is it something else?
And does it come in a second line as an exclude rule?

Offline

#4 2007-05-29 13:03:13

lloeki
Member
From: France
Registered: 2007-02-20
Posts: 456
Website

Re: Varying locale settings among different applications?

modifying anything in /etc/ to that intent would just negate the effect of your current hebrew locale everywhere.
so, he meant, just start apps with

LANG=whatever your_command

in console.

if you want, write a wrapper script per app to do just that: e.g I set my PATH (in e.g /etc/profile) to have /usr/local/bin before everything else, and if I want 'man' command to be overriden with specific locale i create  /usr/local/bin/man with content

#!/bin/sh
LANG=fr_FR man $*

chmod it +x, and go, man will always spit french. it will only fail when .desktop files or scripts point to 'man' with absolute path. in that case, e.g for menus, I just create another menu entry pointing to the wrapper script, and delete the previous entry.

Last edited by lloeki (2007-05-29 13:12:21)


To know recursion, you must first know recursion.

Offline

#5 2007-05-30 14:20:45

LemonBoy
Member
Registered: 2007-05-29
Posts: 7

Re: Varying locale settings among different applications?

Thanks for the advice! just what I was looking for.

Offline

#6 2007-05-30 15:57:11

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: Varying locale settings among different applications?

This might not be of any help as I don't know much about Hebrew. But I use Chinese and English together on my arch install. What I did, was just unset/comment out the export LC_ALL setting in my bash.rc because it over rides any other locale settings. Then I set the default to English with export LANG="en_US.UTF-8", and then for Chinese I set export LC_CTYPE="zh_CN.UTF-8". Then I use scim for Chinese input. So far I haven't run into any problems with file names in Chinese or using Chinese and or English in apps, although I use kdemod instead of gnome.

The relevant portion of my .bashrc file..

#export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"
export LC_CTYPE="zh_CN.UTF-8"
export QT_XFT=true
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
export XIM_PROGRAM="scim -d"


-- archlinux 是一个极好的 linux

Offline

Board footer

Powered by FluxBB