Language of lxpanel/lxappearance/pcmanfm

Please post all general support questions for LXDE here.
Locked
TimE
Posts: 4
Joined: Mon Aug 17, 2009 9:44 am

Language of lxpanel/lxappearance/pcmanfm

Post by TimE »

Hello!

I'm using openbox in combination with lxpanel, lxappearance and pcmanfm under Gentoo. All my apps are translated to german. I couldn't manage to achieve this for the lxde apps or pcmanfm. :oops:
My language setting:

Code: Select all

~# locale
LANG=de_DE.utf8
LC_CTYPE="de_DE.utf8"
LC_NUMERIC="de_DE.utf8"
LC_TIME="de_DE.utf8"
LC_COLLATE="de_DE.utf8"
LC_MONETARY="de_DE.utf8"
LC_MESSAGES="de_DE.utf8"
LC_PAPER="de_DE.utf8"
LC_NAME="de_DE.utf8"
LC_ADDRESS="de_DE.utf8"
LC_TELEPHONE="de_DE.utf8"
LC_MEASUREMENT="de_DE.utf8"
LC_IDENTIFICATION="de_DE.utf8"
LC_ALL=de_DE.utf8
Is there any configuration file I could edit to use the right translation?

Thanks in advance!
archiebald
Posts: 5
Joined: Sun Aug 16, 2009 12:08 am

Re: Language of lxpanel/lxappearance/pcmanfm

Post by archiebald »

Try adding this to your ~/.xinitrc

Code: Select all

export LC_ALL=de_DE.utf8
export LANGUAGE=de_DE.utf8
export LANG=de_DE.utf8
But I'm using Arch Linux, and don't know if this will work in Gentoo.
TimE
Posts: 4
Joined: Mon Aug 17, 2009 9:44 am

Re: Language of lxpanel/lxappearance/pcmanfm

Post by TimE »

archiebald wrote:Try adding this to your ~/.xinitrc

Code: Select all

export LC_ALL=de_DE.utf8
export LANGUAGE=de_DE.utf8
export LANG=de_DE.utf8
But I'm using Arch Linux, and don't know if this will work in Gentoo.
These variables are set globally in my environment.
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: Language of lxpanel/lxappearance/pcmanfm

Post by Marty Jack »

TimE wrote:These variables are set globally in my environment.
But they may not be set in lxsession (or it sounds like "just openbox"), and thus propagated down to the others. You need a "login shell" somewhere in the startup to get your environment variables read from your shell startup files.

I run slim, and I use the incantation

login_cmd bash -l -c "/usr/bin/lxsession -s LXDE"

in /etc/xdg/slim.conf to get this done. You will need to adapt this to your startup procedure, which may be different. If you say more about what you are running to get things started, we may be able to give more specific instructions.
TimE
Posts: 4
Joined: Mon Aug 17, 2009 9:44 am

Re: Language of lxpanel/lxappearance/pcmanfm

Post by TimE »

I use slim, too. My login_cmd is

Code: Select all

login_cmd exec /bin/bash --login /etx/X11/xinit/xinitrc
The xinitrc sets the environment and takes care to launch the right wm (openbox in my case). Openbox starts an autostart.sh script at startup. In this script I launch lxpanel and pcmanfm. I already tried to set those environment variables in the autostart.sh (what shouldn't be necessary), but with no luck.

Is there a possibility to check if other languages than english were build and installed? I checked the gentoo ebuild for pcmanfm and there not given any special option to configure or compile, so there should be all languages included right?
TimE
Posts: 4
Joined: Mon Aug 17, 2009 9:44 am

Re: Language of lxpanel/lxappearance/pcmanfm

Post by TimE »

I have compiled the pcmanfm sources by hand now and it works! Thanks for your help but it seems I have to file a bug over at the gentoo bugzilla! Gentoo makes all languages but doesn't installs them. :roll:
Locked