LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   change default language in xfce to Dutch (Belgium) (http://www.linuxquestions.org/questions/slackware-14/change-default-language-in-xfce-to-dutch-belgium-668920/)

janhe 09-10-2008 09:09 AM

change default language in xfce to Dutch (Belgium)
 
I've tried setting
Code:

export LANG=nl_BE
in /etc/profile.d/lang.sh

And read about Xubuntu menus while googling for another solution

anybody had any luck configuring a default language different than English?

Alien Bob 09-10-2008 10:47 AM

It looks as if Belgium is not among the support languages - the only language I can find in http://i18n.xfce.org/stats/index.php...e=trunk/thunar for instance that you could use is dutch (nl).
This page: http://grok.lsu.edu/Article.aspx?art...33&printable=y shows you how to change the language in XFCE.

Eric

janhe 09-10-2008 12:04 PM

Quote:

It looks as if Belgium is not among the support languages - the only language I can find in
I used nl_BE because that was in the output from locale -a and nl was not.
I tried using LANG=nl, but it didn't help
Quote:

This page: http://grok.lsu.edu/Article.aspx?art...33&printable=y shows you how to change the language in XFCE.
I don't have the "Language support" option in the menu.
maybe you can give the name of the application so I can launch it from the command line?
Or isn't it included in xfce 4.4.2 in slackware 12.1

janhe 09-11-2008 06:58 AM

OK, I've come a bit closer to a solution AND I have slept a night after becoming all frustrated from trying to get things to work.

first, I will properly explain my setup:
I've edited /etc/inittab to "create" a new runlevel 5. It basically is configured like runlevel 4, only it calls rc.5 instead of rc.4.
rc.5 is (edited from rc.4):
Code:

#! /bin/sh
#
# rc.5                This file is executed by init(8) when the system is being
#                initialized for run level 5 (XDM)
#
# Version:        @(#)/etc/rc.d/rc.5        0.00        09/07/08
# version date is 9 july, I'm Belgian!!
#
# Author:        Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
# At least 47% rewritten by:  Patrick J. Volkerding <volkerdi@slackware.com>
# Rewritten by Jan Herrygers for starting an x session instead of xdm
#

# Tell the viewers what's going to happen...
echo "Starting up X11 session..."

# start a login session for user username
if [ -x /usr/bin/startx ]; then
  exec /bin/su - username -c /usr/bin/startx
fi

# extra optie, als er iets misgaat met startx
# If all you have is XDM, I guess it will have to do:
if [ -x /usr/bin/xdm ]; then
  exec /usr/bin/xdm -nodaemon
elif [ -x /usr/X11R6/bin/xdm ]; then
  exec /usr/X11R6/bin/xdm -nodaemon
fi

# error
echo
echo "Hey, you don't have startx or XDM.  Can't use runlevel 5 without"
echo "one of those installed."
sleep 30

# All done.

Now, when I'm in runlevel 3, and I log in as the normal user (lets call the user "username") and run startx, xfce comes up in Dutch. When I switch to runlevel 5, xfce comes up in English.

when I'm in runlevel 3, 'echo $LANG' returns nl_BE@euro
in runlevel 5, it returns a blank line

Long story short: It seems like the environment isn't set up correctly the way I initiate startx.
Question: how do get it to do what I want?

keefaz 09-11-2008 07:06 AM

Did you try to add ' export LANG=nl_BE ' in a .profile file in your user home directory ?

janhe 09-12-2008 09:03 AM

Quote:

Originally Posted by keefaz (Post 3277001)
Did you try to add ' export LANG=nl_BE ' in a .profile file in your user home directory ?

I did now, but it won't work

janhe 09-15-2008 03:41 AM

*shameless bump*

does someone have an idea where I could start to look for a solution about the environment setup "problem"?

Karu 09-15-2008 04:58 AM

Quote:

Originally Posted by janhe (Post 3280723)
does someone have an idea where I could start to look for a solution about the environment setup "problem"?

I have done what you mentioned in your first post:
edited /etc/profile.d/lang.sh
Code:

expoert LANG=et_EE.utf8
And my xfce menues are mixture of estonian and english.
The mixture is I guess due to partial translation.

Maybe you can find some help from xfce-s translations teams site

adriv 09-15-2008 06:06 AM

Did you also set the locale in /etc/profile.d/lang.csh?

Here (Dutch nl_NL) it looks like
Quote:

# en_US is the Slackware default locale:
setenv LANG nl_NL
while in /etc/profile.d/lang.sh it looks like
Code:

# en_US is the Slackware default locale:
export LANG=nl_NL

It's been a while since I ran Xfce, but I'm positive that most of the menu was in Dutch.

Testing it now and yes, the menu is in Dutch.:)
And I also cannot find that menu with the language support.

janhe 09-17-2008 06:41 AM

Quote:

Originally Posted by adriv (Post 3280818)
Did you also set the locale in /etc/profile.d/lang.csh?

Didn't work.

The way I see it, "everything" in /etc/profile.d/ is executed when a shell (bash, csh) is loaded. (correct me when I'm wrong)

But in fact, is there a shell loaded from my rc.5 script?

RoboRecht 09-23-2009 07:38 PM

you can set the environment variable in /etc/X11/xinit/xinitrc like
LOCAL=nl_BE


All times are GMT -5. The time now is 07:24 AM.