LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-20-2004, 02:38 AM   #1
TroelsSmit
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Rep: Reputation: 30
English / Danish Locale settings


Hi,

-------------------------------------------------------------------
question:
-------------------------------------------------------------------

Since I am a Dane, I would very much like to continue using danish characters such as æ,ø,å.
But I would really like my programs to talk to me in english !!
Now what is the setting for that ??

-------------------------------------------------------------------
info:
-------------------------------------------------------------------

My current locale settings are as follows:

setenv LANG english
setenv LC_ALL da_DK.iso88591

which when running the program 'locale' results in the following:

LANG=english
LC_CTYPE="da_DK.iso88591"
LC_NUMERIC="da_DK.iso88591"
LC_TIME="da_DK.iso88591"
LC_COLLATE="da_DK.iso88591"
LC_MONETARY="da_DK.iso88591"
LC_MESSAGES="da_DK.iso88591"
LC_PAPER="da_DK.iso88591"
LC_NAME="da_DK.iso88591"
LC_ADDRESS="da_DK.iso88591"
LC_TELEPHONE="da_DK.iso88591"
LC_MEASUREMENT="da_DK.iso88591"
LC_IDENTIFICATION="da_DK.iso88591"
LC_ALL=da_DK.iso88591

When I for instance delete a file it responds like this:
tcsh>rm sdf.pdf
rm: fjern almindelig fil 'sdf.pdf'?

Which outht to be:
tcsh>rm test2.c
rm: remove `test2.c'?

Im running linux debian with blackbox and kernel 2.6.5.

Thank you very much !
 
Old 05-20-2004, 04:14 PM   #2
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
That's exactly what I do - English is my first language but I am living in Denmark using a Danish computer.

If you are not using X (ordinary console) then this should do the trick:
Code:
loadkeys dk
. Also add this to your startup scripts.
To get it working in X you need to change /etc/X11/XF86Config to something like this:
Code:
Section "InputDevice"
    Identifier  "Keyboard1"
    Driver      "Keyboard"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"   "xfree86"
    Option "XkbModel"   "pc105"
    Option "XkbLayout"  "dk"
    Option "XkbVariant" "nodeadkeys"
EndSection
Let me know how it goes.

Mark.
 
Old 05-21-2004, 02:26 AM   #3
TroelsSmit
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Original Poster
Rep: Reputation: 30
Hi Mark,

thank you for the answer, the "loadkeys dk" seems to work nicely. It didn't' change the terminal language to english though. But it probably work if I delete my custom locale settings.
I just found that the following locale setup in my .tcshrc file does the trick:
setenv LANG english
setenv LC_ALL en_DK.iso88591
:-)

I think the option "AutotRepeat" in the keyboard might solve a problem I Have had witht my keyboard for quite some time. So again, thank you very much for the answer :-)

/Troels
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Using IIIMF Chinese in English locale rykel Fedora 112 10-03-2006 08:01 PM
English SUSE with Danish Open Office? Happeren SUSE / openSUSE 3 10-17-2005 03:11 AM
locale and keyboard settings tiuztux Slackware - Installation 2 03-16-2005 07:22 AM
danish locale problem with æøå TroelsSmit Linux - Newbie 1 09-06-2004 06:06 AM
Dictionary (English-Danish) dict-freedict-dan-eng TroelsSmit Linux - Newbie 0 06-02-2004 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:51 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