LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-12-2008, 06:15 AM   #1
ikinnu
Member
 
Registered: Jun 2007
Posts: 64

Rep: Reputation: 15
LC_* localization variables


Hi,

What are localization variables? Do all of the localization variables start with LC_ ?
 
Old 09-12-2008, 09:26 AM   #2
fberbert
LQ Newbie
 
Registered: May 2004
Location: Brazil
Distribution: Debian
Posts: 7

Rep: Reputation: 0
File /etc/environment

Example:

Quote:
LANGUAGE="en"
LANG=en
LC_ALL=en
It defines the default language of your system. For example, when you type:

$ lss
-bash: lss: command not found

The message "command not found" is showed in English.

The same occurs with your softwares.

The complete explanation can be found on: man locale

Last edited by fberbert; 09-12-2008 at 09:34 AM.
 
Old 09-13-2008, 10:02 AM   #3
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 510

Rep: Reputation: 53
Not every distribution has got an /etc/enviroment.

No, not all localize-variables start with LC_whatever - LANG is the exception from the rule.

Which LC_whatevers are supported depends on your libc - Linux libc aka glibc supports some LC-vars not supported by other libcs - LC_PAPER for example.

Usally, a setting for LANG (language of error and system messages, manpages, spell checking and menu-entries and so on), LC_COLLATE (sorting and ranges depending on your preferred localization) and LC_CTYPE ("character type" - which letters and characters to support by your localization) is sufficent.

You also choose the encoding of your localization - I'm german, I can choose to encode my locale setting in iso-8895-1 (which includes the german-specific umlauts our alphabet has) or utf-8 which is one of several possible Unicode encodings (Windows uses a different utf, for example) so my system can work with not just basic ASCII (english) and german letters and numbers but everything else Unicode includes.

I hate german error messages, but I need Unicode to support other languages like Japanese for example, so I've set a combination of "german sort order", "Unicode with utf-8 encoding" and "please don't touch the language my systems speaks" with:

Code:
export LANG=en_US.utf-8
export LC_CTYPE="de_DE.utf-8"
export LC_COLLATE="de_DE.utf-8"
With LC_ALL all LC-vars including LANG are overridden and set to the LC_ALL value.
 
  


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
Tcsh and localization Karu Slackware 4 09-18-2007 12:13 AM
localization sandeepps4 Linux - General 1 06-05-2007 01:39 AM
gettext and localization mifi Linux - Software 0 03-24-2006 07:02 AM
localization question (hebrew) Nightfrost Linux - Software 5 05-24-2005 04:01 PM
Localization of Slackware 9.0 karagh Slackware 10 12-26-2003 09:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:39 AM.

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