LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-21-2005, 03:00 AM   #1
coralsaw
Member
 
Registered: Dec 2005
Posts: 35

Rep: Reputation: 15
Help me with locale please


Here's what I want to do:
  1. All console messages to be displayed in English
  2. All X/KDE/Gnome messages to be displayed in Greek

My current locale is:
Quote:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Available locales are:

Quote:
en_US.UTF-8
el_GR.UTF-8
My /etc/environment file says:

Quote:
LANGUAGE="en_US:el_GR:el:en_GB:en"
LANG=en_US.UTF-8
### BEGIN DEBCONF SECTION FOR localeconf
# Do not edit within this region if you want your changes to be preserved
# by debconf. Instead, make changes before the "### BEGIN DEBCONF SECTION
# FOR localeconf" line, and/or after the "### END DEBCONF SECTION FOR
# localeconf" line.
LANG=en_US.UTF-8
### END DEBCONF SECTION FOR localeconf
I've tried localeconf, setlocale, reading all threads on the subject, still all the console messages are in Greek. Which is a bit of a pain.

Any idea what I need to change?

TiA

/coralsaw

Last edited by coralsaw; 12-21-2005 at 07:15 AM.
 
Old 12-21-2005, 04:44 AM   #2
binary
LQ Newbie
 
Registered: Dec 2005
Distribution: Debian
Posts: 20

Rep: Reputation: 0
You maybe try:
#env=C
#dpkg-reconfigure locales

and then, set the locale again.
 
Old 12-21-2005, 07:07 AM   #3
coralsaw
Member
 
Registered: Dec 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Thx, unfortunately no change...

/coralsaw
 
Old 12-21-2005, 12:28 PM   #4
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Did you unselect el_GR in "dpkg-reconfigure locales"? Also, try "dpkg-reconfigure console-data".
 
Old 12-23-2005, 07:42 AM   #5
coralsaw
Member
 
Registered: Dec 2005
Posts: 35

Original Poster
Rep: Reputation: 15
If I unselect el_GR, then I'd most probably not be able to have greek characters in console, and perhaps in X. Am I correct?

If so, that's not what I want. I just want all system and app messages to be in English, not Greek.

/coralsaw
 
Old 12-23-2005, 09:24 AM   #6
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
Here's what I want to do:

1. All console messages to be displayed in English
2. All X/KDE/Gnome messages to be displayed in Greek
KDE has it's own locale settings that you can configure in KDE's Control Center. GNOME uses your system's general locale settings. You can create a special file that is read every time you start an X session (for example, /etc/X11/Xsession.d/startup) and define (export LC_MESSAGES="el_GR") some locale settings for all your X sessions there.

I've never tried anything like that myself so I cannot say for sure if it will actually work.
 
Old 12-23-2005, 12:23 PM   #7
gauri
Member
 
Registered: Dec 2005
Posts: 31

Rep: Reputation: 15
Hi all,

I am facing the problem with locale. My locale is a follows:

LANG=en_IN

LC_CTYPE="en_IN"

LC_NUMERIC="en_IN"

LC_TIME="en_IN"

LC_COLLATE="en_IN"

LC_MONETARY="en_IN"

LC_MESSAGES="en_IN"

LC_PAPER="en_IN"

LC_NAME="en_IN"

LC_ADDRESS="en_IN"

LC_TELEPHONE="en_IN"

LC_MEASUREMENT="en_IN"

LC_IDENTIFICATION="en_IN"

LC_ALL=
=============

becaues of that i am unable to sed command on few of the lines which has some special charater in another language other than english.

I am giving an example of my problem as:

I am unable replace \ with \\ in the floowoing lines:


*%EFILocal [invisible_yes:\x82\xcd\x82\xa2]^M
*%EFILocal [invisible_no:\x82\xa2\x82\xa2\x82\xa6]^M
^M
*%EFILocal [has disk raster?_yes:\x82\xcd\x82\xa2]^M
*%EFILocal [has disk raster?_no:\x82\xa2\x82\xa2\x82\xa6]^M
^M


my sed command is sed -e 's_\\_\\\\_g'. also if i cat on these lines it doesnt show me \x82 or \xcd etc.

Regards
Gauri
 
  


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
locale: Cannot Set LC_ALL to default locale: No such file or directory. asym Linux - General 11 10-24-2018 05:54 PM
How to change the locale by setting the system default locale letdoit Slackware 6 08-18-2011 03:34 AM
"locale not supported by Xlib, locale set to C" Irad Linux - Software 3 06-25-2006 03:59 PM
C locale and system locale johnnydangerous Fedora 4 04-11-2005 03:37 PM
Locale cinnix Linux - General 4 07-13-2001 12:03 AM

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

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