LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-13-2005, 01:36 AM   #1
r_213
Member
 
Registered: Sep 2004
Posts: 36

Rep: Reputation: 15
LANG settings


Can anybody tell me how to set LANG variable globally?
 
Old 01-13-2005, 02:00 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Edit /etc/profile and add a line:
export LANG=...
 
Old 01-13-2005, 02:50 AM   #3
r_213
Member
 
Registered: Sep 2004
Posts: 36

Original Poster
Rep: Reputation: 15
Hey thanks for the response.

Can you tell me what this file means then /etc/sysconfig/i18n

What is the difference between the two.
 
Old 01-13-2005, 03:08 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
I don't know what is the usage of /etc/sysconfig/i18n, because I guess it's distro specific and my distro (Slackware) does not have it. All I know is that i18n is the Internationalization Project. There is also a directory named i18n where the various locales and font settings for each locale are defined.
Also in /etc/profile you define a variable you want to set globally.

Regards
 
Old 01-13-2005, 03:26 AM   #5
r_213
Member
 
Registered: Sep 2004
Posts: 36

Original Poster
Rep: Reputation: 15
I changed the LANG setting in /etc/sysconfig/i18n and rebooted by Linux box. This time I got the LANG settings as intended . I changed it from English to japanese( en_US.UTF-8 to ja_JP.sjis) .But when i run a shell script it gives the output in English. When I run some other command in the shell it comes in japanese.
Any idea why it occurs?
 
  


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
switch lang rohr Debian 7 07-04-2005 08:51 AM
What a good lang. Dark_Sniper* Programming 19 05-21-2005 05:38 AM
java.lang.NoSuchMethodException: rulirahm Linux - Networking 2 05-02-2005 01:30 AM
most useful prog lang huffboy Programming 8 10-05-2003 12:40 AM
What lang for What titanium_geek Programming 6 03-28-2003 04:53 PM

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

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