LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-10-2008, 09:09 AM   #1
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
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?
 
Old 09-10-2008, 10:47 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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
 
Old 09-10-2008, 12:04 PM   #3
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Original Poster
Rep: Reputation: 54
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
 
Old 09-11-2008, 06:58 AM   #4
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Original Poster
Rep: Reputation: 54
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?
 
Old 09-11-2008, 07:06 AM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Did you try to add ' export LANG=nl_BE ' in a .profile file in your user home directory ?
 
Old 09-12-2008, 09:03 AM   #6
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Original Poster
Rep: Reputation: 54
Quote:
Originally Posted by keefaz View Post
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
 
Old 09-15-2008, 03:41 AM   #7
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Original Poster
Rep: Reputation: 54
*shameless bump*

does someone have an idea where I could start to look for a solution about the environment setup "problem"?
 
Old 09-15-2008, 04:58 AM   #8
Karu
Member
 
Registered: Jul 2007
Location: Estonia
Distribution: Slackware
Posts: 53

Rep: Reputation: 16
Quote:
Originally Posted by janhe View Post
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
 
Old 09-15-2008, 06:06 AM   #9
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Rep: Reputation: 43
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.
 
Old 09-17-2008, 06:41 AM   #10
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Original Poster
Rep: Reputation: 54
Quote:
Originally Posted by adriv View Post
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?
 
Old 09-23-2009, 07:38 PM   #11
RoboRecht
LQ Newbie
 
Registered: Sep 2009
Location: Belgium
Distribution: Slackware
Posts: 4

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kubuntu - OpenOffice - Spellcheck - How do I change default language? rothchild Ubuntu 1 09-15-2006 08:35 AM
How do I change the default language in KDE on FC3? canegames Linux - Software 1 08-01-2006 03:24 PM
Change default language Slackware 10.2 RockmanExe Slackware 8 11-11-2005 01:50 PM
how to change the default language of the system icoming Linux - General 8 06-01-2004 01:06 PM
Dutch language help needed neo77777 General 8 03-25-2003 08:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration