LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 04-26-2005, 09:12 AM   #1
zivs
Member
 
Registered: Jan 2005
Location: Ogre, Latvia
Distribution: Ubuntu 9.10
Posts: 72

Rep: Reputation: 15
define your LANG environment


after installing cedega and trying to run any software through it i get

Quote:
Warning: Language 'en_LV' was not found, retrying without country name... For language 'en' several language ids were found: en_US - 0409; en_GB - 0809; en_AU - 0C09; en_CA - 1009; en_NZ - 1409; en_IE - 1809; en_ZA - 1C09; en_JM - 2009; en_ - 2409; en_BZ - 2809; en_TT - 2C09; Instead of using first in the list, suggest to define your LANG environment variable like this: LANG=en_US
Anyone can tell me what should i do and how can i do? :/
 
Old 04-26-2005, 09:25 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
At your console type export LANG=en_us
and then run cedega
 
Old 04-26-2005, 09:26 AM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
In the file ~/.bash_profile, add the following line:
Code:
export LANG=en_US
This will set the LANG variable each time you log in.

Now run the command to make the settings take effect immediately:
Code:
source ~/.bash_profile
I assume en_LV is English-Latvian. It is probably better just to use US "English", en_US.

I hope this helps
--Ian
 
Old 04-26-2005, 09:27 AM   #4
zivs
Member
 
Registered: Jan 2005
Location: Ogre, Latvia
Distribution: Ubuntu 9.10
Posts: 72

Original Poster
Rep: Reputation: 15
did as you said but nothing changed.. still the same message...
 
Old 04-26-2005, 09:33 AM   #5
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Try
Code:
export LANG=C
in ~/.bash_profile.

--Ian
 
Old 04-26-2005, 09:38 AM   #6
zivs
Member
 
Registered: Jan 2005
Location: Ogre, Latvia
Distribution: Ubuntu 9.10
Posts: 72

Original Poster
Rep: Reputation: 15
sorry for stupid question but where can i find this bash_profile?

because if i write this in console i get
Quote:
bash: /root/.bash_profile: No such file or directory

Last edited by zivs; 04-26-2005 at 09:41 AM.
 
Old 04-26-2005, 09:41 AM   #7
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Its in your home directory. Note that it has a leading dot, which means that it is hidden. To view all the hidden files in your home directory, execute the command "ls -l" in a terminal window. If it doesn't exist, you can simply create it.

Note that the tilda (~) is a shortcut to your home directory. For example, you can type "cd ~" and it will take you straight to your home directory

--Ian

Last edited by IBall; 04-26-2005 at 09:47 AM.
 
Old 04-26-2005, 09:43 AM   #8
zivs
Member
 
Registered: Jan 2005
Location: Ogre, Latvia
Distribution: Ubuntu 9.10
Posts: 72

Original Poster
Rep: Reputation: 15
and ehr.. it's no difference where this file will be? Does it have to have some kind of extension or smthn?
 
Old 04-26-2005, 09:49 AM   #9
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
You will need to open it using an editor, like vi:
Code:
vi ~/.bash_profile
Press i to enter insert mode, end ESC-ZZ to save and exit.

--Ian
 
Old 04-26-2005, 10:01 AM   #10
zivs
Member
 
Registered: Jan 2005
Location: Ogre, Latvia
Distribution: Ubuntu 9.10
Posts: 72

Original Poster
Rep: Reputation: 15
huh.. did all as you said - added in bash_profile this
Quote:
export lang=en_us
but still the same message.. Do I do something wrong?
 
Old 04-26-2005, 10:04 AM   #11
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Sorry, thats all I can think of. Try reading the documentation for Cedega, and see if there is an answer in there. Make sure that LANG is in capital letters, because Linux is Case Sensitive.

--Ian
 
Old 04-26-2005, 10:09 AM   #12
zivs
Member
 
Registered: Jan 2005
Location: Ogre, Latvia
Distribution: Ubuntu 9.10
Posts: 72

Original Poster
Rep: Reputation: 15
Thanks for helping IBall

Maybe anyone else knows what to do if this don't work?
 
  


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
switch lang rohr Debian 7 07-04-2005 09:51 AM
What a good lang. Dark_Sniper* Programming 19 05-21-2005 06:38 AM
how am i define an environment variable? yenonn Slackware 2 12-19-2003 08:44 AM
most useful prog lang huffboy Programming 8 10-05-2003 01:40 AM
What lang for What titanium_geek Programming 6 03-28-2003 05:53 PM


All times are GMT -5. The time now is 07:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration